• Hi There,

    Couldn’t find any accurate solutions to our problem in the forum so are posting this query:

    Over the last 2 days something has gone wrong with the custom menu via ‘Appearance’ > ‘Menus’.

    We noticed several menu items missing but when the missing items are re-added and saved they are not visible when the page refreshes.

    Also when the ‘theme location’ tab is selected this is also unchecked when the page refreshes.

    Two custom menus are running on the website in question and strangely this issue is only affecting one of them!

    So basically we are unable to amend our menu or select a theme location for the menu.

    We have done the usual:
    1) deactivate / reactivate all plugins
    2) re-install the lastest version of WordPress
    3) re-install the premium theme in use
    4) re-installed a complete backup
    5) cleaned browser and history etc, etc

    We are at a loss what to do to restore this menu?

    Many thanks
    Tippa

Viewing 9 replies - 1 through 9 (of 9 total)
  • How many items do you have in your menu?

    On most servers there’s a limit on how many POST variables can be sent in one request, and (there’s debates about this being good or bad…) WordPress sends back a whole lot of POST fields for each menu item. From what I’ve personally seen and read most servers will handle between 75 and 90 items before they start dropping the last ones off.

    If that’s what’s happening on your site, you can hopefully get around this be adding a php.ini file in the /wp-admin/ folder with this content:

    <IfModule mod_php.c>
    
    php_value suhosin.simulation 1
    
    php_value suhosin.memory_limit 128M
    php_value suhosin.post.max_vars 5000
    php_value suhosin.request.max_vars 5000
    
    </IfModule>
    
    max_input_vars = 5000

    It’s a good idea ot set up a new file/page as well with phpinfo() on it so you can check if the settings have taken effect. If they have, try again. If not, talk to your hosting company as a lot of places block custom php.ini files.

    Thread Starter First Stop Design

    (@fswd)

    There are 45 to 50 items in the menu in question and this has been the case for several years. So why this would occur now is unclear.

    We won’t try the fix you mentioned just yet until your next response.
    We would probably have to get some one to perform any such fixes as we have limited knowledge in tinkering with php files.

    Thanks

    I’l guarantee that what I’m describing is your problem. I’ve seen it many times on sites that I manage with exactly the same symptoms.

    Why has it started happeningnow? I can’t tell you that, but I can givea few possibilities. First, you probably hit the limit of your server settings where you hadn’t before. Second, the server may have had some updates that changed the limits, Third, your hosting company may have set the limits lower and not informed you. There’s more but those are the most likely.

    What I’ve proposed is quite easy to do. Just create a new file called php.ini, add what I had above to it and save it, then upload it to the /wp-admin/ directory in your web hosting.

    Thread Starter First Stop Design

    (@fswd)

    When you say ‘create a new file’ are you referring to a Notepad format or something else?

    Yes, you can do it in NotePad, or any other text-based editor of your choice. Just nothing like Word or WordPad as those aren’t plain-text editors.

    Thread Starter First Stop Design

    (@fswd)

    Okay, going to try that now.

    Thread Starter First Stop Design

    (@fswd)

    Still have the problem!
    Going to give this 24 hours to propagate and will try again tomorrow.
    Will let you know how we get on.

    If you have the file in the right folder /wp-admin/ then it should be instant – unless like I said before your hosting company doesn’t allow custom php.ini files, and in that case you need to talk to them about it.

    Thread Starter First Stop Design

    (@fswd)

    Yes, the file is in the right folder but still no change.
    We will contact our host and see if we can resolve this.
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Custom menu / navigation error’ is closed to new replies.