Page 1 of 1

Problem with gallery module after upgrading to php 8

Posted: Wed Mar 23, 2022 9:26 am
by Callisto58
When I change a cms installation 2.2.16 from php 7.4 to php 8.0 I have the following problem:

If I try to change the gallery template or enter a title or comment in a gallery or if I try to change the order of the images in the gallery, I get a blank page after "save". The changes can not be saved.

In the errorlog of the server the following errors can be found:

Code: Select all

[Tue Mar 15 11:41:14.276289 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: Stack
trace:, referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276299 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: #0
/home/kultino/www/test.kultino.ch/modules/Gallery/action.do_editgallery.php(203):
implode(';', '1'), referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276328 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: #3
/home/kultino/www/test.kultino.ch/admin/moduleinterface.php(74):
CMSModule->DoActionBase('do_editgallery', 'm1_', Array, '', Object(Smarty_CMS)),
referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276253 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: PHP Fatal
error:  Uncaught TypeError: implode(): Argument #2 ($array) must be of type
?array, string given in
/home/kultino/www/test.kultino.ch/modules/Gallery/action.do_editgallery.php:203,
referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276346 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr:   thrown in
/home/kultino/www/test.kultino.ch/modules/Gallery/action.do_editgallery.php on
line 203, referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276309 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: #1
/home/kultino/www/test.kultino.ch/lib/classes/class.CMSModule.php(1403):
include('/home/kultino/w...'), referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276337 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: #4 {main},
referer https://test.kultino.ch/
[Tue Mar 15 11:41:14.276318 2022] [-:error] [pid 53918:tid 34462022144] [client
178.196.16.81:57697] FastCGI: server "/var/run/hcgi/215146" stderr: #2
/home/kultino/www/test.kultino.ch/lib/classes/class.CMSModule.php(1479):
CMSModule->DoAction('do_editgallery', 'm1_', Array, ''), referer
https://test.kultino.ch/

Re: Problem with gallery module after upgrading to php 8

Posted: Wed Mar 23, 2022 2:16 pm
by DIGI3
I'm not sure if Jos is still supporting the Gallery module, but you can try filing a bug report at http://dev.cmsmadesimple.org/bug/list/726

Re: Problem with gallery module after upgrading to php 8

Posted: Wed Mar 23, 2022 2:42 pm
by Callisto58
Thanks for the hint, I have already done that. Is there a current alternative to the gallery module?

Re: Problem with gallery module after upgrading to php 8

Posted: Wed Mar 23, 2022 4:03 pm
by DIGI3
It's pretty easy to build one with LISE (once you're familiar with how it works), it's not ideal for really large galleries as there's no bulk image upload, but it does the job for smaller ones.

Re: Problem with gallery module after upgrading to php 8

Posted: Wed Apr 13, 2022 8:10 am
by Callisto58
Fixed in Gallery version 2.4.3
Thanks to Jos!

Re: Problem with gallery module after upgrading to php 8

Posted: Wed Apr 13, 2022 5:29 pm
by Jos
Thanks, you're welcome :D