WordPress.org

Forums

menu item limit (21 posts)

  1. stevengootgeld
    Member
    Posted 2 years ago #

    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?

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    I believe this is a known problem:

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

  3. stevengootgeld
    Member
    Posted 2 years ago #

    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?

  4. stevengootgeld
    Member
    Posted 2 years ago #

    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!

  5. Marvel Labs
    Member
    Posted 2 years ago #

    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.

  6. grnator
    Member
    Posted 2 years ago #

    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.

  7. Andrew
    Forum moderator
    Posted 2 years ago #

    Create your own thread on the issue, Grnator.

  8. grnator
    Member
    Posted 2 years ago #

    i can't add more items on my menu rightnow 86 are working but i need more...

  9. Mat Lipe
    Member
    Posted 2 years ago #

    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.

  10. sevenspark
    Member
    Posted 2 years ago #

    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! :)

  11. bdrozdowich
    Member
    Posted 2 years ago #

    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?

  12. sakib000
    Member
    Posted 1 year ago #

    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.

  13. bustel
    Member
    Posted 1 year ago #

    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!

  14. josemhg
    Member
    Posted 1 year ago #

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

  15. Sanman50
    Member
    Posted 1 year ago #

    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.

  16. sleeplessinDC
    Member
    Posted 1 year ago #

    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.

  17. Eugene.chint
    Member
    Posted 1 year ago #

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN wtwp_cache
    # END wtwp_cache

    # BEGIN wtwp_security
    # END wtwp_security

    this is my ht file but could not change menu items even after adding
    php_value max_input_vars 5000

  18. lakhan agarwal
    Member
    Posted 1 year ago #

    Thanks

    max_input_vars = 9000

    Work for me

    thanks a lot

  19. keith13
    Member
    Posted 1 year ago #

    Hi Bustel.

    After two years of menu contortions to get around a limit of 89 menu items, a solution!

    php_value max_input_vars 5000

    worked for me

    Thanks very much

  20. maryb66
    Member
    Posted 1 year ago #

    Hi

    Adding php_value max_input_vars 5000 to my .htaccess isn't working. This is my .htaccess, could someone tell me where to add it? If I add is after 'Rewrite Engine on' I get a server error.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    RewriteEngine on

    I tried adding

    <IfModule mod_php.c>
    php_value max_input_vars = 9000
    </IfModule>

    But it doesn't fix the max menu problem

    Thanks in advance
    m

  21. keith13
    Member
    Posted 1 year ago #

    You could try this:

    <IfModule mod_php5.c>

    php_value max_input_vars 5000

    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic