Everything else seems to work great with the exception that my Templatemonster MegaMenu disappeared and i don't even know where to start looking for answers. I've searched and read all similar posts which i could find but to no avail. I contacted TemplateMonster but they are useless as always.
I checked in store configuration it is set to enabled. In Dashboard>Catalog>Categories there is a Menu for MegaMenu but when i click on it it opens the menu for split second then closes it and becomes unclickable with a cross cursor.
Any help would be appreciated!
There could be multiple thing is happening. It might not be compatible with Magento 2.3.1. Do you see some error in your Magento, server log, or browser console.
Looking into those error would be a good starting point.
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
You are definitely onto something. I don't know how i forgot to look into logs, slipped my mind. There is an error in there referencing Megamenu:
[2019-04-09 12:24:23] main.CRITICAL: Warning: Declaration of TemplateMonster\Megamenu\Block\Html\Topmenu::_getHtml(Magento\Framework\Data\Tree\Node $menuTree, $childrenWrapClass, $limit, $colBrakes = Array) should be compatible with Magento\Theme\Block\Html\Topmenu::_getHtml(Magento\Framework\Data\Tree\Node $menuTree, $childrenWrapClass, $limit, array $colBrakes = Array) in /domain.com/app/code/TemplateMonster/Megamenu/Block/Html/Topmenu.php on line 12 [] []
Anyone know what that means?
Below are few URL having similar issue as your. You may be having something similar. If you are a developer then you would be able to figure that out otherwise ask your developer to look into it.
https://magento.stackexchange.com/questions/193384/magento-2-module-not-extending-topmenu-correctly
https://magento.stackexchange.com/questions/172326/magento2-1-override-the-navbar
https://github.com/magento/magento2/issues/12249
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
I have got the exactly the same thing, did you get it fixed?
I am having the same problem...I am using 2.3.3 but it seems like it's incompatible with alot of themes and plugins out there.
I had the same problem. Try to select "Please select a static block" in Categories Content section. It worked for me.
You need to edit ...Block/Html/Topmenu.php. Find the functions, protected function _getHtml and public function renderMenu, look for the line $colBrakes = [] and change it to
array $colBrakes = [].
That will do it. Don't forget to clear cache and content-deploy if you have to.