Problem with cannot redeclare htmlboxpro::hookdisplaybanner()

hello, I am under prestashop 1.7 with the latest version of htmlbox pro.
There is a bug that crashes the whole site since the declaration of a new hook.
Everything is blocked, the only way to unblock the situation is to comment on line 2714 of htmlboxpro.php.
Can you help us fix this bug?

You created hook that already exists in the module: 

This caused the problem. 
I am not sure what module version you currently used while you created this hook (it was the latest one version?) but module should check the name of hook you tried to create and if hook will exist in the module - it should block possibility to create it.

Exactly as i show here: 

How to solve problem
  1. log in to your FTP service and remove file: /modules/htmlboxpro/htmlboxpro.php or whole directory /modules/htmlboxpro/
  2. download new .zip file with module: 
  3. upload new .zip file and install module in shop's back office
  4. open module configuration page
  5. go to section with list of "non-default hooks": 
  6. click on delete button near the "displayBanner" hook

Second possibility
  1. you mentioned that you commented the line in the module, so you've got access to shop's back office - in this case you can remove the module from back office as well - click on "uninstall" it and check option to "delete" the module
  2. open module configuration page
  3. go to section with list of "non-default hooks":
  4. click on delete button near the "displayBanner" hook

After this click on "regenerate hooks" button: 

If you want to use displayBanner hook, use the original position:  
Share on Google Plus


This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment


Post a Comment