Jump to content

Home Page Blank, Can't access modules


Recommended Posts

I changed my admin password, now I get blank home page and an error when i try to go to my modules page.  I can get into my admin stuff just fine with the new password, but looks like it's pulling the old password from somewhere else when I try access certain things.

[PrestaShop] Fatal error in module Abstract:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'fsmoto5'@'localhost' (using password: YES)' in /home/fsmoto5/public_html/modules/vaf/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:129 Stack trace: #0 /home/fsmoto5/public_html/modules/vaf/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('mysql:dbname=fs...', 'fsmoto5', 'OldPassword', Array)

 

I updated

 

define('_DB_SERVER_', 'localhost');
define('_DB_NAME_', 'fsmoto5_prestashop');
define('_DB_USER_', 'fsmoto5_dbuser');
define('_DB_PASSWD_', 'NewPassord');

 

and that worked fine for getting me into the admin/Dashboard.

 

 

Link to comment
Share on other sites

Curious thing is that if I manually change the password in

 

/public_html/modules/vaf/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php

 

by changing

 

$this->_connection = new PDO(
                $dsn,
                $this->_config['username'],
                $this->_config['password'],
                $this->_config['driver_options']

 

it works.

Link to comment
Share on other sites

  • 3 months later...

Hi @thedrparker I'm having the same issue with this module in prestashop 1.5 and I get this error:

[PrestaShop] Fatal error in module Abstract:
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1049] Unknown database 'prestashop'' in 
D:\xampp\htdocs\spap\modules\vaf\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Pdo\Abstract.php:129 Stack trace: #0 
D:\xampp\htdocs\spap\modules\vaf\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Pdo\Abstract.php(129): PDO->__construct('mysql:dbname=pr...', 'root', '', Array) #1 
D:\xampp\htdocs\spap\modules\vaf\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Pdo\Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 
D:\xampp\htdocs\spap\modules\vaf\vendor\zendframework\zendframework1\library\Zend\Db\Adapter\Abstract.php(316): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 
D:\xampp\htdocs\spap\modules\vaf\vendor\vehiclefits\library\library\VF\Singleton.php(268): Zend_Db_Adapter_Abstract->getConnection() #4 
D:\xampp\htdocs\spap\modules\vaf\bootstrap.php(13)

I opened the file Abstract.php and look for the line 129 and found this:

        try {
            $this->_connection = new PDO(
                $dsn,
                $this->_config['username'],
                $this->_config['password'],
                $this->_config['driver_options']
            );

So the code it's ok comparing with yours, don't know what's happening here, if you can help me with this issue I appreciate it, thanks and best regards.  :)

Link to comment
Share on other sites

×
×
  • Create New...