Title: Error when creating new menu
Last modified: July 1, 2021

---

# Error when creating new menu

 *  Resolved [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/)
 * Hi,
 * I’ve noticed that Nav Menu Collapse prevents to create new menus on my site: 
   an error is thrown in frontend every time i try to, no details in the notification.
   
   Disabling the plugin solves the problem.
 * It might be related to a plugins conflicts on my install, i didn’t dig more further
   nor checked the server’s log, will do if i have the time.

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

 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14620257)
 * [@studioavanti](https://wordpress.org/support/users/studioavanti/),
 * Could you please provide a list of the active plugins? I will do some testing
   and see if I can pinpoint the issue on my side as well.
 * Thank you,
    Robert
 *  Thread Starter [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14620415)
 * Hi [@rnoakes3rd](https://wordpress.org/support/users/rnoakes3rd/),
 * Thanks for your answer.
 * It doesn’t seem to be a plugins conflict, i disabled all but Nav Menu Collapse
   and still get the red error notification in Admin > Appearance > Menus when creating
   a new menu
 * Maybe it’s rather related to the server config: PHP 7.4 / nginx / fastCGI
    Or
   some custom PHP in this site, i have to investigate.
 * Moreover, it’s the first time i get this error when using your plugin which usually
   runs fine. So, probably an issue specificly related to this site.
 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14620434)
 * Thank you again, [@studioavanti](https://wordpress.org/support/users/studioavanti/).
   Please keep me posted during your digging.
 *  Thread Starter [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14620522)
 * [@rnoakes3rd](https://wordpress.org/support/users/rnoakes3rd/) A new clue: the
   error doesn’t occur with the “Store Collapsed States” option disabled.
 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14620595)
 * [@studioavanti](https://wordpress.org/support/users/studioavanti/),
 * While enabled, the plugin taps into the window.wpNavMenu.eventOnClickMenuSave
   function and makes an AJAX call to save the stored states before saving the menu.
   I just tested this functionality on a few sites with no issues. Is there anything
   in the error log that could shed some light on this? Perhaps AJAX is failing 
   somehow?
 * Thank you for digging,
    Robert
 *  Thread Starter [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14623332)
 * Hi [@rnoakes3rd](https://wordpress.org/support/users/rnoakes3rd/),
 * You’re right, it looks like an Ajax error, but hard to tell.
 * The browser console return a 400 error with this file:
    [https://site.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted](https://site.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted)
 *     ```
       POST https://site.com/wp-admin/admin-ajax.php 400
       send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:3918
   
       ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:3680
       s.ajax.s.ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:4363
       S.<computed> @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:3795
       eventOnClickMenuSave @ script-36f434cb33.js?ver=2.1.0:2
       (anonymous) @ nav-menu.min.js?ver=5.7.2:2
       dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:2030
       v.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.2:formatted:1962
       ```
   
 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14624844)
 * [@studioavanti](https://wordpress.org/support/users/studioavanti/),
 * Being a 400 error, there could be something in the PHP error log. Do you have
   access to that? If not, is there any way you could turn on site debugging (WP_DEBUG)
   so I could get more accurate line numbers for the errors in the console?
 * Thank you,
    Robert
 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14686950)
 * [@studioavanti](https://wordpress.org/support/users/studioavanti/),
 * I just released a new version of the plugin that contains some changes to the
   assets. This may or may not resolve your issue. If it does not, would you mind
   sending a copy of the theme my way so I can do some testing on my side?
 * If I don’t hear from you within a week, I’m going to close this ticket out.
 * Thank you,
    Robert
 *  Thread Starter [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14686970)
 * Hi [@rnoakes3rd](https://wordpress.org/support/users/rnoakes3rd/),
 * Thanks for the update, sorry i didn’t had the time to troubleshoot my issue any
   further, moreover, it’s beyond my scope.
 * Ok, i’ll test with the new version of the plugin and report.
 *  Thread Starter [studioavanti](https://wordpress.org/support/users/studioavanti/)
 * (@studioavanti)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14688674)
 * Hi,
 * Just tested Nav Menus Collapse latest version 2.1.1, it doesn’t fix my issue 
   unfortunately.
 * When the “Store Collapsed States” option is enabled in the plugin’s General Settings,
   i can’t create a new menu, an error message is displayed in a red box at right
   bottom of the screen.
 * The issue disappears once the option above is disabled.
 * Probably an Ajax conflict as mentioned previously, outside of my scope, not a
   blocking problem either, i don’t create menus every 5 minutes. 😉
 *  Plugin Author [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * (@rnoakes3rd)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14689924)
 * Thank you, [@studioavanti](https://wordpress.org/support/users/studioavanti/)!
   I’m going to close out this ticket for now. If anyone else has a similar issues,
   please let me know.

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

The topic ‘Error when creating new menu’ is closed to new replies.

 * ![](https://ps.w.org/nav-menu-collapse/assets/icon-256x256.png?rev=2409379)
 * [Nav Menu Collapse](https://wordpress.org/plugins/nav-menu-collapse/)
 * [Support Threads](https://wordpress.org/support/plugin/nav-menu-collapse/)
 * [Active Topics](https://wordpress.org/support/plugin/nav-menu-collapse/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nav-menu-collapse/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nav-menu-collapse/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Robert Noakes](https://wordpress.org/support/users/rnoakes3rd/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/error-when-creating-new-menu/#post-14689924)
 * Status: resolved