• Resolved Marteens

    (@marteens)


    Hi.

    I just panicked a bit, and then I thought I had a solution, but now I am starting to panic again. :O

    Ok, here is my problem. I had a good menu with no problems. Then I wanted to ad some pages for the first time in months. Doing that, when I press save menu, something goes wrong. That deletes all pages in the menu that are after a certain number, and it also remove the menu from being the primary menu. As you can see from the other post I made, I found out that I could reset the menu as primary menu, but then I still am missing a lot of pages.

    So I tried adding a page at the end of the menu, and then I pressed save menu. Just as before, the menu deletes all the pages after a certain number of pages, so the page I just had added was now removed again. And also I had to reset the menu to be primary again.

    This is my page. As you can see the las half (the right side) of the menu is missing.

    Why is this happening?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Marteens

    (@marteens)

    I counted, and I can only have 89 pages in my menu. If I add a page number 90, it disappears when I press save menu. If I add a page called A as page number 90, and then switch place with another page called B (so the page B now is number 90), then it’s the page B that disappears when I press save menu. So all pages after page 89 gets deleted from the menu when I press save menu. That’s a bit frustrating.

    Just to underline it, this is a new thing for me. I used to have like 140 pages in my menu. But when I tried adding some new pages two days ago, a big part og the menu just disappeared. I mean all the 50 or so pages that was after page number 89 just wasn’t in the menu anymore.

    It’s a wordpress 3.9.1 bug. I’ve got the exact same problem. The similarity with your situation and mine is that I just updated WP, and now it fails. Request a bug-fix <del>or revert to a previous version</del>.

    @esmi is right. I’ll look more deeply into it. I did deactivate all plugins, and reactivate all, but not individually.

    or revert to a previous version

    @codesmith32: That is very, very, bad advice! Such a site would be running a very real risk of being hacked. This is not a core WordPress bug but a site specific issue. It is also considered impolite to interrupt another poster’s ongoing thread unless you are posting a solution or suggestion. As per the Forum Welcome, please post your own topic.

    @marteens: Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder and wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    After researching, I discovered the root of the issue.

    The PHP 5.3.9 update includes a new php.ini setting called max_input_vars. This new setting is a restriction on the number of data values that may be sent back to the server, and was added as an attempt to potentially avoid some dos attacks. However, due to the fact that saving a WordPress menu sends back a large number of values (multiple for each menu item, especially when using UberMenu), the values will be truncated to this limit. The default value for max_input_vars is 1000, and if the PHP server being used has not adjusted this value, the maximum number of menu items that may be added successfully (with the UberMenu) is something around 80. Any more will not only be cut off, but the set locations (under Manage Locations) may also be lost.

    Here’s a detailed report

    Bottom line is, if you don’t have access to the php.ini file (which you typically won’t), you’ll have to contact your host to get the value changed.

    Thread Starter Marteens

    (@marteens)

    Hi guys! Thanks you for answering.

    @codesmith32, I did as you said and it worked 🙂 I contacted my host, and they made a php.ini file that I can change myself. Then I put max_input_vars = 3000 in that file, and now I can have more pages 🙂

    So thanks again! 🙂

    Hi There,

    I have deleted all other menus in my website. I have 87 items in new menu. But still I am not able add more items. I checked the database. The older menus are not there. Still I am not able to add more items to the new menu.

    Please help me on this.

    Best regards,
    -Rams

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I can't add more pages to menu – menu delete pages’ is closed to new replies.