• The following shows up on the menu editing page:

    You are approaching the post variable limit imposed by your server configuration. Exceeding this limit may automatically delete menu items when you save. Please increase your max_input_vars directive in php.ini. More information
    max_input_vars :: 1000

    Menu Item Post variable count on last save :: 859
    Approximate remaining menu items :: 9

    Loaded configuration file: /web/conf/php5.ini

    I have followed the instructions here.

    Here is a picture.

    I changed the php.ini in the web root. But if you look at the yellow box with the text it mentions something called php5.ini which even GoDaddy couldn’t help me find.

    I don’t completely know what I am dealing with here and a lot of the help I have seen online has been a little confusing. I tried the thing I read to do and it didn’t work. I read somewhere on here to add this same type of jargon to the htaccess file or something, but all that did is shut down my site.

    This is urgent. I need to add new menu items. All I need is to figure out how to increase this max vars thing.

Viewing 15 replies - 1 through 15 (of 22 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    How many menu items do you have?

    Thread Starter lokeanflamingo

    (@cuddlebat)

    you can see them at https://www.cenegenics-az.com

    it’s over 50, I counted. But I need to add more.

    On most hosts, you need the file to be called php.ini, and the one big problem that I’ve had with this issue in the past is that on a lot of hosts the new php.ini file needs to be in the /wp-admin/ folder, not in the web root folder. You can copy it to the /wp-admin/ folder and that should help you.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    I tried that, but I won’t know if it worked just yet. My employer has asked me to remove a link, not because of this, but for other reasons. In doing so, I made the error go away. I assume, however, I will see it again as soon as I add a new page. So I tried your patch and I plan to add pages to see what happens. In the mean time I created a word doc to back up my menu. It’s not code, just an outline for me to read and copy.

    I don’t know how to back up a menu and reinstall it, so if it flops, I just plan to recreate it from my word document.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    okay so since I first posted this, I have removed a link, the problem went away, followed @catacaustic member’s advice and then added two links. adding the two links brought back the issue. so what do i do now?

    Thread Starter lokeanflamingo

    (@cuddlebat)

    oh and i have since updated to “benny”

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    That’s not an error, it’s a warning. WordPress can only operate within the limitations set for it by PHP. Editing menus uses a lot of variables, and PHP has an upper limit. So when you start making lots of menus, you will eventually hit that limit and be unable to make any more.

    You need to increase the number of input variables, or live with the message.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    It says that it will possibly automatically delete items; I cannot live with that risk; I need to know how to increase the input variables; I have not successfully found a way to do so; that is the reason I am asking for help.

    If my method doesn’t help you will need to contact your hosting company as they sometimes set restrictions on what can and can’t be done, and they are the only ones that would be able to help you with changing those settings.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    are there any other suggestions?

    Go back to your hosting company and show them this thread, and tell them that they need to allow you to change values in your site using php.ini files.

    Unless that can change, there’s nothing else that you can do. Otto told you the choices before… increase the number of input variables, or live with the message. Unfortunately that still stands.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    okay but with what otto said, am i likely to see all my menu items deleted?

    Moderator James Huff

    (@macmanx)

    No, you’ll be able to add more menu items without encountering an error.

    However, you should be keeping a regular backup anyway: https://codex.www.ads-software.com/WordPress_Backups ??

    You’ll only see extra ones deleted. It will save the first ~80 or so until you reach the limit, then it will drop anything after that.

    Thread Starter lokeanflamingo

    (@cuddlebat)

    i have the wordpress backup to dropbox, is that sufficient?

    thank all ya’ll for your help; i will be ironically removing many of the items, but i still will be checking with godaddy about fixing this.

    and i will look into the backups you mention

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Menu item limit warning’ is closed to new replies.