Jump to content

Error after host upgraded php to 5.4


Recommended Posts

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 by flamedtofu (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...