How to Fix the Custom Menu Items Limit in WordPress

Just some days in the past, one in every of our customers reported an uncommon downside. The issue was that he was reaching the customized menu items limit. Something he saves after he reached the menu items limit wouldn’t save in any respect. We had by no means heard of this downside, so we determined to provide it a strive on our native set up. Created 200+ menu items and saved it. It labored simply nice. Moved 100 objects right into a dropdown and that saved completely nice. At that time, we knew that this had one thing to do with the server. Upon additional analysis, it appeared that many others have been having the identical challenge. Digging a bit of deeper, we discovered a trac ticket (#14134) that highlighted this downside. After studying the very very lengthy trac ticket, plainly the issue has not been mounted but, however there’s a work round repair for individuals who are having this challenge. On this article, we’ll present you tips on how to repair the customized menu items limit in WordPress.

To repair the problem, you might want to edit your PHP.ini file. In case you are on a devoted server or on a VPS with root entry, then it’s best to already know what we’re speaking about. In case you are on a shared internet hosting or don’t know the place PHP.ini file is, then ask your hosting supplier to do that for you.

You’ll want to ask them to set the next values within the PHP.ini configuration:

1
2
suhosin.post.max_vars = 5000
suhosin.request.max_vars = 5000

One other consumer “ronnieg” posted a piece round that he has for his giant (450+ pages and rising) actual property web site and menu. You possibly can learn his response to comply with alongside. (Word: we haven’t tried this one)

You May Also Like : How We Increased Our Organic Search Traffic By Using HitTail

Clarification of the Drawback

This downside just isn’t solely WordPress primarily based as totally different of us are seeing totally different limits (some say 16 others say 50 and as you already know we went as excessive as 200 with out seeing any limits). In principle, WordPress just isn’t limiting the variety of menus you possibly can have. Your hosting server is. There are Suhosin limitations on the POST max variables which is limiting the big variety of entries being saved. Nacin replied within the trac ticket to say that that is NOT a bug moderately it’s an enhancement. The core workforce has to discover a method to work across the server limitations and determine a greater method to save the menu objects, so no matter your server configuration you don’t see any customized menu limits. It’s simpler mentioned than performed

WordPress is an open-source (voluntary) challenge, and the core workforce does the whole lot they’ll to enhance it day by day. This will probably be mounted, however the timeline isn’t outlined but because it says “Future Releases”.

In case you have tried one thing totally different that mounted this challenge for you, then please tell us within the feedback. It will permit others to repair their challenge till the core workforce finds a piece round.

1 thought on “How to Fix the Custom Menu Items Limit in WordPress”

  1. Pingback: How to Find a Backdoor in a Hacked WordPress Site and Fix It

Leave a Comment

Your email address will not be published. Required fields are marked *