Jump to content

Page blanche front et back office


Recommended Posts

Bonjour,

 

Depuis 2 jours sans que je n'ai modifié quoi que ce soit, mon site www.la-maison-de-manon.com affiche une page blanche aussi pour le back office que pour le front office.

 

J'ai activé le mode débug et j'ai obtenu le message d'erreur suivant:

 

Uncaught Error: Call to undefined function mysql_connect() in /home/o105169/public_html/classes/MySQL.php:21 Stack trace: #0 /home/o105169/public_html/classes/Db.php(75): MySQL->connect() #1 /home/o105169/public_html/classes/Db.php(56): Db->__construct() #2 /home/o105169/public_html/classes/Configuration.php(277): Db::getInstance() #3 /home/o105169/public_html/config/config.inc.php(61): Configuration::loadConfiguration() #4 /home/o105169/public_html/nila/index.php(16): include('/home/o105169/p...') #5 {main} thrown in /home/o105169/public_html/classes/MySQL.php on line 21

 

Je dois dire que je ne sais que faire. Si quelqu'un pouvait m'aider ce serait super sympa. Ci-après l'extrait du fichier classes/mySQL.php (ligne 21 en gras)

 

 

Merci par avance pour votre aide.

 

?php

/**
  * MySQL class, MySQL.php
  * MySQLs management
  * @category classes
  *
  * @author PrestaShop <[email protected]>
  * @copyright PrestaShop
  * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
  * @version 1.3
  *
  */

class MySQL extends Db
{
    public function    connect()
    {
        if (!defined('_PS_DEBUG_SQL_'))
            define('_PS_DEBUG_SQL_', false);
        if ($this->_link = @mysql_connect($this->_server, $this->_user, $this->_password))
        {
            if(!$this->set_db($this->_database))
                die(Tools::displayError('The database selection cannot be made.'));
        }
        else
            die(Tools::displayError('Link to database cannot be established.'));
        /* UTF-8 support */
        if (!mysql_query('SET NAMES \'utf8\'', $this->_link))
            die(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
        /* Disable some MySQL limitations */
        mysql_query('SET GLOBAL SQL_MODE=\'\'', $this->_link);
        return $this->_link;
    }

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...