Giovanni - HexaNet Posted July 6, 2019 Share Posted July 6, 2019 Hi there! I have a small problem with my PrestaShop main menu. A long time ago I decided that I didn't needed the plugin so I disabled it. But now I want to enable it and it keeps enabled for a couple of hours after it disables again automatically. Can somebody help me with this problem? Thanks in advance! Link to comment Share on other sites More sharing options...
giulym Posted September 5, 2019 Share Posted September 5, 2019 Same problem! I don't know how to solve it. It happens when I add a new module or I edit something in the BO. Did you find a solution? Link to comment Share on other sites More sharing options...
Hans Henrik Posted September 23, 2019 Share Posted September 23, 2019 Just want to add me to the frustrated ones - deep bug. Link to comment Share on other sites More sharing options...
kotzie Posted December 30, 2019 Share Posted December 30, 2019 Same problem here.. 1.7.6.0 Seems like it's Smarty cache problem related, but I'm pretty afraid to disable it for now. Link to comment Share on other sites More sharing options...
Dp. Posted March 5, 2020 Share Posted March 5, 2020 Any progress on this issue? Really annoying to check if the menu is still there after every change to another module... Link to comment Share on other sites More sharing options...
Jamie Dean Posted March 29, 2020 Share Posted March 29, 2020 (edited) Hi Guys, I've had this issue for quite some time and I've found out whats causing it! GRRRRRR I stumbled across the cause by going to Design -> positions -> Main Menu -> Edit I noticed that a warning appeared saying Top Horizontal Menu cannot be used with Main Menu - voila! Its a module that's installed but not showing - I deleted the folder under the Modules section but I suppose a safer option would be to install it from Module Manager and Uninstall it again - I suspect at some point its been installed and during the uninstall i've told it to leave the folder there. Just a quick note I forgot to add.... I viewed the source of the module and it has a section which automatically disables the ps_main_menu module. Edited March 29, 2020 by Jamie Dean Missing info (see edit history) 1 1 Link to comment Share on other sites More sharing options...
kotzie Posted March 29, 2020 Share Posted March 29, 2020 4 hours ago, Jamie Dean said: Hi Guys, I've had this issue for quite some time and I've found out whats causing it! GRRRRRR I stumbled across the cause by going to Design -> positions -> Main Menu -> Edit I noticed that a warning appeared saying Top Horizontal Menu cannot be used with Main Menu - voila! Its a module that's installed but not showing - I deleted the folder under the Modules section but I suppose a safer option would be to install it from Module Manager and Uninstall it again - I suspect at some point its been installed and during the uninstall i've told it to leave the folder there. Just a quick note I forgot to add.... I viewed the source of the module and it has a section which automatically disables the ps_main_menu module. You, sir, deserve a dozen Temakis by on me. Works like a charm! Seems like the uninstall function of the Top Horizontal Menu, by MyPresta, doesn't work properly. Removing the directory made the job. Thanks! Link to comment Share on other sites More sharing options...
Dp. Posted March 29, 2020 Share Posted March 29, 2020 Ha! Deleted /modules/blocktopdropdownmenu, let's see if that does indeed fix this issue. Thanks for discovering this! Link to comment Share on other sites More sharing options...
TillyOak Posted May 5, 2020 Share Posted May 5, 2020 Can't believe it was this thing all along, had this issue for months and it just happened again when I installed a completely separate mod and searched for the issue, found this and VOILA ! Thanks for the tip Link to comment Share on other sites More sharing options...
Sellmark Posted May 16, 2020 Share Posted May 16, 2020 Oh yea, this one was tricky! 😂 As far as I observe it really fixes weird problem with blocktopdropdownmenu from mypresta.eu by @vekia I'm not sure the module was even enabled in the shop, because we used the generic ps_mainmenu. Accidently, once in a while it triggered if (Module::isEnabled('blocktopdropdownmenu')) from \blocktopdropdownmenu.php:70 public function __construct() { $this->name = 'blocktopdropdownmenu'; $this->tab = 'front_office_features'; $this->version = '1.0.3'; $this->author = 'MyPresta.eu + PrestaShop'; $this->mypresta_link = 'https://mypresta.eu/modules/front-office-features/top-horizontal-menu-with-dropdowns.html'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Top horizontal menu'); $this->description = $this->l('Adds a new horizontal menu to the top of your e-commerce website. It is an modification of default module that creates dropdown menu'); $this->ps_versions_compliancy = array('min' => '1.7', 'max' => '1.7.99.99'); $this->checkforupdates(0,0); if (Module::isEnabled('ps_mainmenu')){ $this->context->controller->warnings[] = $this->l('Top horizontal menu with dropdowns does not work with default "Main menu" module.').' '.$this->l('To use this module you need to disable the official "Main menu" first'); if (Module::disableByName('ps_mainmenu')){ if (Module::isEnabled('blocktopdropdownmenu')) { $this->context->controller->success[] = $this->l('We disabled this module automatically'); } } } } So! Deleting the module from FTP fixed the problem. Actually renaming directory is fine too (__blocktopdropdownmenu) 2 1 Link to comment Share on other sites More sharing options...
heila49 Posted October 23, 2020 Share Posted October 23, 2020 Thanks you so much @Jamie Dean and @Sellmark Bravo. 1 Link to comment Share on other sites More sharing options...
boldizart.com Posted May 6, 2021 Share Posted May 6, 2021 On 5/16/2020 at 9:00 AM, Sellmark said: Oh yea, this one was tricky! 😂 As far as I observe it really fixes weird problem with blocktopdropdownmenu from mypresta.eu by @vekia I'm not sure the module was even enabled in the shop, because we used the generic ps_mainmenu. Accidently, once in a while it triggered if (Module::isEnabled('blocktopdropdownmenu')) from \blocktopdropdownmenu.php:70 public function __construct() { $this->name = 'blocktopdropdownmenu'; $this->tab = 'front_office_features'; $this->version = '1.0.3'; $this->author = 'MyPresta.eu + PrestaShop'; $this->mypresta_link = 'https://mypresta.eu/modules/front-office-features/top-horizontal-menu-with-dropdowns.html'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Top horizontal menu'); $this->description = $this->l('Adds a new horizontal menu to the top of your e-commerce website. It is an modification of default module that creates dropdown menu'); $this->ps_versions_compliancy = array('min' => '1.7', 'max' => '1.7.99.99'); $this->checkforupdates(0,0); if (Module::isEnabled('ps_mainmenu')){ $this->context->controller->warnings[] = $this->l('Top horizontal menu with dropdowns does not work with default "Main menu" module.').' '.$this->l('To use this module you need to disable the official "Main menu" first'); if (Module::disableByName('ps_mainmenu')){ if (Module::isEnabled('blocktopdropdownmenu')) { $this->context->controller->success[] = $this->l('We disabled this module automatically'); } } } } So! Deleting the module from FTP fixed the problem. Actually renaming directory is fine too (__blocktopdropdownmenu) I found the module, and you're right. Thanks. A fun fact: They first disable the "ps_mainmenu" module, and then check is the "blocktopdropdownmenu" module enabled. Just why? if (Module::disableByName('ps_mainmenu')){ if (Module::isEnabled('blocktopdropdownmenu')) { $this->context->controller->success[] = $this->l('We disabled this module automatically'); } } 1 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