Support > cpg1.6 miscellaneous

PHP - minimum version allowed

<< < (3/3)

eLIANT:
406man -- No plugins of my own.  Just whatever comes with the package.

ron4mac -- Now, I turned PHP 8 back on and took some screen shots...
Top image is of Home page right after logging in.
Second (larger) image is of User Manager.

All messages, and there are other screens beside these two, point to include/debugger.inc.php line 114.

ron4mac:

--- Quote from: eLIANT on September 11, 2023, 09:14:05 pm ---ron4mac -- Now, I turned PHP 8 back on and took some screen shots...
Top image is of Home page right after logging in.
Second (larger) image is of User Manager.

--- End quote ---
Please don't waste people's time if you are not running a current version of CPG. You are not running the latest version (1.6.25, at the moment). When you login as admin, you will from time to time (weekly, I believe), be notified that there are updates to your CPG version. From there, it only takes a couple clicks to perform the update. Please update to the latest version.

406man:
Trying to answer the original question about PHP supported versions….

Being very picky, you asked what is the minimum version of PHP supported. This would be PHP 7.0 with CPG 1.6.16   I think what you meant to ask is what is the highest / newest version of PHP supported without generating error messages about deprecated features.

If I’ve understood correctly, the feature described in the error message – conversion of false to array – was deprecated in PHP 8.1 according to the information here:
https://eusonlito.github.io/php-changes-cheatsheet/deprecated.html
So you need to go to the previous version line – 8.0.x

The Coppermine release notes here :
https://github.com/coppermine-gallery/cpg1.6.x/releases
… describe CPG 1.6.18 (two releases newer than yours) as being updated for use with PHP 8.1.x
…and CPG 1.6.16 as having improved compatibility with PHP 8

So I take from the above that the newest supported version with 1.6.16 is PHP 8.0.x   and any PHP 7 release will be safe from a compatibility perspective although not so good from a security and support perspective as it's getting old.
If you run a WAMP development environment it’s easy to swap between different PHP versions and test compatibility although you might need to download a specific PHP version from the WAMP site that’s not supplied with the WAMP distribution.

Navigation

[0] Message Index

[*] Previous page

Go to full version