PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in /home/benishop.ma/public_html/includes/PDO2.php:15
Stack trace:
#0 /home/benishop.ma/public_html/includes/PDO2.php(15): PDO->__construct()
#1 /home/benishop.ma/public_html/includes/Config.php(15): PDO2::getInstance()
#2 /home/benishop.ma/public_html/includes/Config.php(37): Config->__construct()
#3 /home/benishop.ma/public_html/includes/init.php(21): Config::getInstance()
#4 /home/benishop.ma/public_html/index.php(24): require_once('/home/benishop....')
#5 {main}
Fatal error: Uncaught Error: Call to a member function setAttribute() on null in /home/benishop.ma/public_html/includes/PDO2.php:22
Stack trace:
#0 /home/benishop.ma/public_html/includes/Config.php(15): PDO2::getInstance()
#1 /home/benishop.ma/public_html/includes/Config.php(37): Config->__construct()
#2 /home/benishop.ma/public_html/includes/init.php(21): Config::getInstance()
#3 /home/benishop.ma/public_html/index.php(24): require_once('/home/benishop....')
#4 {main}
thrown in /home/benishop.ma/public_html/includes/PDO2.php on line 22