Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Error in 1.6.25 when clicking image in album  (Read 2283 times)

0 Members and 1 Guest are viewing this topic.

bobbinalong

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Error in 1.6.25 when clicking image in album
« on: November 27, 2023, 07:36:03 am »

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
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Error in 1.6.25 when clicking image in album
« Reply #1 on: November 27, 2023, 02:32:55 pm »

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

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Error in 1.6.25 when clicking image in album
« Reply #2 on: November 27, 2023, 02:52:44 pm »

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

In the file include/iptc.inc.php
replace line 45:
Code: [Select]
'SubCategories' => val_IPTC($iptc,'2#020'), # Max 32 octets, repeatable, alphanumericwith:
Code: [Select]
'SubCategories' => val_IPTC($iptc,'2#020', false), # Max 32 octets, repeatable, alphanumeric
Adding correction for 1.6.26 release.
Logged

bobbinalong

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Error in 1.6.25 when clicking image in album
« Reply #3 on: November 28, 2023, 06:09:53 pm »

Thanks - that's fixed it. Happy website again.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.