Recent posts - Page 3 Recent posts - Page 3
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Recent posts

#21
cpg1.6 install / Re: Update from cpg 1.5.48 –> ...
Last post by zeppo - February 14, 2026, 02:36:57 PM
Thanks 406man,

This is a new test site. My online site is running the old version & php.

This test site has PHP 8.1, and i loaded the ols site there, and manually updated the Coppermine.
Both Finnish & English site stop at the same sop of the update.

The error message is not in Englsih, so there's traslated version:

___________________________________

There seems to be a problem with this site

The website

/install.php?step=4

may have a temporary problem or it may have moved.

Error code: 500 Internal Server Error

The site may be temporarily unavailable or under heavy load. Please try again in a while.
#22
cpg1.6 install / Re: Update from cpg 1.5.48 –> ...
Last post by 406man - February 14, 2026, 09:56:21 AM
Did you upgrade PHP to 8.1 before running the upgrade procedure ? If you were still on PHP 5 I'm unclear what would cause this problem. Could you post a screenshot of exactly what happened including the error message.
#23
cpg1.6 install / Re: Update from cpg 1.5.48 –> ...
Last post by zeppo - February 13, 2026, 08:22:50 AM
Error code: "500 Internal Server Error"
#24
cpg1.6 install / Update from cpg 1.5.48 –> 1.6....
Last post by zeppo - February 13, 2026, 08:15:56 AM
Hello Friends,

I try to update my site to work with PHP 8.1, and tried to update cpg 1.5.48 –> 1.6.26, but the istallation stops at the step 4:
___________________________________

"$install_config = array(

      'lang' => 'finnish',

    'steps_done' => array(

          '0' => '1',

          '1' => '2',

          '2' => '3',

          '3' => '4',

    ),

      'step' => '4',

      'javascript_test_passed' => '1',

);

___________________________________

What could be the problem?


#25
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 911Patches - January 06, 2026, 06:38:05 AM
Thank You 406man, this is fixed and is working.
Appreciate the help!
#26
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 406man - January 04, 2026, 09:25:28 AM
Whether the PHP version will work properly or not depends on the version of CPG you're running and which, if any, additional plugins beyond those supplied with the CPG distribution you are using.

If you have CPG 1.6.27 you can run PHP 8.4. Some older plugins will be incompatible with 8.4.  Best option is to go up in steps and go back if you run into problems. As a principle, in my galleries, I don't run on the leading edge of PHP versions.
#27
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 911Patches - January 04, 2026, 04:53:36 AM
Thank You!
I am having my webhost (godaddy) edit that file.
It now seems to be working fine on PHP 8.1 but when I change it to 8.2 I get the same error.
After they edit that file, will I be able to get to 8.2-3-or-4?
#28
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 406man - January 02, 2026, 09:17:05 AM
The most likely cause of the first error is that the particular version of PHP you are using has not been configured to include the mysqli module.

You can prove it by creating this tiny PHP file and putting it in your top level CPG directory and running it from a web browser:
<?php
// Show the PHP configuration
    
phpinfo();
?>

It will list the PHP configuration including all the modules in alphabetical order including their settings. If you have mysqli it will appear between mbstring and mysqlnd – assuming those modules are included in the PHP configuration. Remember to delete it or move to another directory afterwards.

If you have access to the PHP.ini file for the web server find the line

; extension=mysqli

and uncomment it by removing the ; character and restart the web server.

If you don't have access to it you'll have to ask your web host support team.

The error described in your second message  comes from the theme_switch plugin which I presume is not compatible with PHP 8. Version 1.1 of the plugin is here:

https://coppermine-gallery.com/forum/index.php/topic,79377.0.html

...and a post elsewhere on the forum says it is PHP 8 compatible although I've not tried it myself to be able to confirm.
#29
cpg1.6 miscellaneous / Re: Error messages
Last post by sharpo - January 02, 2026, 12:22:06 AM
Concerning minicms, I would use it if it was available - but if not, I'll manage without it.

Give it some time & see if anybody else shows interest in it, being able to add a few comments here & there used to be very handy.

Thanks for updating me on the situation with it.

Oh, just looked at my gallery - it was started on Jan 22nd 2006. Yes, nearly 20 years ago!!
#30
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 911Patches - January 01, 2026, 11:23:57 PM
This was also an error:

Fatal error: Uncaught ArgumentCountError: strtolower() expects exactly 1 argument, 2 given in /home/patchgallery/public_html/plugins/theme_switch/codebase.php:53 Stack trace: #0 /home/patchgallery/public_html/plugins/theme_switch/codebase.php(53): strtolower() #1 /home/patchgallery/public_html/include/plugin_api.inc.php(307): theme_switch_page_start() #2 /home/patchgallery/public_html/include/init.inc.php(442): CPGPluginAPI::action() #3 /home/patchgallery/public_html/index.php(22): require('/home/patchgall...') #4 {main} thrown in /home/patchgallery/public_html/plugins/theme_switch/codebase.php on line 53