Visit Eventchamp WordPress theme to create a new events & conference website. Eventchamp WordPress Events Theme
View Categories

Menu Item Limit Warning

1 min read

The Menu Item Limit warning in WordPress is not a real error but a limitation caused by your server’s PHP settings. This limit is usually set at 1000 inputs (approximately 100 menu items). If you try to add more menu items, changes won’t be saved. This issue is common, especially on shared hosting.

Solutions:

To fix this issue, you need to increase the PHP input limits. Here are three primary methods:

Method 1: Edit the PHP.ini File

  1. Locate the PHP.ini File:
    • Log in to your cPanel and go to File Manager.
    • Navigate to the public_html/wp-admin directory. If the PHP.ini file is missing, create a new one.
  2. Edit the PHP.ini File:
    Add or update the following lines in the file:
suhosin.post.max_vars = 5000 
suhosin.request.max_vars = 5000 
  1. Save the Changes:
    Click “Save Changes” to apply the updates.

Method 2: Adjust Settings via cPanel

  1. Access PHP Settings:
    • Log in to cPanel and select Select PHP Version.
    • Switch to the Options tab.
  2. Increase max_input_vars:
    • Locate the max_input_vars option.
    • Increase its value (e.g., set it to 5000).

Method 3: Edit the .htaccess File

  1. Find the .htaccess File:
    • In cPanel’s File Manager, navigate to the public_html directory.
    • Locate the .htaccess file or create a new one if it doesn’t exist.
  2. Add Code to .htaccess:
    Insert the following line into the file:
php_value max_input_vars 5000 
  1. Save the Changes:
    Save the file and check if the issue is resolved.

For other limitation problems check this article