Have you encountered the custom menu limit error in WordPress? While this is actually not a real error, like other common WordPress errors, most treat it as one. This is actually just a message telling you that you have hit the limit and you cannot save anything past that limit. There’s nothing wrong with your website, so don’t worry too much.
Instead, this is actually an issue encountered because of the settings your web host uses. The settings you pick on your website will not matter if your web host has set others already. The solution is simple, find the PHP.ini file and change the limits. Today, I will demonstrate how to resolve the custom menu items limit error in WordPress.
What Causes the Custom Menu Items Limit Error
So what exactly causes this problem? The default menu item limit, for most web hosts, is around 1000 inputs which ends up being pretty close to 100 menu items. No matter how many menu items you add, you cannot go past the input limit that was set in the PHP.ini file. In fact, none of them will save and it will likely lead to a frustrating day.
While custom menu items are extremely common in WordPress, having very large custom menus, with over 100 items, is not. With that said, it still happens and businesses may have the need. For example, you could run a clothing business. There are hundreds of different designer names you can use as menu items and it may be necessary to do so.
It is also important to remember that you need to avoid busy pages. While it is very normal to want to lead your visitors to every article or product, that doesn’t work. Pages that have a lot of menu items tend to have too much information for visitors. While this is highly dependent on the nature of the website, large menus do not succeed often.
How to Resolve the Custom Menu Items Limit Error in WordPress
Today, I will demonstrate how to resolve the custom menu items limit error in WordPress. This issue is actually really easy to fix. You simply need to locate the PHP.ini file and change the input limits. However, if you are on a shared hosting server, you will probably need to contact your web host to make the necessary changes. If they are unhelpful, it’s probably time to switch web hosts.
Since you will be editing files on the backend of your website, it is recommended to create a backup of your website. This will ensure that if a mistake is made, you can revert to before it happened.
Locating the PHP.ini File
Locating the PHP.ini file is slightly different depending on your web host. It should be located in the wp-admin file, but if it is not you can create your own there. Since this file can dictate how much memory you have for your website, it is common for web hosts to not allow customers to change it. If this is the case, you will need to contact your web host to assist you.
Let’s start by logging into the cPanel and clicking on the File Manager option. The File Manager will allow you to access all of the files related to your website.
Click on the public_html directory, then click on the wp-admin folder. Search the folder for the PHP.ini file. If it is not there, create a new file called PHP.ini. Remember, spelling counts.
Once inside the file, you need to find the lines that control the number of input available. If you created your own file, simply copy and paste the following lines:
If the file was already in place, raise the number up in an increment of 1000. It will most likely be 1000 or 2000. Remember that your web host may have disabled this feature from clients. If nothing changes, you need to contact them to help resolve the issue.
Click on the “Save Changes” button when you are done.
Congratulations, this should resolve the custom menu items limit error if you have access to changing this code. The reason why a web host would not allow you to do this is that it can overstress their servers. You are paying to use the server and there are generally better plans available, so you may need to pay more to increase the limit.
Pick the Plan for You
Whenever you are dealing with memory issues on your website, looking at your web host plan should be the first thing step. Your web host will clearly outline what your memory allocations are and you need to make sure they are honoring it. Web hosts have plenty of technicians that help you resolve your common issues and if they don’t, consider switching.
How many custom menu items do you use? Have you contacted your web host for support?
Author: Robert Giaquinto
Robert has been writing tutorials about WordPress and other CMS for over 3 years since joining the GreenGeeks marketing team. Thanks to this, he has had the opportunity to research and master several areas of WordPress including plugin usage, SEO, website design, and social media integration. When he is not creating content for WordPress, Robert is digging up new content ideas for environmental pieces. These range from the pollution in our air to the danger’s wildlife face. And with a bachelor’s degree in electrical engineering, he is always eager to discuss the way our technologies are affecting the environment, especially when it comes to solar energy.