Jump to content

Fatal error in module file pscleaner.php


pbj

Recommended Posts

Hi

 

I tried to uninstalled "send to a friend" module that i heard it could corse virus. 

 

Then run pscleaner and now i can't see the module page?? 

 

[PrestaShop] Fatal error in module file :/home/u11p7yb/www/modules/pscleaner/pscleaner.php:
syntax error, unexpected '['

 

Thank you for your time

 

Peter

Link to comment
Share on other sites

  • 2 weeks later...

This error usually occurs when a module is using the [] notation to create an array and you're using an old version of PHP that doesn't support that notation. To fix it, search for code like the following:

 

$array = [];

 

And change it to:

 

$array = array();

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