1. Home
  2. Help Center
  3. Common Issues and FAQ's
  4. Menu items or mega menu not saved

The problem

Some users have reported issues when saving menus. It’s possible that after saving some menus disappear or some extra options like mega menus are working for a few menus but not for all of them.

This is not an issue with the theme or WordPress. The limitation is imposed by the web server configuration.

There are two ways to fix the issue and to enable a larger number of items to be saved using PHP scripts.

Fix 1 – .htaccess

Edit the .htaccess file in the home directory of your WordPress installation. Add the following line:

php_value max_input_vars 5000

This should automatically remove the menu item limit. If the issue still exists, try changing 5000 to a higher number or try the second fix.

Fix 2 – PHP.ini

Edit the PHP.ini file. If your server is a dedicated server or a VPS, then you can easily access the file. But if you are on a shared hosting check with your hosting provider. Add the following lines:

 suhosin.post.max_vars = 5000
 suhosin.request.max_vars = 5000

or this line:

max_input_vars = 5000

Restart the server if necessary.

If the problem persists, contact the technical team of your web host.

Was this article helpful?

Related Articles