This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Bug
Author | Posts |
---|---|
April 30, 2025 at 2:43 pm | |
mathiasA-14 |
Background of the issue: Symptoms: Questions: |
April 30, 2025 at 4:16 pm | |
April 30, 2025 at 4:24 pm #16984927 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, The issue still exists after the initial checks. We would like to confirm whether there are any server-side caches in place. If so, it would be great if you could clear them, as the issue temporarily resolves for a few seconds when I purge the SG caches. -- Bigul |
April 30, 2025 at 9:57 pm #16985308 | |
mathiasA-14 |
I use siteground and it has different types of cache. I purged all the cache and it is still malfunctioning. |
May 1, 2025 at 3:42 am #16985510 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Thank you for the updates. Please allow me to make a copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site. -- Bigul |
May 1, 2025 at 12:12 pm #16986512 | |
mathiasA-14 |
Hi Bigul! Yes, I allow you to do so. Do you need anything else from me? |
May 4, 2025 at 4:47 am #16992681 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Thank you for the permission. I made a copy of the site, but the issue remains on my local copy after the initial troubleshooting steps. So, I am consulting with our team for an expert opinion now. We will get back to you as soon as possible. Please wait. -- Bigul |
May 6, 2025 at 6:31 pm #17003229 | |
mathiasA-14 |
Hello, any news? The website has a lot of traffic and it is not good to have this problem. If you can't fix the widget maybe we can find another solution, but let's do something please, my client is really upset. |
May 7, 2025 at 6:06 am #17004348 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, We are still working on this issue. The ticket has been escalated to our second-tier team for further debugging. We will get back to you as soon as possible. Please wait. -- Bigul |
May 7, 2025 at 3:51 pm #17007627 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, This bug is happening becuase of a conflict with the WpResidence caching. The theme uses a custom caching method for menus by storing them in transients (temporary data that lasts for about 4 hours). When someone visits a page, the menu (including the language switcher) is saved this way, so the same menu links are shown on all other pages, even if the language links are no longer correct. As a workaround, we have used the following code to clear these transients on every page load, so the menu updates correctly each time and shows the right language links. Our compatibility team is still reviewing it for a permanent solution. /** * Zap every WP Residence menu transient on each page load. * The target string is unique enough that a single LIKE works. */ function cleanup_wpresidence_menu_transients() { global $wpdb; $like = '%' . $wpdb->esc_like( 'wpestate_wpresidence_primary_menu_complete' ) . '%'; $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", $like ) ); } add_action( 'init', 'cleanup_wpresidence_menu_transients' ); So, please add this code in the functions.php file of the theme (at the bottom of the file, like the attached image) after a full site backup (mandatory). Then, clear all types of caches and make sure the bug exists or not. -- Bigul |
May 11, 2025 at 12:38 am #17019603 | |
mathiasA-14 |
Thanks, I am attentive to the news to solve the problem definitively. |
May 12, 2025 at 6:09 am #17021008 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Thank you for the feedback. We have released an errata for this and are expecting a fix from the theme author in the future. https://wpml.org/errata/wp-residence-main-menu-language-switcher-shows-wrong-urls/ We will update you soon when we have an update from our compatibility team about this. -- Bigul |
May 12, 2025 at 9:28 pm #17024669 | |
mathiasA-14 |
Ok, so I am looking forward to hearing from you soon. Thank you! |
May 13, 2025 at 7:03 am #17025337 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Thank you for the updates. We will get back to you as soon as we have feedback. Please stay tuned. -- Bigul |
May 28, 2025 at 7:14 am #17081509 | |
Bigul WPML Supporter since 01/2013
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, We have received an update from the WPResidence theme team. The fix for this bug will be included in a future version of the theme. In the meantime, they have suggested a temporary workaround: disabling the Theme Menu Cache. hidden link -- Bigul |