Hi servatordesign,
What is the exact link to the plugin you’re using? There are a few different ones, I can’t see any named exactly “Menu Images”.
Regards,
Tom
Hi servatordesign,
Thanks. I see a bug that exists even when using Max Mega Menu 3.8.1. The way Menu Image is coded means that the order you activate the plugins makes a difference.
In the situation where both are deactivated:
If you activate Menu Image then activate Max Mega Menu, it works
If you activate Max Mega Menu then activate Menu Image, it breaks
So the “fix” is to deactivate and activate Max Mega Menu. A true fix would need to come from Menu Image, but it looks abandoned, so using a different plugin might be a good idea longer term. This plugin supports image icons, and also works with MMM, and custom icons are also a native feature in the Pro addon.
Regards,
Tom
Interesting. In this case I have been using both plugins for about two years. It was only after I updated the max mega menu that the images disappeared. Neither had been deactivated. I will try updating the MMM and then try the sequence.
I updated the MMM plugin, deactivated both, and then I activated in the order you suggested but it didn’t work. I also tried deactivating and reactivating MMM with no success. There is something in your plugin that is at least partially causing the issue because I still have to go back to 3.8.1 in order for the images to show.
Hi ,
The nature of the bug means it’s unpredictable, and for me even with v3.8.1 it is not reliable whether it works or not – it depends on the order I activate the plugins in (I realise this may not be the same for you) but I think I have found a reliable fix that would work for both of us. I posted it here. In summary, it just means loading the menu image plugin the “correct” way.
Interestingly, I also found another user using Max Mega Menu who had the same issue over a year ago: https://ww.wp.xz.cn/support/topic/menu-image-stopped-working/#post-18159464
The fix is quite simple, it does require editing the menu-image/menu-image.php file though (I think that is safe as it appears the plugin is no longer maintained/updated by the author, if they ever do a new update hopefully they include the fix I suggested anyway).
On the last line of menu-image.php, find:
$menu_image->init_menu_image();
Replace with:
add_action( 'plugins_loaded', array( $menu_image, 'init_menu_image' ) );
Please let me know if that works?