Jump to content

Error showing on website page


Recommended Posts

Dear Prestashop Forum

on this page of our website: https://arte32.com/artisti 
we have an error showing like this

"
Warning: Declaration of TwovbrandsglossaryGlossaryModuleFrontController::setTemplate($template) should be compatible with ModuleFrontControllerCore::setTemplate($template, $params = Array, $locale = NULL) in /home/artecomyur/www/modules/twovbrandsglossary/controllers/front/glossary.php on line 10

"

 

Could you please advice us how to fix it!? Please find here attached a backup file of the actual glossary.php (as .txt extension)
many thanks

our prestashop 1.7.60

my coding knowledge = basic (close to zero!)

many thanks in advance


nerosunero

glossary-twobrand backup.txt

Link to comment
Share on other sites

In line 166 change

    public function setTemplate($template)

to

    public function setTemplate($template, $params = Array, $locale = NULL)

In general it seems this module was not updated for newer Presta versions. It might cause further issues.

Link to comment
Share on other sites

hi thanks for looking at this. I followed your tips and I changed line 166 into

  public function setTemplate($template, $params = Array, $locale = NULL)

Unfortunatly now on that same page https://arte32.com/artisti I get this error and no other content is shown!

Parse error: syntax error, unexpected ',', expecting '(' in /home/artecomyur/www/modules/twovbrandsglossary/controllers/front/glossary.php on line 166

 

prestashop-forum.jpg

Therefore I had to reload the backup version of my glossary.php file (the one that gives me the errors that I mention on the top of my post)

Edited by nerosunero
typoes (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...