functions.inc.php PHP 8.0 error(s) functions.inc.php PHP 8.0 error(s)
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

functions.inc.php PHP 8.0 error(s)

Started by altenae, October 01, 2021, 05:27:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

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




altenae


ron4mac

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.

ron4mac

Quote from: altenae on October 03, 2021, 03:22:05 PM
This fixed it for me

Sorry ... I forgot that I had worked on that issue in the past.  ::)