Open
Overview of the issue
In some hosting environments, when using WPML for menu translations, users report intermittent issues where menus display as duplicated entries in the backend. After running troubleshooting actions in WPML > Support > Troubleshooting page, the menus reconnect correctly, but the issue reappears after some time.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open your theme’s functions.php file.
- Add the following snippet:
add_action( 'init', 'exclude_term_queries_from_object_cache' ); function exclude_term_queries_from_object_cache() { if ( wp_using_ext_object_cache() ) { wp_cache_add_non_persistent_groups( 'term-queries' ); } }
This is seriously annoying and a problem.
The snippet does not help.
Hello,
Thanks for reaching out. This issue may be caused by something specific to your environment, such as a cache plugin, server configuration, or a third-party plugin interfering with the default WordPress menu (like Mega menus). Could you please open a ticket on our support forum and provide your debug information? This will help us investigate the issue and assist you in finding a solution.