coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: Phil85 on May 21, 2022, 07:08:43 PM

Title: Upgrading php version 7.4 to 8.0
Post by: Phil85 on May 21, 2022, 07:08:43 PM
Hello everyone

I already asked a question like this, I just upgraded from version 1.6.18 to 1.6.19 with php version 7.4 and did the update no worries, but then I wanted to change php version and upgrade to version 8.0 but I get an error message on my site:https://www.photos-et-panoramas.fr/copmine/index.php (https://www.photos-et-panoramas.fr/copmine/index.php)

Fatal error: Uncaught ArgumentCountError: strtolower() expects exactly 1 argument, 2 given in /htdocs/copmine/plugins/theme_switch/codebase.php:43 Stack trace: #0 /htdocs/copmine/plugins/theme_switch/codebase.php(43): strtolower(false, 'operamini') #1 /htdocs/copmine/include/plugin_api.inc.php(307): theme_switch_page_start(NULL) #2 /htdocs/copmine/include/init.inc.php(439): CPGPluginAPI::action('page_start', NULL) #3 /htdocs/copmine/index.php(22): require('/htdocs/copmine...') #4 {main} thrown in /htdocs/copmine/plugins/theme_switch/codebase.php on line 43
Only solution back to version 7.4

Thanks for your help
Title: Re: Upgrading php version 7.4 to 8.0
Post by: phill104 on May 22, 2022, 02:23:42 PM
That appears to be not an issue with Coppermine core, but a problem with the theme switch plugin. Can you disable that and see if your site then works? If it does we can investigate upgrading the plugin.
Title: Re: Upgrading php version 7.4 to 8.0
Post by: Phil85 on May 22, 2022, 02:49:57 PM
Quote from: phill104 on May 22, 2022, 02:23:42 PM
That appears to be not an issue with Coppermine core, but a problem with the theme switch plugin. Can you disable that and see if your site then works? If it does we can investigate upgrading the plugin.

Hello
Thank you for your help, is it possible to deactivate the plugin without access to the configuration page? Or do I have to go back to php 7.4 and deactivate the plugin then go back to 8.0 to perform the test?
Thanks again
Title: Re: Upgrading php version 7.4 to 8.0
Post by: Phil85 on May 22, 2022, 04:28:55 PM
Quote from: phill104 on May 22, 2022, 02:23:42 PM
That appears to be not an issue with Coppermine core, but a problem with the theme switch plugin. Can you disable that and see if your site then works? If it does we can investigate upgrading the plugin.

Hello again everyone
I just deactivated the switch theme plugin, so I downgraded the php version to 7.4 and uninstalled the switch theme plugin, then I went back to php version 8.0, and the site works  photos-et-panoramas.fr (https://www.photos-et-panoramas.fr/copmine/index.php).
It seems that the problem therefore comes from the plugin, I will monitor my site for a few days because the last time I tested version 8.0 of php my site was running under copermine version 1.6.10, since then many problems have been solved.
Version of plugin used v1.0  link to plugin (https://forum.coppermine-gallery.net/index.php/topic,79604.0.html)
Soon a new version? ;)
Thanks for your help
Philippe
Title: Re: Upgrading php version 7.4 to 8.0
Post by: Phil85 on June 03, 2022, 07:34:02 PM
Hello everyone
After some research on the Copermine forum, I discovered yesterday that there is a version of the switch theme plugin v1.1, v1.0 was installed until today. So I installed this latest version v1.1 and it works, I monitored my site before putting this info here. It is a pity that we did not notice that a more recent version 1.1 existed I would have tested it immediately. But that's okay, the main thing is that it works. Thanks again.
Philippe
Title: Re: Upgrading php version 7.4 to 8.0
Post by: phill104 on June 04, 2022, 03:04:17 PM
My apologies for that, I too didn't realise. I have added a link in the v1 thread and will tidy things up when I have some spare time. Thanks for coming back and taking the time to update.
Title: Re: Upgrading php version 7.4 to 8.0
Post by: Phil85 on June 04, 2022, 04:37:55 PM
Thank Phill104
I allow myself to add a link to version 1.1 of the switch theme  (https://forum.coppermine-gallery.net/index.php/topic,79377.0.html)compatible with PHP 8.0.
No worries Phill104, the main thing as I said in the previous post is that the site works, thank you.
Philippe
Title: Re: Upgrading php version 7.4 to 8.0
Post by: theqe2story on June 15, 2024, 03:59:26 PM
Hi there.

I had the same person as the previous poster, but turning off theme switcher then moved me onto the next error message.

Can anyone shed some light on this please?

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home/theqesto/public_html/forum/gallery/include/database/mysqli/dbase.inc.php:32 Stack trace: #0 /home/theqesto/public_html/forum/gallery/include/init.inc.php(169): CPG_Dbase->__construct() #1 /home/theqesto/public_html/forum/gallery/index.php(22): require('/home/theqesto/...') #2 {main} thrown in /home/theqesto/public_html/forum/gallery/include/database/mysqli/dbase.inc.php on line 32
Title: Re: Upgrading php version 7.4 to 8.0
Post by: 406man on June 16, 2024, 02:20:40 PM
Quote from: theqe2story on June 15, 2024, 03:59:26 PM
Can anyone shed some light on this please?

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home/theqesto/public_html/forum/gallery/include/database/mysqli/dbase.inc.php:32 Stack trace: #0 /home/theqesto/public_html/forum/gallery/include/init.inc.php(169): CPG_Dbase->__construct() #1 /home/theqesto/public_html/forum/gallery/index.php(22): require('/home/theqesto/...') #2 {main} thrown in /home/theqesto/public_html/forum/gallery/include/database/mysqli/dbase.inc.php on line 32
What version of Coppermine are you running ?
Title: Re: Upgrading php version 7.4 to 8.0
Post by: theqe2story on July 16, 2024, 07:08:51 PM
Quote from: 406man on June 16, 2024, 02:20:40 PM
What version of Coppermine are you running ?

I'm on 1.6.26.