flamedtofu Posted August 17, 2013 Share Posted August 17, 2013 (edited) Hey guys, I'm recieving the following error after my host upgraded my site to php 5.4 to try to fix anouther problem. Fatal error: Call to undefined function mysql_connect() in /home/xxxx/public_html/classes/db/MySQL.php on line 37 I can get into the admin panel without a problem. i'm guessing there is a config file that perhaps needs updating? does anyone have any ideas to point me in the right direction? Edited August 17, 2013 by flamedtofu (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted August 19, 2013 Share Posted August 19, 2013 Have you installed the mysql module correctly when upgrading php? Server specs? Furhter reading: http://stackoverflow.com/questions/9244326/php-5-4-development-server-doesnt-recognize-mysql-connect Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 i think that your hoster do did something wrong it looks like mysql extension in your php aren't working well Link to comment Share on other sites More sharing options...
bellini13 Posted August 19, 2013 Share Posted August 19, 2013 But if you read what he says, his back office works properly, and his front office does not. Let's rule out Prestashop. Create a file named mysqltest.php with the following content. Update the username, password and host variables appropriately. Place the file in the root directory of your website and then open the file using your browser (ie.. www.domain.com/mysqltest.php and see what happens. If this fails, then contact your hosting provider and report an issue, since it has nothing to do with Prestashop <?php $username = "your_name"; $password = "your_password"; $hostname = "localhost"; //connection to the database $dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); echo "Connected to MySQL<br>"; ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now