Jump to content

Module update crashed entire site


info@attipas.hu

Recommended Posts

Dear All, does anyone know what to do when a module update crashes the whole site?

Error message for webshop visitors: error 500

Error message when selecting modules on prestashop administration site: [PrestaShop] Fatal error in module statsdata:

syntax error, unexpected '['

 

Can anyone help please as our customers are not able to shop and it's Xmas season

Link to comment
Share on other sites

I've been trough this like 7 times in the last 3 weeks.

 

Your problem is with your version of PHP. You are with a version << than 5.4.

 

2 Solutions, I REALLY insist on the first one.

  • Update your PHP version to something over 5.4 (Really, we're at 7.0 now..Your host really got you on a bad version, old) - Get 5.6 and you should be fine. 7.0 is only supported with PS > 1.6.1.4 I think.
  • Quick fix : Fix the problem by changing the array definition on line 108 of statsdata.php from : ['position' => 'bottom', 'priority' => 150]    to   array('position' => 'bottom', 'priority' => 150)

THE QUICK FIX IS TEMPORARY. Once you update, it will comeback if you didn't change your PHP version. CHANGE your PHP version, talk to your Host about it, he'll understand. If you install some new module, somes might use the quick syntax for Array too, putting you in the same situation again.

 

Martin.

Edited by Martin Uker K (see edit history)
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...