Jump to content

Cannot select any valid SQL engine. at line 303 in file classes/db/Db.php Error prestashop 8


Recommended Posts

Hi, I've changed hosting provider and I uploaded my backups both for shop and db. I connected db and I was getting at first error 500 and 503 in BO and now I'm getting this:

 

Cannot select any valid SQL engine.
at line 303 in file classes/db/Db.php

298. } elseif (extension_loaded('mysqli')) { 299. $class = 'DbMySQLi'; 300. } 301. 302. if (empty($class)) { 303. throw new PrestaShopException('Cannot select any valid SQL engine.'); 304. } 305. 306. return $class; 307. } 308.

DbCore::getClass - [line 236 - classes/db/Db.php]

DbCore::getInstance - [line 47 - config/alias.php]

pSQL - [line 1359 - classes/shop/Shop.php] - [1 Arguments]

ShopCore::findShopByHost - [line 355 - classes/shop/Shop.php] - [1 Arguments]

ShopCore::initialize - [line 117 - config/config.inc.php]

require - [line 40 - admin/index.php] - [1 Arguments]

 

I've added phpinfo file to root of my website and I've checked and changed PHP version to 8.1. Also I've checked database via service provider tool and no errors were found. Any idea how to resolve this? I would really like to restore my shop. 

Link to comment
Share on other sites

I checked DB, checked all fields for a changed domain, and cleared the cache but the error still exist. Is there any option to change URL of domain in prestashop files or it is enough just to change in DB? I cannot access BO of presta so I cannot do it via cms

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