Jump to content
thespecv

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

Just checking in again to see if anyone could provide some insight. 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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