0

When I enter prestashop back office and click the modules tab in the top menu it is giving the following error, prestashop version 1.5.3.1

[PrestaShop] Fatal error in module Api: syntax error, unexpected T_FUNCTION, expecting ')'

Any help would be greatly appreciated, searched prestashop forums and cannot find a solution

Thanks in advance

ducksoup
  • 29
  • 1
  • 4

2 Answers2

0

It may be related to version of PHP. I had this problem because of unsupported version of module. What I did was turn on the debug mode on PrestaShop which showed me in what module error was happening and then just removed that module from PrestaShop installation diretory, modules folder.

If you are using that module, you could backup it, then re-installing it, etc.

Community
  • 1
  • 1
Algirdas
  • 677
  • 1
  • 6
  • 15
-1

It turned out it was a problem with Youstice v1.7.2 module

It was causing the API error, what we did in the end was change the name of a folder in the public_html>modules from- "yousticeresolutionsystem" to "yousticeresolutionsystemX"

because it wouldn't allow me to delete the folder to stop the API error.

By using X this in effect deletes the folder stopping the error

ducksoup
  • 29
  • 1
  • 4