Prestashop error "Cannot select any Valid SQL engine. at line 302 in file classes/db/Db.php"

Asked

Viewed 171 times

-1

Good morning,

I had a problem with the files of the server in which they were all deleted, however I had backup of the whole site, since this was done a data restore, which happened in normal, but what happens now is the following:

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

297.         } elseif (extension_loaded('mysqli')) {
298.             $class = 'DbMySQLi';
299.         }
300. 
301.         if (empty($class)) {
302.             throw new PrestaShopException('Cannot select any valid SQL engine.');
303.         }
304. 
305.         return $class;
306.     }
307. 
DbCore::getClass - [line 236 - classes/db/Db.php]
DbCore::getInstance - [line 48 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]

I’ve done everything, I’ve checked and activated the extensions and nothing.

I will have to ask my host to do a reset and then do the restoration?

Is that I myself trying to install a new store Prestashop gives this error.

Thank you.

  • The error is the above mentioned, no more.

1 answer

1

Missing php mysqlnd extension.

with dnf package manager: sudo dnf install php-mysqlnd (+ restart php) should solve the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.