When saving page, menu broken
-
For long time, but not constantly, when saving page, menu items disappear. I couldn’t figure out reason. Site has cache enabled, so I didn’t notice menu was missing right away.
I started observing and noticed that menu was reset after saving page in Elementor.
I have 122 items in my menu. After saving, menu becomes empty. I add any new item to the menu and save – this brings all items back with the new item.
What could be reason? How to fix?
-
Hi there,
Thanks for contacting us and hope you are doing well and having a great day.
To rule out the possibility of a plugin or theme conflict, please deactivate all your plugins (besides Elementor). If it solves the issue reactivate them one by one to find the culprit. If it didn’t help, switch your theme (temporarily) to a default WP theme such as Twenty Nineteen and see if it makes any difference.
Also, this could happen due to our Elementor performance experiments you can try to deactivate them. To deactivate them you can go to Elementor > settings > features
Performance features currently in the experimental stage are:
- Element Caching – Elements caching reduces loading times by serving up a copy of an element instead of rendering it fresh every time the page is loaded. When active, Elementor will determine which elements can benefit from static loading – but you can override this.
- Inline Font Icons?– This experiment renders icons as SVGs without loading the Font-Awesome and eicons libraries. Since SVGs are vector-based images which are rendered using the browser’s engine, they do not increase server requests which improves performance
I am looking forward to hearing back from you soon.
Kind regards,
I understand that there is very little information to solve problem. Also, problem does not occur with each save.
The thing is that this happens on a working online store. I can not conduct experiments on it.
I have The7 theme installed, many widgets on page are built into theme. I use Redis and WP Rocket.
Problem began to appear during development of site, but I thought it was my own mistakes.
After a while, it was necessary to redraw main page and at that moment menu elements disappeared again.It seems to me that some variable receives value – count of menu elements, and when saving, considering 122 an erroneous value, replaces it with 0?
I often use similar environment, but always count of menu elements is up to 10.I thought that this was due to your plugin, since I checked menu elements. Then I changed page in Elementor. I opened menu settings and it became empty.
Perhaps there is a way to track cause without disabling plugins and without changing theme?
Same here: the 7 and Elementor going bananas after last update.
-Woocommerce not updating order status
-Pages that make wordpress return a critical error (cannot edit them as they crash when trying to edit)
-I’ve tried to create them again, but elementor will have the menu greyed out or will let me grab an element into my page, but not edit its contents. It’s a shop with a ginormous amount of posts, items, purchases, events… That I cannot just loose.
There are no errors on the pages. There is only one constant error in the server logs:
Got error 'PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90
PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90
PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90
PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90
PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90
PHP message: PHP Warning: Undefined array key "background_image" in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 87
PHP message: PHP Warning: Trying to access array offset on value of type null in /public_html/wp-content/plugins/elementor/includes/conditions.php on line 90'Elementor – 3.26.5
It started the last few weeks.
Today at 4am the menu disappeared. Then at lunchtime.
What could be the cause?Hi there,
Thank you for your feedback.
It sounds like your menu issue could be related to one of the following factors:
- PHP Max Input Vars Limit – A large number of menu items (122) might exceed the
max_input_vars
setting in your server’s PHP configuration. When this happens, part of the menu data might be lost upon saving. Check and increasemax_input_vars
inphp.ini
if needed. - Caching Issues (Redis & WP Rocket) – Cached data might interfere with menu settings. Try:
- Clearing the Redis cache (
wp redis flush
if using WP-CLI). - Temporarily disabling object caching to see if it resolves the issue.
- Excluding the menu-related options from WP Rocket’s caching rules.
- Clearing the Redis cache (
- Database Corruption or Auto-Optimization – If your hosting provider runs automated database optimizations, it might truncate or reset stored values. Check
wp_options
for anomalies. - Theme or Custom Code Conflict – Since The7 theme has built-in menu widgets, there might be a conflict between Elementor’s menu rendering and the theme’s implementation.
To debug without disabling plugins or changing themes:
- Enable Debug Logging: Add
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
towp-config.php
, then checkwp-content/debug.log
after saving. - Monitor Database Changes: Before and after saving, inspect the
wp_options
orwp_postmeta
tables to see if the menu values are altered.
Let me know if you need help with any of these steps!
- You must be logged in to reply to this topic.