I transfer prestashop to another hosting (i have done it many times).
After the transfer front office is working fine.
In back office i get http error 500.
Nothing in apache error log.
If i put in debug mode back office is working fine.
If disable debug mode and enable display error and i got this
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'r1005_esorouxa'@'159.69.224.23' (using password: YES) in /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct('mysql:host=db25...', 'r1005_esorouxa', 'Bo?XXXXXXXXXXX', Array) #1 /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(44): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=db25...', 'r1005_esorouxa', 'Bo?XXXXXXXXXXX', Array) #2 /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'r1005_esorouxa', 'Bo?XXXXXXXXXXX', Array) #3 /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(942): Doctrine\DBAL\Connection->connect() #4 /usr/www/users/eksoro/src/PrestaShopBundle/Kernel/ModuleRepository.php(59): Doctrine\DBAL\Connection->query('SELECT name FR in /usr/www/users/eksoro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103
The credentials of mysql in error are from the old configuration!!!
Of Course after the transfer i update the app/config/parameters.php with the new db credentials.
I have clear cache. I have clear smarty. I have try different versions of php. I have check file permissions.
PrestaShop version: 1.7.5
PHP version: 7.2 (i try different versions 5.6 , 7.0, 7.1 , 7.3)
Hi @sanctusmob,
I moved my Project to a new domain without errors.
Thanks to check & feedback.
I clear manual older into var/cache (prod & dev) and problem solved.
Thank you very much.
@sanctusmob, thanks for your feedback.
Feel free to open a new one when needed.
Thanks!
I can confirm i had the same error.
@espacious, you need to clear cache manually by deleting all the folder into var/cache (prod & dev).
Thanks!
Most helpful comment
I clear manual older into var/cache (prod & dev) and problem solved.
Thank you very much.