PHP 8 PHP 8
 

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

PHP 8

Started by panhead, July 02, 2025, 06:03:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

panhead

I wanted to install a new gallery, but the installation stopped at step 3. Apparently because of the PHP 8.3 version I use.
But I have already a gallery running with PHP 8.3 (long ago installed), with PHP regularly updated.
So is it really not possible to do an installation with PHP 8.3?

ron4mac

There has typically been no problem with installing CPG 1.6.26 when using PHP 8.3
You have given no information that can be used to provide any help .. Links?, screen shot?, OS?, hosting?

panhead

When I install myself I get this:

http error 500


install1.jpg


and this error message:

[Sat Jul 05 09:51:56.582094 2025] [lsapi:error] [pid 2106493:tid 139585942177536] [client] [host www.xxx.net] Backend fatal error: PHP Fatal error:  Uncaught Error: Call to undefined function exec() in /home/xxx/xxx.net/public_html/coppermine/install.php:1468\nStack trace:\n#0 /home/xxx/xxx.net/public_html/thomas/coppermine/install.php(1338): getIM()\n#1 /home/xxx/xxx.net/public_html/thomas/coppermine/install.php(279): checkImageProcessor()\n#2 {main}\n  thrown in /home/xxx/xxx.net/public_html/thomas/coppermine/install.php on line 1468\n, referer: http://www.xxx.net/coppermine/install.php?step=3

If I use the automatic installer of my provider I get this error:

install2.jpg

ron4mac

Your host is apparently not allowing the exec() function for PHP 8.3
If you can not get your host to allow it, you can try the method here.

panhead

Your method works perfect, thank you.

FrA1l3

Sorry guys, I saw this is for a clean install.

I have shared hosting, and within it, I have a WP installation and a Coppermine installation. The thing is, upgrading from PHP 7.4 to any version of 8.x ends up with a 500 error when using Coppermine.
If I roll back the version, everything works fine.

The issueis that both WP and the hosting people are telling me that I should upgrade to PHP 8.4 due to the security risks of using an older version like PHP 7.4.

On WP, I have a store (WC) with personal data, and I wouldn't like to put that information at risk. So, is there any way I can explore the option of migrating to PHP 8.4, for example, and still have Coppermine work?
Since it's an installation on a shared server, I can barely touch the PHP configuration, as this guy indicated in the thread.

I'm quite concerned about security.
Thank you very much!

406man

The new Coppermine 1.6.27 is meant to work with PHP 8.4. I've not tried it myself yet.

phill104

I would also think it is worth checking what the 500 error actually is. You would need to either enable error reporting or check the server logs to do that. It could be a number of things that are easy to resolve.
It is a mistake to think you can solve any major problems just with potatoes.

FrA1l3

Quote from: phill104 on August 06, 2025, 11:44:06 PMI would also think it is worth checking what the 500 error actually is. You would need to either enable error reporting or check the server logs to do that. It could be a number of things that are easy to resolve.

Thanks, yes, you've given me an idea, and after checking, I've seen that it simply fails when I have the ron4mac user2FA plugin enabled.

If I enable it, it won't let me log in, although the gallery works correctly. I've even tried logging in with PHP 7.4, upgrading to 8.4, and in the same session, if I'm logged in, I'm fine, and it lets me change options and everything.
But when I try to log in, it won't let me, so the problem is with the plugin.

I can't find the right url for the plugin, I've installed v1.1, comes from here: https://coppermine-gallery.com/forum/index.php/topic,80370.0.html

thank you so much

FrA1l3