forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: prospectator on May 12, 2018, 10:45:28 pm

Title: After my web host migrated to a new company I'm getting an error?
Post by: prospectator on May 12, 2018, 10:45:28 pm
This is the error I'm receiving after my host company migrated to a new host.  Any help would be great.  Thanks.

"Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home2/bryceadams/public_html/coppermine/include/functions.inc.php:183 Stack trace: #0 /home2/bryceadams/public_html/coppermine/include/init.inc.php(171): cpg_db_connect() #1 /home2/bryceadams/public_html/coppermine/thumbnails.php(32): require_once('/home2/bryceada...') #2 {main} thrown in /home2/bryceadams/public_html/coppermine/include/functions.inc.php on line 183"

Originally, the directory home2/bryceadams/public_html didn't exist.  On the old server the coppermine folder was in the root folder.  I'm not sure what I need to change.

Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: prospectator on May 12, 2018, 10:46:31 pm
The site is http://www.prospectator.com/ (http://www.prospectator.com/)

Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: ron4mac on May 12, 2018, 11:37:06 pm
You need to have your host set you up with older (5.x) PHP or you need to upgrade your gallery to CPG 1.6.x
http://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037
Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: prospectator on May 13, 2018, 07:02:53 am
I just checked the web server, the PHP version is 5.6.30
Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: prospectator on May 13, 2018, 07:24:59 am
Sorry, trying to figure out the new host software.  When I view myphpadmin is see version 5.6.30, but when I navigate to my control panel is says the server php version is 7.0.29.  Sorry for the confusion.  Thanks for the help.
Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: Phill Luckhurst on May 13, 2018, 08:49:32 am
That means the MySQL version is 5.6 and PHP is Version 7. They are different elements of the server.

Hopefully you now know what you need to do. Upgrading is probably your best option.
Title: Re: After my web host migrated to a new company I'm getting an error?
Post by: prospectator on May 13, 2018, 08:57:36 am
Just ran the update and all seems to be working correctly.  Can't thank you enough for the help.  :)