WordPress.org

Support

Support » How-To and Troubleshooting » menu item limit

menu item limit

  • stevengootgeld

    @stevengootgeld

    I’m running WordPress on my Windows 7 machine using WAMP. I cannot get more than 89 menu and submenu items, when I save the menu the items past that number disappear. I’ve searched everything on Google about this and tried almost everything by modifying the php.ini file to no avail.

    Does anyone know how to increase the menu limits?

Viewing 15 replies - 1 through 15 (of 20 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    I believe this is a known problem:

    http://core.trac.wordpress.org/ticket/14134

    stevengootgeld

    @stevengootgeld

    It may be a known problem, but there seems to be no fix! Anyone having this problem and know whether it is WAMP or WordPress?

    stevengootgeld

    @stevengootgeld

    All the information I’ve found online refers to the code in a php.ini file (not sure which one or where) that has to be modified to allow more variables. Everyone who has posted a success used an online host. I’m using WAMP on Windows 7 to host the site locally while I develop it.

    Does anyone know how/which file I can edit in WAMP so that the following “fix” can occur?

    suhosin.post.max_vars = 5000
    suhosin.request.max_vars = 5000

    Many thanks to anyone who can answer this!

    Marvel Labs

    @royalprince

    Create an .htaccess files in root directory of your wordpress installtion and paste this in your .htacces file, and you’ll hopefully be good to go:

    php_value suhosin.post.max_vars 7000
    php_value suhosin.request.max_vars 7000

    the value of 7000 might not be enough for you, so you can change it to anything you want.

    not working sir,

    Create an .htaccess files in root directory of your wordpress installtion and paste this in your .htacces file, and you’ll hopefully be good to go:

    php_value suhosin.post.max_vars 7000
    php_value suhosin.request.max_vars 7000

    the value of 7000 might not be enough for you, so you can change it to anything you want.

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Create your own thread on the issue, Grnator.

    i can’t add more items on my menu rightnow 86 are working but i need more…

    Hello Grnator,

    My server is not running suhosin so I was able to fix this issue by adding this to my php.ini file and restarting my server.

    max_input_vars = 5000

    Hope this helps.

    For anyone that comes across this and is looking for a solution, I’ve written up a detailed explanation of the problem here: WordPress Menu Item Limit

    Hope that helps! 🙂

    Here’s an interesting twist to this story. I used the max_input_vars = 5000 on my friend’s blog and magically I had all the menu items back that I had lost! Today I added a few more menu items and “Poof” there went half of the menu again. I looked in the php.ini file and the code was still present. I removed it, saved, logged out, waited a few hours, logged back in, replaced the code and nothing. I still have only half a menu….so is this a fix that only works once??? Does anyone have any thoughts?

    If anyone is still searching. I suppose this solution is for php 5.3 onwards.

    Open php.ini file and add this line

    max_input_vars = 9000

    Now you should be able to add more menu items.

    I have a solution for this problem… you set the follow line in “.htaccess” on the server where your site is on:

    php_value max_input_vars 5000

    it works for me!

    Adding the: php_value max_input_vars 5000 in .htaccess worked for me too.. Thanks for the help people!

    Hi Bustel,

    Sincere thanks I took ur advice and it worked = magic.
    Such a simple solution. 🙂

    This 5000 does anyone no what amount of extra entries it allows for, if it’s 5000 then I’ll b over the moon. 🙂

    Again t/u.

    You can get more than 90 menu items by adding another secondary menu to your site – http://codex.wordpress.org/Navigation_Menus

    Might be better anyway – huge menus are often hard for users to navigate.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘menu item limit’ is closed to new replies.
Skip to toolbar