I've got a wordpress site using MAMP on localhost. Everything's running fine, right up until I try to modify the menu. The menu has about 34 items on it, mostly pages, with a few custom links (placeholders for pages I haven't made yet).
When I try to save the menu after modifying it (Adding another page, or a custom link), the menu fails to save correctly. I get a save successful error, but all custom links become first level menu items, the page I was trying to add becomes an empty custom link, and (heres the weird part) the page I was trying to add has its page layout metadata reset. Specifically, the page-top, page-bottom, and the sidebar settings all reset to their default settings. (Which means that suddenly theres a sidebar and a ton of padding, making the page look awful, along with a garbled menu).
I found a few other questions which seemed similiar, and I tried a few fixes, specificlly, adding these lines to mamps php.ini:
max_input_vars = 5000 max_execution_time = 600 memory_limit = 64M max_input_time = 600
I can see these values reflected in phpMyAdmin's phpInfo.
This seems 100% caused by the server memory limit, but this seems like a really low number to cause it, and the fix provided for the memory limit does not seem to fix this issue.
I am able to fix the locations of the items using the menu editor, but once I try to add a new page to the menu, the existing custom links become top level, and the page shows up as a blank custom link.
I don't see anything unusual in my debug logs either, just the usual errors:
[28-Feb-2018 20:21:03 UTC] PHP Notice: wp_richedit_pre is deprecated since version 4.3.0! Use format_for_editor() instead. in /local/wp-includes/functions.php on line 3839 [28-Feb-2018 22:22:52 Europe/Berlin] PHP Fatal error: Call to undefined function luxe_get_meta() in /local/wp-content/themes/simpleflex/index.php on line 3
This however, does not fix my problem. I am able to modify the menu using the customizer, but its a poor fix for this issue. (Mostly because there are other staff members who might not remember which way to edit the menu & cause this issue).