Switching from PHP 5.6 to 7.3 Switching from PHP 5.6 to 7.3
 

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

Switching from PHP 5.6 to 7.3

Started by SunDancerGE, August 29, 2019, 02:43:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SunDancerGE

Hi,

I have two instances of CPG installed. Both the current 1.6.0.6 version. In my admin back end of my hoster I switched both domains from PHP 5.6 to 7.3. One CPG is working just fine, the other one throws an error as long as I keep it on 7.3. On 5.6 it still works fine.

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/www/doc/15877/oldenburger-spieletage.de/www/include/database/mysqli/dbase.inc.php:31 Stack trace: #0 /home/www/doc/15877/oldenburger-spieletage.de/www/include/init.inc.php(172): CPG_Dbase->__construct(Array) #1 /home/www/doc/15877/oldenburger-spieletage.de/www/index.php(22): require('/home/www/doc/1...') #2 {main} thrown in /home/www/doc/15877/oldenburger-spieletage.de/www/include/database/mysqli/dbase.inc.php on line 31

I bet this is something really simple but I can't wrap my head around it. Please help.

ron4mac

There must be some different PHP configuration changing files (php.ini .htaccess) in the path to the two galleries.

Put a small file in each gallery's root folder...

pinfo.php
<?php phpinfo(); ?>

Access the files from a browser. Look for differences that would keep one from providing the mysqli extension to PHP.