Jump to content

500 error after updating to 1.7.8.8, backup site + DB did not help


Recommended Posts

Dear all,

I updated my 1.7.8.7 site to 1.7.8.8. Got a 500 error. 
Reinstalled website from backup + reinstalled backup DB.
Still 500 error.
Deleted cache
Still 500 error
Am now at limit of my limited kowledge...

Site URL: www.aquaplanning.org/boekingssysteem/

Switched on error reporting:
Warning: Use of undefined constant _PS_ALLOW_MULTI_STATEMENTS_QUERIES_ - assumed '_PS_ALLOW_MULTI_STATEMENTS_QUERIES_' (this will throw an Error in a future version of PHP) in /mnt/web217/a0/39/511333139/htdocs/boekingssysteem/classes/db/DbPDO.php on line 92 Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /mnt/web217/a0/39/511333139/htdocs/boekingssysteem/src/Core/Session/SessionHandler.php on line 116

 

(1/1) EnvNotFoundException

Environment variable not found: "runtime:_PS_ALLOW_MULTI_STATEMENTS_QUERIES_".

in RuntimeConstEnvVarProcessor.php line 39

at RuntimeConstEnvVarProcessor->getEnv()in Container.php line 491

at Container->getEnv()in FrontContainer.php line 1267

at FrontContainer->getDoctrine_Dbal_DefaultConnectionService()in FrontContainer.php line 1641

at FrontContainer->getProductCommentRepositoryService()in Container.php line 306

at Container->get()in productcomments.php line 937

at ProductComments->hookFilterProductContent()in Hook.php line 1007

at HookCore::coreCallHook()in Hook.php line 431

at HookCore::callHookOn()in Hook.php line 944

at HookCore::exec()in ProductController.php line 384

at ProductControllerCore->initContent()in Controller.php line 306

at ControllerCore->run()in Dispatcher.php line 525

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

Hi @AquaPlanning,

I had exactly the same problem.

Fixed it adding this into /classes/db/DbPDO.php, in the getPDO function.

define ('_PS_ALLOW_MULTI_STATEMENTS_QUERIES_', null);

Don't forget to backup your file!

Not sure what might have caused it, the backoffice was working fine after updating to 1.7.8.8.

Hope it helps!

On 12/24/2022 at 7:01 PM, AquaPlanning said:

"solved" by installing Prestashop 1.8 

????

Link to comment
Share on other sites

  • 2 months later...
On 3/23/2023 at 2:54 PM, Yulia Vitun said:

in which line exactly of /classes/db/DbPDO.php to add this code?

I had same problem. I had replaced src and vendor folders from the wrong PS source version for my installation. Downloaded the correct PS source version of (1.7.8.8 for me) then replaced the src and vendor folders and it worked. 

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