• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • Projects
  • Products
  • Themes
  • Tools
  • Request for Quote

Vengala Vinay

Having 12+ Years of Experience in Software Development

  • Home
  • WordPress
  • PHP
    • Codeigniter
  • Django
  • Magento
  • Selenium
  • Server
Home » Fix Menu Exceed Problem In WordPress

Fix Menu Exceed Problem In WordPress

How to solve menu exceed problem in WordPress, if you are trying to add more than 100 menu items then it will be a problem because with default php configuration you can’t add more than 90 menu items. If you have long menu then you should update “max_input_vars” in php configuration file. You can fix this issue in different method below you can find clear explanation about WordPress menu limit problem.

 

By default the php variables are limit to 1000. Here you need to customized the “max_input_vars” in php configuration based on your menu requirement. If menu exceeds more than 1000(size), then items more than 90 will be removed automatically after saving the menu in WordPress.

 

Steps to fix WordPress menu limit problem

Before proceeding further, this is simple calculation to find out maximum number menu items you can add in WordPress menu’s.

max_input_vars >= 11 * “Number of menu items” +9
The default value of max_input_vars is 1000.

so 1000 = 11 *(x)+9

1000 = (11*x)+9 (as per DMAS Rule)
1000-9=11x
991=11x
x=991/11
x=90.0909090
x=90(it takes floor)

If you want to use 180 menu items in WordPress menu’s, then set “max_input_vars” to 2000. Now you got the calculation.

May you got the question that is where and how could I made the changes? The answer is based on versions,hosting types.

 

1. Steps to fix in local web server

If you are using WAMP/XAMP/LAMP/MAMP in your local machine, then you can follow this procedure to fix the issue.

  1. Go to php directory in WAMP/XAMP/LAMP/MAMP, and find php configuration file it will be named as “php.ini” file.
  2. Check weather the following code exist or not
    ;max_input_vars = 1000" it will available since PHP 5.3.9.

    3.Update the value based on above calculations (How many number of menu items required for you in WordPress menus)

Note:  In local web server, By default the peace of code is ;max_input_vars = 1000 will have a semicolon in front of it remove the “;” in front of “max_input_vars = 1000” and update the value.
Semicolon is a comment in php configuration(php.ini) file.

 

2. In Godaddy web hosting

If you are using godaddy web hosting, then you can follow these steps to increase “max_input_vars” in php configuration.

For Hosted server there is no php.ini file for individually. So create .user.ini file at root directory.

  1. Navigate to public_html (www) directory in your webhosting cpanle or using ftp like filezilla.
    • How to upload files to WebServer using FTP or FileZilla
    • How to Save website ftp login credentials in filezilla
    • How to create ftp account from web server hosting cpanel
  2. Make a new file with file name .user.ini dont make mistake like user.ini,make as same as follow(.user.ini)
  3. step3. write a peace of code into that file and save at root directory(www or public_html ).
    max_input_vars = required menu items size (2000 or 3000).

    If the above methods didn’t work for you, then you can try this code using htaccess file.

 

3. Using htaccess file

From the PHP Version PHP 5.3.9 starts “max_input_vars”(Which is same as Suhosin’s post.max_vars).

Suhosin is an advanced protection system for PHP installations.It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core.

To know the version of PHP is

<?php
echo ‘Current PHP version: ‘ . phpversion();
?>

It will be solved by increasin the size of “max_input_vars” in htaccess file

  1. Navigate to public_html (www) directory in your webhosting account cpanl.
  2. Create a new file with file name .htaccess, edit it if you have this file
  3. Write a peace of code into that file and save at root directory(www).
    php_value max_input_vars 5000
    php_value suhosin.get.max_vars 5000
    php_value suhosin.post.max_vars 5000
    php_value suhosin.request.max_vars 5000
  4. It will works fine in any case if it’s not working update the code as below
    max_input_vars 5000
    suhosin.get.max_vars 5000
    suhosin.post.max_vars 5000
    suhosin.request.max_vars 5000

     

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

A little about the Author

Having 12+ Years of Experience in Software Development, Vinay is a principal software architect, senior systems engineer, and elite technical consultant. He specializes in bespoke PHP/WordPress development, high-performance Magento 2 & Shopify architectures, custom plugin/theme development from scratch, and legacy code modernization (including VB6, VB.NET, PyQt, and Crystal Reports). Known for solving complex database bottlenecks, speed optimization (Core Web Vitals), and advanced security code auditing, Vinay engineers production-ready systems designed to scale under heavy concurrent load conditions.



Chat on WhatsApp

Recent Posts

  • Leveraging PHP 8.3’s JIT and Typed Properties for Extreme Laravel Performance: A Deep Dive into Micro-Optimizations and Benchmarking
  • Leveraging PHP 9’s JIT Compiler and Vectorization for Extreme Performance in Laravel Microservices
  • Leveraging PHP 8.3 JIT and Vectorization for Extreme Performance Gains in High-Throughput Laravel Applications
  • Orchestrating Microservices with Kubernetes: A Deep Dive into PHP 8/9, Laravel, and AWS ECS Integration
  • Leveraging PHP 9’s JIT Compiler and Runtime Improvements for High-Performance Laravel Microservices

Categories

  • apache (1)
  • AWS (1)
  • Business & Monetization (390)
  • Centos (4)
  • Comparisons & Decision Making (55)
  • Debian (2)
  • Debugging & Troubleshooting (664)
  • Desktop Applications (14)
  • DevOps (16)
  • DevOps & Cloud Scaling (962)
  • Django (1)
  • Laravel (11)
  • Migration & Architecture (192)
  • Mobile Applications (24)
  • MySQL (1)
  • Performance & Optimization (873)
  • Performance & Security Optimization (3)
  • PHP (44)
  • PHP Development (49)
  • Plugins & Themes (244)
  • Programming Languages (10)
  • Python (20)
  • Ruby on Rails (1)
  • Security & Compliance (650)
  • SEO & Growth (492)
  • Server (118)
  • Softwares (1)
  • Ubuntu (9)
  • Uncategorized (73)
  • VB6 & VB.NET (8)
  • Web Applications & Frontend (19)
  • Web Assembly (Wasm) (2)
  • WordPress (36)
  • WordPress Plugin Development (728)
  • WordPress Theme Development (357)

Recent Posts

  • Leveraging PHP 8.3's JIT and Typed Properties for Extreme Laravel Performance: A Deep Dive into Micro-Optimizations and Benchmarking
  • Leveraging PHP 9's JIT Compiler and Vectorization for Extreme Performance in Laravel Microservices
  • Leveraging PHP 8.3 JIT and Vectorization for Extreme Performance Gains in High-Throughput Laravel Applications

Top Categories

  • DevOps & Cloud Scaling (962)
  • Performance & Optimization (873)
  • WordPress Plugin Development (728)
  • Debugging & Troubleshooting (664)
  • Security & Compliance (650)
  • SEO & Growth (492)

Our Products

  • ERP & LMS Systems (4)
  • Directories & Marketplaces (4)
  • Healthcare Portals (3)
  • Point of Sale (POS) (2)
  • E-Commerce Engines (2)

Our Services

  • E-Commerce Development (10)
  • WordPress Development (8)
  • Python & Desktop GUI (7)
  • General Consulting (7)
  • Legacy Modernization (5)
  • Mobile App Development (4)

Copyright © 2026 · Vinay Vengala