? ?
avatar richard67
richard67
28 Aug 2018

Steps to reproduce the issue

Pull latest changes from the 4.0-dev branch so you have the latest corrections of joomla.sql for PostgreSQL from today's merged PR's and do the composer install and npm install stuff in case if there have been other changes meanwhile which require this.

Then do an installation using a PostgreSQL database.

Result: Installation finishs with success.

Login to the administrator backend.

Expected result

The control panel does not show SQL errors.

Actual result

The control panel shows an SQL error:
screen shot 2018-08-28 at 14 59 23

In the log file of PostgreSQL (if logging is switched on):
2018-08-28 16:52:53.963 CEST [108726] jdb2adm@joomladb2 ERROR: invalid input syntax for integer: "f" 2018-08-28 16:52:53.963 CEST [108726] jdb2adm@joomladb2 STATEMENT: INSERT INTO "j4ux0_session" ("session_id","guest","time","userid","username","client_id") VALUES ($1, $2, $3, $4, $5, $6) 2018-08-28 16:52:54.030 CEST [108727] jdb2adm@joomladb2 ERROR: syntax error at or near "WHERE" at character 937 2018-08-28 16:52:54.030 CEST [108727] jdb2adm@joomladb2 STATEMENT: SELECT a.id, a.title, a.checked_out, a.checked_out_time, a.publish_up, a.hits,l.title AS language_title, l.image AS language_image,uc.name AS editor,ag.title AS access_level,c.title AS category_title,ua.name AS author_name,"wa"."stage_id" AS "stage_id","ws"."title" AS "stage_title","ws"."condition" AS "stage_condition","ws"."workflow_id" AS "workflow_id",COALESCE(NULLIF(ROUND(v.rating_sum / v.rating_count, 0), 0), 0) AS rating, COALESCE(NULLIF(v.rating_count, 0), 0) as rating_count FROM j4ux0_content AS a LEFT JOIN "j4ux0_languages" AS l ON l.lang_code = a.language LEFT JOIN j4ux0_users AS uc ON uc.id=a.checked_out LEFT JOIN j4ux0_viewlevels AS ag ON ag.id = a.access LEFT JOIN j4ux0_categories AS c ON c.id = a.catid LEFT JOIN j4ux0_users AS ua ON ua.id = a.created_by INNER JOIN "j4ux0_workflow_associations" AS "wa" INNER JOIN "j4ux0_workflow_stages" AS "ws" LEFT JOIN j4ux0_content_rating AS v ON a.id = v.content_id WHERE "wa"."item_id" = "a"."id" AND "ws"."id" = "wa"."stage_id" AND "ws"."condition" IN (1, 0) AND "wa"."extension"='com_content' ORDER BY a.hits DESC LIMIT 5

System information (as much as possible)

PHP 7.2
postgresql 10.5 (Ubuntu 10.5-0ubuntu0.18.04)

Additional comments

There could be 2 errors as far as I can see in the postgresql log file: One related to insert into the session table, and the other one related to workflow stuff.

avatar richard67 richard67 - open - 28 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Aug 2018
avatar richard67
richard67 - comment - 28 Aug 2018

There could be 2 errors as far as I can see in the postgresql log file: One related to insert into the session table, and the other one related to workflow stuff.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21889.

avatar richard67
richard67 - comment - 28 Aug 2018

Someone should add labels "J4 Issue" and "New Feature Workflow".


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21889.

avatar richard67 richard67 - change - 28 Aug 2018
The description was changed
avatar richard67 richard67 - edited - 28 Aug 2018
avatar alikon
alikon - comment - 28 Aug 2018

for the insert issue:
don't know if this changes #20386 are already in the 4.0 branch

avatar brianteeman
brianteeman - comment - 28 Aug 2018

@richard67 no need to ask for labels to be added or for PR to be merged - it just adds even more messages to our inboxes. These tasks will happen when the "volunteers" that do this have the time to do it.

avatar richard67
richard67 - comment - 28 Aug 2018

@brianteeman Ok, sorry for that.

avatar brianteeman brianteeman - change - 28 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 28 Aug 2018
avatar brianteeman brianteeman - change - 28 Aug 2018
Labels Added: ?
avatar brianteeman brianteeman - labeled - 28 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Aug 2018
Status New Discussion
avatar alikon
alikon - comment - 28 Aug 2018

@richard67
#21893 should fix the 500 error

avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-28 18:48:23
Closed_By joomla-cms-bot
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Aug 2018
Closed_By joomla-cms-bot franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 28 Aug 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 28 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Aug 2018

closed as having Pull Request #21893

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2019
Labels Added: ?
Removed: J4 Issue ?
avatar franz-wohlkoenig franz-wohlkoenig - unlabeled - 20 Apr 2019

Add a Comment

Login with GitHub to post a comment