Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading major version causes an error when using PostgreSQL 16 #44420

Open
smng opened this issue Nov 7, 2024 · 2 comments
Open

Upgrading major version causes an error when using PostgreSQL 16 #44420

smng opened this issue Nov 7, 2024 · 2 comments

Comments

@smng
Copy link

smng commented Nov 7, 2024

Steps to reproduce the issue

Upgrade last version minor version of Joomla 4 to the next major Version 5 using PostgreSQL 16.

Expected result

Upgrade should be successful

Actual result

The upgrade process results in an error and leave Joomla in an unusable state with no possibility to login into the administration gui.

System information (as much as possible)

PostgreSQL 16
Debian 12
PHP 8.2.18
Upgrade Joomla 4.4.9 to 5.2.0

Additional comments

The reason is, that the parameter lc_collate was removed in PostgreSQL 16.
But the file administrator/components/com_admin/src/Model/SysinfoModel.php (Lines 319 and 320) try to query the value of this parameter:

'dbcollation'            => $db->getCollation(),
'dbconnectioncollation'  => $db->getConnectionCollation(),

I have comment out this two lines and the upgrade process works fine.

@alikon
Copy link
Contributor

alikon commented Nov 7, 2024

this was fixed joomla-framework/database#295 and released in

https://github.com/joomla-framework/database/releases/tag/3.2.1 but not backported in j4 which use still "joomla/database": "^2.1.1",

p.r for 2.x
joomla-framework/database#313

@teoberi
Copy link

teoberi commented Nov 8, 2024

The correction is not even in Joomla 5.2.1, I still have to manually modify the lines in the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants