Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing an issue where Italian content appears on an English page, despite settings that should display each language's content on its respective page. This problem is due to the WPRentals theme not handling transients properly.

Solution:
Please see this errata https://wpml.org/errata/wprentals-taxonomy-terms-cached-in-wrong-language/ for details.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.

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.

This topic contains 35 replies, has 0 voices.

Last updated by vladimirM-19 3 months, 1 week ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 24, 2025 at 2:33 pm #17165556

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. I am working on this and 'll get back to you as soon as I find something or have a solution.

June 25, 2025 at 7:01 am #17167229

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I was able to find the reason of the problem. This is due to the WPRentals Cache. Although cache is disabled in WPRentals Options -> General -> Theme Cache but still if I clear the cache using the top admin "Clear WPRentals Cache" on frontend, it regenerates the cache in the language we're currently on.

So all those parent level taxonomy labels (from Features & Amenities) are shown in that particular language. The child level taxonomy labels are fine.

Please hidden link">watch my screen recording to understand the problem.

The next step is that I'm going to take the theme from your staging site and 'll try to reproduce the issue in a fresh sandbox site of my own. This way I'll be able to identify (or rule out any possibility of) if the problem is only happening in your server (or DB) or can be reproduced elsewhere.

And based on that, I'll check with my team and escalate the matter accordingly.

Please allow me some more time. I'll keep you posted on this.

June 25, 2025 at 2:07 pm #17169760

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I am still working on this and 'll get back to you tomorrow on this.

June 26, 2025 at 6:26 am #17171398

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I've setup everything in hidden link">this sandbox site (one-click login). However, I'm waiting for our test license to activate the theme, so I can then adjust and save theme settings to continue forward.

In the meanwhile, if your license allows, please feel free to activate the theme in the above mentioned site.

June 26, 2025 at 8:23 am #17171919

vladimirM-19

I am at maximum 3 sites at the moment...

June 26, 2025 at 1:16 pm #17173743

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Is it possible for you to temporarily revoke the WP Rentals license from your staging/test site and apply to the sandbox site? Unfortunately we're not able to get a licensed theme so far. Our contact is away until next 2 weeks (approximately).

So instead of delaying, I just need to activate the theme and check in the sandbox that if the issue is reproducible plainly (or out of the box). In this case, I'll be able to escalate with the copy of my sandbox site.

If issue doesn't happen in the sandbox site, then 'll need the copy of your staging site for escalation.

In either case, once it is confirmed in the sandbox site, you can revoke your license to be used in your own sites. Our teams can take care of the rest later on.

Please let me know.

June 26, 2025 at 1:40 pm #17173919

vladimirM-19

Wagas, I pinged WP Rentals support. It has to go through them

June 26, 2025 at 2:05 pm #17174060

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Sure let's wait for them, however, if there's more delay or not possible, I'll take a copy of your staging site and 'll escalate.

Please let me know when you have some more info.

June 28, 2025 at 6:57 pm #17179631

vladimirM-19

Wagas, they informed me they enabled the domain and activated the license

June 30, 2025 at 8:09 am #17181624

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates and I was able to reproduce the issue.

I've escalated the issue to our 2nd tier team for further investigation. Please keep your staging site active as well, so our team can check in there too as needed.

I'll update you as soon as there's more to it.

July 8, 2025 at 4:08 pm #17215378

vladimirM-19

Wagas, any update?

July 9, 2025 at 5:56 am #17216851

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Please accept our apologies for the delay, as the issue is still being investigated and is with our 2nd tier team. However, I'm checking again and 'll update you as soon as there's some information available.

Thank you for your patience and cooperation.

July 9, 2025 at 6:22 am #17216866

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

FYI, issue has been escalated to our compatibility team and I'll update you as soon as there's more to it.

July 11, 2025 at 7:14 am #17226363

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Our team identified the problem, which is coming from the theme not taking care of transients properly (even when you deactivate the theme cache in "WPRentals options > General > Theme cache"). So they offer the following fix:

- Open the /wp-content/themes/wprentals/libs/taxonomy_functions/taxonomy_transients_functions.php file
- Look for line 35
- Replace:

    // Create unique key based on taxonomy and args
    $args_hash = md5(serialize($args));

- With:

    // Create unique key based on taxonomy and args
    $args_hash = md5(serialize($args));
    // WPML Workaround for compsupp-8069 
    if ( class_exists('Sitepress') ) { 
        $current_lang = apply_filters( 'wpml_current_language', NULL ); 
        $args_hash .= '_' . $current_lang;
    }

- Save the file and recheck.

I've applied this to the staging site and it seems to work fine.

Please check and confirm.

July 11, 2025 at 4:11 pm #17229004

vladimirM-19

Hi Wagas,

I set it within the child theme and the issue is still there. Pleasee see my setup as well.

2025-07-11_18-09-49.png
2025-07-11_18-06-12.png