I’ve noticed some strange behaviour recently where after adding a menu item and saving it, my Main Menu Locations are lost, and I have to select them again. I am using Polylang, and I have added a Secondary menu above the standard Vantage menu, so in total I have 4 menu locations (Main, Secondary, English, French), my menu.php additions are done within a child theme, I am also using Max Mega Menu. This behaviour is recent, I’ve tried disabling any recent plugins I’ve added, and nothing is fixing it. The interesting this that it is NOT affecting my Secondary menu that I added within the child theme.
Has anyone had a similar issue?
Hi Tom
Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:
[email protected]
Just navigate to UsersAdd New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the Send Password field so we receive the details.
Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.
This is a private message.
This is a private message.
This is a private message.
This is a private message.
Thanks. Please, could you activate our account.
This is a private message.
This is a private message.
This is a private message.
Thanks. We added an item to About Profession called Home and the Menu Locations seem to still be saved. Any tips to recreate the problem?
I was able to recreate it simply by re-saving the Main Menu before, but I just did it now and it didn’t lose the menu locations. Could my security plugins have anything to do with it, since I turned them off for this?
Woah, that was the problem, I just turned them back on and it did it again. I’ll deactivate one of them.
That’s very possible. A plugin conflict test would have been our next suggestion. It could even be a specific setting within the security plugin. You could test this by reenabling the plugin and testing the menu again.
Could you delete our test item Home? Thanks.
Yes, also, it wasn’t doing it when I saved any other menu, only my Main menu. The About menu you tested wasn’t the Main menu, so it wouldn’t have behaved the same.
False alarm, the behaviour is still there even with the security plugin settings de-activated. If you test again, all you have to do is “save menu” with the Main Primary menu.
This is a private message.
Would you say this menu has over 40 items? Do any of the other menu items? It’s very possible this is the cause. WordPress, unfortunately, doesn’t handle large menus like this well.
Yes, there are over 80 items in the Mega Menu, it’s a big site. Could that be it then?
Most likely, yes. You could confirm by switching to a default theme like Twenty Fifteen and deactivating all plugins and retrying.
My issue was solved by doing what was recommended in this post on the Max Mega Menu site, I increased my max_input_vars to 5000. No longer having the issue.
https://www.maxmegamenu.com/documentation/faqs/menu-item-limit/
Fantastic. Thanks for sharing. Really glad to hear you were able to resolve.