forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: jenzbie on May 27, 2020, 05:22:02 am

Title: Fatal Error After Receiving Critical Error
Post by: jenzbie on May 27, 2020, 05:22:02 am
I tried logging into my gallery at https://ben-hardy.net/gallery and received a Critical Error when trying to do so. When trying to open up an album, I had a 500 Error show up; then all of a sudden I have the following Fatal Error:

Code: [Select]
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/jennhxqd/ben-hardy.net/gallery/include/functions.inc.php:183 Stack trace: #0 /home/jennhxqd/ben-hardy.net/gallery/include/init.inc.php(171): cpg_db_connect() #1 /home/jennhxqd/ben-hardy.net/gallery/index.php(26): require('/home/jennhxqd/...') #2 {main} thrown in /home/jennhxqd/ben-hardy.net/gallery/include/functions.inc.php on line 183
I've attempted uploading a fresh file and upgraded/downgraded PHP versions and nothing has changed.

When trying to repair the tables via myphpadmin, the following error shows up as well:

Code: [Select]
The storage engine for the table doesn't support r...
Title: Re: Fatal Error After Receiving Critical Error
Post by: ron4mac on May 27, 2020, 01:39:19 pm
Your host has changed the default PHP version to 7.x. If you can't change the PHP version to 5.6, you will need to upgrade your gallery software to CPG 1.6.x using this method:
https://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037

You should ultimately upgrade to CPG 1.6.x, regardless.
Title: Re: Fatal Error After Receiving Critical Error
Post by: jenzbie on May 27, 2020, 08:12:43 pm
I downgraded PHP to 5.6, was able to log back in to upgrade CPG (it was in process), the Critical Error when trying to log in showed up again:

Code: [Select]
Critical error
There was an error while processing a database query

I downgraded CPG again and now the gallery just pulls up with Fatal Error: (in PHP 5.6) and the original error I posted with in any PHP version above 7.

Title: Re: Fatal Error After Receiving Critical Error
Post by: jenzbie on May 27, 2020, 08:23:10 pm
After downgrading both CPG and PHP, I manually installed the newest version of CPG and everything is now running smoothly.

The theme must only run on PHP 5.6 or else the original error shows in all the other versions of PHP.