Jump to content

Upgraded PHP, now Front End Error

Recommended Posts

I upgraded to PHP 7.2, but now I have an error on the front end--even when changing to previous versions of PHP.

I am running the latest version of Prestashop and the backend still functions as it should--I can even download a backup of the database--so I assume it is connecting properly there.

I have verified that the mysqli extension is installed for all PHP versions but no luck

The error I am getting is:

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 47 - 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]


Any help is very much appreciated,

Thank you!

Share this post

Link to post
Share on other sites

please post your php info here, create a file on in your root files with

<?php phpinfo();

it's very odd you can access the admin and issue is only on front end.

Share this post

Link to post
Share on other sites

Just an update, figured this one out. Although PHP with packages was installed, Mcrypt for whatever reason was not.

After manually installing Mcrypt, functionality returned.

  • Like 1

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More