Laizez Posted October 30, 2016 Share Posted October 30, 2016 (edited) 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 November 3, 2016 by Laizez (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 31, 2016 Share Posted October 31, 2016 What's on line 805 of modules/blocktopmenu/blocktopmenu.php? Link to comment Share on other sites More sharing options...
Laizez Posted October 31, 2016 Author Share Posted October 31, 2016 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 More sharing options...
rocky Posted October 31, 2016 Share Posted October 31, 2016 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? 1 Link to comment Share on other sites More sharing options...
Laizez Posted October 31, 2016 Author Share Posted October 31, 2016 how can I download that version when my modules section in Backoffice isn't working? :S Link to comment Share on other sites More sharing options...
Laizez Posted October 31, 2016 Author Share Posted October 31, 2016 after at lot of trying, I finally fixed it I deleted the folder "Blocktopmenu" and now I could access the modules from backoffice and reinstall it. now everything works fine again Thanks for the help. Link to comment Share on other sites More sharing options...
Steve Joms Posted December 1, 2017 Share Posted December 1, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now