WP_Menu changes timing out
-
When updating the main menu, (using appearance->menus) on a client’s site (200+ pages), it times out and gives me a 500 internal server error on Chrome, and a blank page on Safari and Firefox. The menus cannot be edited at this point because any changes will just time out.
I am not the only person with this issue, as there have been a few other old (now closed) topics dealing with this, but with no full resolution. This has even been tracked as a bug but remains unresolved for the past few updates to WP.
https://www.ads-software.com/support/topic/wp-30-menu-big-save-menu-problem?replies=2
https://www.ads-software.com/support/topic/menu-timeout?replies=7#post-1713325
https://www.ads-software.com/support/topic/saving-nav-menu-crashes-server?replies=4
https://www.ads-software.com/support/topic/rc32-menus-still-crippled?replies=28
https://core.trac.www.ads-software.com/ticket/14134Summary of proposed fixes:
If your host is using suhosin, you can ask them to increase the time for php commands to execute. This is usually not an option for people on shared serves like GoDaddy.
Nickstrong said:
“I just asked them to set the following two values in PHP.
suhosin.post.max_vars = 5000
suhosin.request.max_vars = 5000 “If you are like me and using Godaddy, they will instruct you to update your php.ini file to include:
max_execution_time = 100
max_input_time = 100
I did this but it still did not change anything.Basic troubleshooting such as updating to the latest version, disabling plugins, etc have not solved anything either. Specifically, the issue has to do with the time it takes to save a large menu that at the server level gets truncated.
If anybody has a workaround for this that they have found, please let me know. This has been driving me nuts for a while now. Thank you!
- The topic ‘WP_Menu changes timing out’ is closed to new replies.