Jump to content

[solved] unable to access shop front and also modules from the backoffice


Recommended Posts

Can anyone help:

 

when I want to visit my shop i get this:

Fatal error: Redefinition of parameter $id_shop in /var/www/of-power.net/salg/modules/blocktopmenu/blocktopmenu.php on line 805

 

when I try to go to Modules from the backoffice i get this:

Fatal error: Redefinition of parameter $id_shop in /var/www/of-power.net/salg/classes/module/Module.php(1238) : eval()'d code on line 805
[PrestaShop] Fatal error in module file :/var/www/of-power.net/salg/classes/module/Module.php(1238) : eval()'d code:
Redefinition of parameter $id_shop

 

How can I solve this error?

 

it has been a while since i created the shop, and havent touched it in like 6 months, now suddently when i want to use it, it doesn't work.

 

how can this happen?

 

Thanks in advance

Best Regards

 

Edited by Laizez (see edit history)
Link to comment
Share on other sites

Hello Rocky

 

here is line 805 to 808

 

private function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false, $id_shop = false)
 {
  $id_shop = ($id_shop !== false) ? (int)$id_shop : (int)Context::getContext()->shop->id;
  $id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;

Link to comment
Share on other sites

That line of code is wrong. There should only be one $id_shop parameter. Here's what it is on my PrestaShop v1.6.1.8 test site:

    protected function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false)

Maybe you should download the latest version of blocktopmenu?

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 10/31/2016 at 4:39 PM, rocky said:

That line of code is wrong. There should only be one $id_shop parameter. Here's what it is on my PrestaShop v1.6.1.8 test site:


    protected function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false)

Maybe you should download the latest version of blocktopmenu?

 

I tried rocky's suggestion without deleting the blocktopmenu files. 

Just delete the duplicate $id_shop parameter works well.

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