Support » Fixing WordPress » Wp 4.1.1, Suhosin, Adding Menu Items Fails

  • Resolved bernbe01



    I have been running a bunch of wordpress installs on a lamp stack for a bit.

    PHP 5.3.29 (cli) (built: Aug 20 2014 16:41:34)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
    with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
    with Suhosin v0.9.37-dev, Copyright (c) 2007-2014, by SektionEins GmbH

    The issue:
    After the update to 4.1.1 (and possibly during 4.1, I did not try to add new menu items at that time) I am unable to add menu items via the menu editor

    I have changed the global php.ini to include the normal max_var overrides for both suhosin and php:
    suhosin.request.max_vars = 9000 = 9000
    max_input_vars = 9000

    The recommended values were 3000, but in case I opened them up wider. This made no change. I was sure to restart apache after my config changes.

    I know it’s a suhosin problem, because when I disable suhosin, the menu saves perfectly.

    Does anyone out there have some suggestions for new suhosin overrides to try?

    Is there a thread I’ve missed? Or somewhere to find suggested, compatible settings for Suhosin?

    When WP debug is enabled, the error I get is:

    Uncaught Error: Syntax error, unrecognized expression: Notice: Undefined index: menu-item in {path}wp-admin/includes/ajax-actions.php on line 1075


Viewing 6 replies - 1 through 6 (of 6 total)
  • Found the fix

    According to the Suhosin FAQs, suhosin v 0.9.37 is the recommended release for 5.3.x

    BUT according to the suhosin changelog, is also compatible and contains a wordpress compatibility fix

    I recompiled suhosin, installed it, restarted apache and (with my previous overrides) WP 4.1.1 menus are correctly saving with Suhosin running

    also, I was able to reduce my max_vars to 3000 per documentation after applying this suhosin upgrade

    suhosin.request.max_vars = 3000 = 3000
    max_input_vars = 3000

    Does anyone know how to fix this if you’ve got your site hosted on a webhost? I tried support session with my company, Powweb, but had no luck with the indian dude on the other end of the chat window. He couldn’t even figure out how to add a menu item. Meh. I’ve never even heard of Suhosin before and I don’t see anything remotely named that in my admin panel. Is this something us mere mortals are going to have to wait for a point release from wordpress?



    Forum Moderator


    How to Fix the Custom Menu Items Limit in WordPress

    It’s a server issue (not WP).

    Interesting, what to do if you’re just get hosting?



    Forum Moderator

    This only applies if you have more than about 80 menu items. Is that your situation? Have you asked the host for help?

    If you need further assistance, please start a new thread – this one is resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wp 4.1.1, Suhosin, Adding Menu Items Fails’ is closed to new replies.