web analytics

WordPress Custom Menu Update Fail Error: Maximum execution time of 30 seconds exceeded

Technology > WordPress

Problem Summary. When using custom menus in WordPress, and adding too many menu and sub menu options, it’s possible that when saving/updating the menu customizations and changes that you will get an error message stating, “Maximum execution time of 30 seconds exceeded…” and some information about where that error occurred.

Problem Solution. To fix this problem, edit the wpconfig.php file as indicated below.

Before editing, find the line in your wpconfig.php file that states:

/* That's all, stop editing! Happy blogging. */

Then, after that line, have a blank line and then add the following:

/* To eliminate time limit. */
set_time_limit(0);

This should fix the problem.

By Greg Johnson

Greg Johnson is a freelance writer and tech consultant in Iowa City. He is also the founder and Director of the ResourcesForLife.com website. Learn more at AboutGregJohnson.com