Skip to content Skip to sidebar

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

Problem:
You have created a variable product in French on your WooCommerce site, and while it works perfectly in French, the English version has issues with mismatched variation images and incorrect pricing. This problem occurs when switching to the English version of the product.
Solution:
After extensive testing, we discovered that the issue is related to the PHP version used on your server. Specifically, the problem replicates with PHP 7.4.33 but not with newer versions. We recommend updating your server's PHP version to at least PHP 8.1 or PHP 8.2. After updating, please test the English version of your product again to see if the issue persists.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 problems continue, please do not hesitate to open a new support ticket with us for further assistance at WPML support forum.

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 53 replies, has 0 voices.

Last updated by kisa 1 month, 1 week ago.

Assisted by: Lauren.

Author Posts
June 21, 2025 at 2:59 pm #17156173

kisa

Thank you, I'll wait for the 2nd tier support to fix this!

June 24, 2025 at 4:52 pm #17166269

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

After further testing, neither myself nor our second tier are able to recreate the issue when creating a new product, or translating from scratch. I realize you are still able to reproduce the issue, but we can't figure out what we are doing differently. I translated the attributes, set backorder, etc. The previous screencast has since expired. I hate to ask you this but could you please record the full process of you creating a brand new product in the staging site and record all the steps through tranlsation? I think this is the only way we will be able to reproduce the issue. I appreciate your continued assistance and patience.

June 24, 2025 at 5:30 pm #17166329

kisa

Hello Lauren,

No worries. I recorded the process again while creating and translating a product, and unfortunately, you'll see that the issue still persists...
hidden link

June 24, 2025 at 5:49 pm #17166346

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you so much this is super helpful and I hope to have more information for you shortly.

June 25, 2025 at 3:02 pm #17170099

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Okay after much testing, I think we have isolated the issue. On a local test site, we were not able to reproduce the isuse. Also on a local copy of of your site, we were not able to reproduce. Our 2nd tier support was finally able to reproduce it on the staging site on your server. Having established that it appears to be server related and eliminated differences such as MU and drop-in plugins on the client server, they noticed that you are using PHP 7.4.33.

He updated his local environment to use the same (well, 7.4.30) on an Apache server, and then he could replicate the problem locally, too.

So, it only happens with many variations, when using and older version of PHP.

Would it be possible to update to PHP 8 (Actually, 8.0 has already officially reached end-of-life, so maybe 8.1 or 8.2.)? Let me know if you can do that and test and then if the issue is still happening.

June 25, 2025 at 3:21 pm #17170199

kisa

Hi,

I’ve just updated the PHP version to 8.2 — could you please confirm if this also applies to the staging site?

I’ve also run another test on our live site, which should now be running on PHP 8.2 as well, but the issue still seems to persist. At the moment, we’re even sometimes getting the message: "Sorry, no products matched your selection. Please choose a different combination." on a variation, even though the base language shows the products as being in stock.

Thanks in advance for your help!

June 25, 2025 at 6:49 pm #17170682

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

yes, please update on the staging server as well. Can you please share a screencast of you testing this onthe staging site with the updated PHP and if you can, include that message, so I can send it back to our 2nd tier support. Thanks, I was certain we had narrowed it down this time!

June 25, 2025 at 7:13 pm #17170735

kisa

I just recorded a new video on the staging site using the updated PHP version:
hidden link

And it seems to be working! I'm not sure why it's still not working on the live site though—maybe it only applies to newly added products?

Tomorrow, I'll try creating a new product and translating it on the live site to see if it works, and I’ll let you know. THank you again for your patience and your help!

June 25, 2025 at 7:44 pm #17170783

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Okay that's kind of good news I guess? Let me know what you find tomorrow and I can go back to our 2nd tier support as needed. Thanks again for your help with the troubleshooting.

July 2, 2025 at 1:37 pm #17193390

kisa

Hi Lauren,

Thank you so much! I really feel like the issue was related to the PHP version, as everything seems to be working fine now. I can hardly believe it! T_T I just hope it continues to work smoothly.

Thanks again for all your assistance, I really appreciate it!

Best regards