Title: Jquery Error After Saving
Last modified: August 21, 2016

---

# Jquery Error After Saving

 *  Resolved [infoaltea](https://wordpress.org/support/users/infoaltea/)
 * (@infoaltea)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/)
 * Hi,
 *  I can install the plugin ok, and see the Menu Edit page, I can play around, 
   but after saving I get a page with no css loaded and nothing saves if I relaod
   the admin panel.
 *  Firebug says: ReferenceError: jQuery is not defined
    [Stop on this error]
 *  Here is the code:
 *  (function($){
    $(‘#screen-meta-links’).append( ‘<div id=”ws-pro-version-notice”
   >’ + ‘[Upgrade to Pro](http://adminmenueditor.com/?utm_source=Admin%2BMenu%2BEditor%2Bfree&utm_medium=text_link&utm_content=top_upgrade_link&utm_campaign=Plugins)‘
   + ‘</div>’ ); })(jQuery); == ERROR!
 *  Any help!!¿¿
 * [http://wordpress.org/extend/plugins/admin-menu-editor/](http://wordpress.org/extend/plugins/admin-menu-editor/)

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

 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/#post-3824681)
 * It sounds like the menu data might be getting stripped out by something. What
   URL do you see in the address bar after you click “Save Changes”?
 *  Thread Starter [infoaltea](https://wordpress.org/support/users/infoaltea/)
 * (@infoaltea)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/#post-3824690)
 * Hi,
 *  [http://www.mydomain.com/subfolder/wp-admin/options-general.php?page=menu_editor&noheader=1](http://www.mydomain.com/subfolder/wp-admin/options-general.php?page=menu_editor&noheader=1)
 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/#post-3824710)
 * Yes, it appears that something strips the menu data before the plugin can save
   it. There are several things that could cause this:
 * – A security system like mod_security2 or similar is running on your server and
   blocking menu data because it contains “suspicious” keywords. Other users have
   encountered similar problems where it turned out that mod_security was preventing
   them from saving the menu because menu settings contained words like “update”
   and “set” (as part of “Settings”).
 * _Solution:_ Ask your hosting provider if mod_security2 or something similar is
   installed on the server. If so, tell them to add an exception for this plugin,
   or to disable the offending configuration rule.
 * – The server discards menu data because it exceeds the [post_max_size](http://www.php.net/manual/en/ini.core.php#ini.post-max-size)
   limit set in PHP.ini.
 * _Solution:_ Set post_max_size to a higher value (at least 1MB).
 * – [Suhosin](http://www.hardened-php.net/suhosin/index.html) is installed on your
   server and strips out the menu data because it exceeds the configured maximum
   size of values sent via a POST request.
 * _Solution:_ Increase `suhosin.post.max_value_length` and `suhosin.request.max_value_length`
   to at least 300000. If you don’t know how to edit Suhosin’s configuration, ask
   your hosting provider to do it for you.
 *  Thread Starter [infoaltea](https://wordpress.org/support/users/infoaltea/)
 * (@infoaltea)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/#post-3824749)
 * suhosin.post.max_value_length issue…!!
 *  Thx for guiding me in the right direction,…. Didnt think about checking the 
   apache error log 😉

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

The topic ‘Jquery Error After Saving’ is closed to new replies.

 * ![](https://ps.w.org/admin-menu-editor/assets/icon-128x128.png?rev=1418604)
 * [Admin Menu Editor](https://wordpress.org/plugins/admin-menu-editor/)
 * [Support Threads](https://wordpress.org/support/plugin/admin-menu-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-menu-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-menu-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-menu-editor/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 4 replies
 * 2 participants
 * Last reply from: [infoaltea](https://wordpress.org/support/users/infoaltea/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/jquery-error-after-saving/#post-3824749)
 * Status: resolved