Recent posts Recent posts
 

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

Recent posts

#1
cpg1.6 upgrading / Re: Upgrading from PHP 7.3 to ...
Last post by 911Patches - Yesterday at 06:38:05 AM
Thank You 406man, this is fixed and is working.
Appreciate the help!
#2
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.
#3
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?
#4
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.
#5
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!!
#6
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
#7
cpg1.6 upgrading / Upgrading from PHP 7.3 to 8.2 ...
Last post by 911Patches - January 01, 2026, 10:55:28 PM
Hello

I updated my PHP one step at a time from 7.3 to 7.4 to 8.0 to 8.1
I eventually want to end up at 8.2 for site host performance issues etc.
However, sometime when I went to 8.1 I was getting this error when using index.php

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home/patchgallery/public_html/include/database/mysqli/dbase.inc.php:32 Stack trace: #0 /home/patchgallery/public_html/include/init.inc.php(172): CPG_Dbase->__construct() #1 /home/patchgallery/public_html/index.php(22): require('/home/patchgall...') #2 {main} thrown in /home/patchgallery/public_html/include/database/mysqli/dbase.inc.php on line 32

I have degraded back to 7.4 but am still getting this fatal error.

Any ideas on what I can do so that I can update PHP?

Thank You
#8
cpg1.6 upgrading / Re: Clicking Home Shows I'm Lo...
Last post by 911Patches - January 01, 2026, 10:48:30 PM
Thank You!
#9
cpg1.6 miscellaneous / Re: Error messages
Last post by ron4mac - January 01, 2026, 09:30:52 PM
When looking at the issue minicms is having with PHP8.3, I looked at what it takes to switch the editor. I was able to switch to the basic operation of Trix after looking at it for a few hours. I also have experience with embedding CKEditor in one of my own projects. Changing the editor is quite doable ... but is it something worth doing? I'm not sure how relevant CPG is today. There may be only one or two people who have compelling interest in using minicms.
#10
cpg1.6 miscellaneous / Re: Error messages
Last post by phill104 - December 31, 2025, 09:03:12 PM
Just be aware there was a security issue with the editor (FCKeditor) and was never updated. FCKeditor has been discontinued for some time and replaced with CKeditor with a substantial lot of changes since the version shipped with MiniCMS.

Details and links to the repo here - https://en.wikipedia.org/wiki/CKEditor

I am not sure how much work would be needed to replace the editor in the package.