prasadwandre Posted December 7, 2017 Share Posted December 7, 2017 Hello everyone, I found strange issue when I upgrade PS version from 1.6 to 1.7. I found the following error : Link to database cannot be established:SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not knownat line 102 in file classes/db/DbPDO.php config/setting.inc.php is empty in this case. I know the db details path has changed with PS 1.7 but it is not working from there. When I changed setting.inc.php and put the parameters there then it worked but I don't know if its a correct way to do it. Later I will get the following problem : Fatal error: Uncaught Error: Class 'PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManagerBuilder' not found Anyone can help with this ? Thanks in advance. Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted December 7, 2017 Share Posted December 7, 2017 the database configuration file is in \app\config\parameters.php for ps 1.7,you can try to change 'database_host' => 'localhost', to 'database_host' => '127.0.0.1', Link to comment Share on other sites More sharing options...
prasadwandre Posted December 7, 2017 Author Share Posted December 7, 2017 I tried with that but doesn't work. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now