Error in 1.6.25 when clicking image in album Error in 1.6.25 when clicking image in album
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Error in 1.6.25 when clicking image in album

Started by bobbinalong, November 27, 2023, 07:36:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobbinalong

After upgrading from cpg 1.6.19 to 1.6.25, I get an errror when I navigate to an album and click on an image.
Yes I have run update.php and this was fine before the update.

Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/www/vhosts/cvrda.org/httpdocs/coppermine/displayimage.php:243 Stack trace: #0 /var/www/vhosts/cvrda.org/httpdocs/coppermine/displayimage.php(243): implode() #1 /var/www/vhosts/cvrda.org/httpdocs/coppermine/displayimage.php(461): html_picinfo() #2 {main} thrown in /var/www/vhosts/cvrda.org/httpdocs/coppermine/displayimage.php on line 243

ron4mac

You may have also updated your PHP version.  Will look onto it ASAP.

ron4mac

If you are able to edit one of the PHP files ..

In the file include/iptc.inc.php
replace line 45:
'SubCategories' => val_IPTC($iptc,'2#020'), # Max 32 octets, repeatable, alphanumeric
with:
'SubCategories' => val_IPTC($iptc,'2#020', false), # Max 32 octets, repeatable, alphanumeric

Adding correction for 1.6.26 release.

bobbinalong

Thanks - that's fixed it. Happy website again.