Skip Navigation

Open

Topic Tags: Bug, Compatibility

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' );
        }
    }
    
    

2 Responses to “Menu Translations Losing Connection and Displaying as Duplicates Intermittently”

    • 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.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>