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: functions.inc.php PHP 8.0 error(s)  (Read 4673 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
functions.inc.php PHP 8.0 error(s)
« on: October 01, 2021, 05:27:43 pm »

Hi All,

Even with the latest 1.63 version there are still some issues with PHP 8.0

It seems this (maybe other code also) still have an issue with PHP 8.0

It in the functions.inc.php

        // sort the array by English name
        ksort($language_array);
        return $language_array;


Fatal error: Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, null given



Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: functions.inc.php PHP 8.0 error(s)
« Reply #1 on: October 03, 2021, 03:22:05 pm »

Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: functions.inc.php PHP 8.0 error(s)
« Reply #2 on: October 03, 2021, 03:29:42 pm »

CPG 1.6.10+ should generally run without issue under PHP 8.0.11

The error you are showing may be a one-off situation that implies an update was incorrectly done.
(example: jumping too far ahead from a 1.4.or 1.5 CPG version)

It will be difficult to provide you with any support if you are running a modified CPG version.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: functions.inc.php PHP 8.0 error(s)
« Reply #3 on: October 03, 2021, 03:33:52 pm »

This fixed it for me

Sorry ... I forgot that I had worked on that issue in the past.  ::)
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.