View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18651Bug reportsInstallationpublic2023-06-08 18:20
Reporterheja.tibor Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version5.6.x 
Summary18651: Install error using PostgreSQL 15.2 as db
Description

During the installation process, using PostgreSQL as backend db, at the step of setting admin password (I hope, I remember correctly), I've got an internal server error.

After the modification of the limesurvey/vendor/yiisoft/yii/framework/db/schema/pgsql/CPgsqlSchema.php file, casting contype to contype::char, the error can be avoided.

Steps To Reproduce

Steps to reproduce

Insta

Expected result

The installation process can be finished successfully

Actual result

Internal server error.
The
In the PostgreSQl log:
ERROR: UNION types "char" and text cannot be matched at character 277
SELECT
conname,
consrc,
contype,
indkey
FROM (
SELECT
conname,
pg_catalog.pg_get_constraintdef(oid) AS consrc,
contype,
conrelid AS relid,
NULL AS indkey
FROM
pg_catalog.pg_constraint
WHERE
contype IN ('f', 'c')
UNION ALL
SELECT
pc.relname,
NULL,
CASE WHEN indisprimary THEN
'p'
ELSE
'u'
END,
pi.indrelid,
indkey
FROM
pg_catalog.pg_class pc,
pg_catalog.pg_index pi
WHERE
pc.oid=pi.indexrelid
AND EXISTS (
SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
)
) AS sub
WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='lime_users'
AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
WHERE nspname='public'))

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)Version 5.6.5+230214
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgreSQL 15.2 (Ubuntu 15.2-1.pgdg22.04+1)
Server OS (if known)Ubuntu 22.04
Webserver software & version (if known)Apache HTTP Server, 2.4.52-1ubuntu4.3
PHP Version8.0.28-1+ubuntu22.04.1+deb.sury.org+1

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2023-06-08 18:20

administrator   ~75491

This is resolved in the latest 5.x version due to a Yii framework update.

c_schmitz

c_schmitz

2023-06-08 18:20

administrator   ~75492

Hello heja.tibor,
I checked this with the latest version and could not reproduce, so this is most likely fixed for good.
Therefore, I am closing this issue. If you still can reproduce the issue using the latest version, please feel free to re-open the issue.
Thank you!

c_schmitz

Issue History

Date Modified Username Field Change
2023-02-23 16:30 heja.tibor New Issue
2023-06-08 18:20 c_schmitz Assigned To => c_schmitz
2023-06-08 18:20 c_schmitz Status new => resolved
2023-06-08 18:20 c_schmitz Resolution open => fixed
2023-06-08 18:20 c_schmitz Note Added: 75491
2023-06-08 18:20 c_schmitz Bug heat 0 => 2
2023-06-08 18:20 c_schmitz Status resolved => closed
2023-06-08 18:20 c_schmitz Note Added: 75492