Problem with gallery module after upgrading to php 8

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Callisto58
New Member
New Member
Posts: 5
Joined: Wed Mar 23, 2022 9:18 am

Problem with gallery module after upgrading to php 8

Post 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/
Last edited by velden on Wed Mar 23, 2022 2:58 pm, edited 1 time in total.
Reason: Log text in code block
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Problem with gallery module after upgrading to php 8

Post 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
Not getting the answer you need? CMSMS support options
Callisto58
New Member
New Member
Posts: 5
Joined: Wed Mar 23, 2022 9:18 am

Re: Problem with gallery module after upgrading to php 8

Post by Callisto58 »

Thanks for the hint, I have already done that. Is there a current alternative to the gallery module?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Problem with gallery module after upgrading to php 8

Post 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.
Not getting the answer you need? CMSMS support options
Callisto58
New Member
New Member
Posts: 5
Joined: Wed Mar 23, 2022 9:18 am

Re: Problem with gallery module after upgrading to php 8

Post by Callisto58 »

Fixed in Gallery version 2.4.3
Thanks to Jos!
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Problem with gallery module after upgrading to php 8

Post by Jos »

Thanks, you're welcome :D
Post Reply

Return to “Modules/Add-Ons”