Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with their website breaking on a single product page when WPML String Translation and Additional Variation Images Gallery for WooCommerce are active together on PHP 8.2 or higher. The error logged is a deprecated function in PHP 8.2.
Solution:
We recommended the client to:
1) Ensure all plugins, including WPML and String Translation, are updated to the latest versions.
2) Deactivate all plugins except for WPML and String Translation, and switch to a standard theme to check if the issue persists.
3) Reactivate plugins one by one to identify any conflicts.
4) If the issue was still unresolved, we provided a code snippet to add to the theme's functions.php file:

add_filter( 'woocommerce_ajax_variation_threshold', '__return_false' );

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, 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 24 replies, has 0 voices.

Last updated by Kor 4 days, 18 hours ago.

Assisted by: Kor.

Author Posts
October 8, 2025 at 5:53 pm #17468520

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see the issue now. This product hidden link shows up correctly when WPML plugin is deactivated and it's something that shouldn't happen.

Also, if I add a new color and a variation, the product shows up. It looks like some sort of glitch or bug. I will have to escalate this to our 2nd Tier Support for further investigation.

I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

October 13, 2025 at 4:56 pm #17480700

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I’ve checked, and it seems that some products work fine even when they have multiple variations, for example, this one: hidden link

Does the issue occur only with certain products?

hidden link
hidden link

October 14, 2025 at 7:57 pm #17485332

raulE-2

Hi Kor,

Thanks for the reply!

I don't really understand the logic behind when it works and when it doesn't. I can however rule out that the problem does not occur with products that only come in one color variant.

On the next page, you can see all products and if necessary visit the links:
hidden link

I have tried a few things and have noticed the following:
- I made a copy of the product “Homme Vista” (where the page breaks). When I remove all images from both the parent file and variations, the page loads fine (hidden link).
- I made a second copy of the product “Homme Vista” (where the page breaks). When I add a new color to attributes and then create a new variation (from the new color), the page still breaks. But as soon as I add a second variation, the page no longer breaks, which is very confusing (hidden link).

-> So, in my opinion, the problem is located somewhere in the images (product gallery parent & product gallery variations), but not sure of course.

For your information, I have other projects with the same plugin combinations and do not have this problem. I also tried another product gallery plugin, but had the same problem.

At this point, I am considering rebuilding this project from scratch, but this would take an enormous amount of time.

Thanks again for your help.

Kind regards,
Raúl

October 15, 2025 at 5:24 pm #17488058

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I will escalate this further to our 2nd Tier Support for further investigation. I will come back to you once I've feedback.

October 21, 2025 at 6:57 pm #17504343

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Our 2nd Tier Support checked and he requested that you activate the Elementor Pro plugin on your staging site and update the Elementor Pro to the latest version.

Once you've done that, please notify me and I will share your feedback with our 2nd Tier Support.

October 22, 2025 at 8:02 pm #17510109

raulE-2

Hi Kor,

Thanks for your message. I have activated the Elementor Pro license on the staging site. The plugin is up to date: Version 3.32.3

Please let me know if you need anything. Thanks for all the help.

Kind regards,
Raúl

October 23, 2025 at 6:21 am #17510871

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Your report is in a queue for a second look. I will come back to you once I've feedback.

October 23, 2025 at 3:33 pm #17513187

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. We're able to fix the issue by adding the code below into your theme's functions.php file. Could you please check now?

add_filter( 'woocommerce_ajax_variation_threshold', '__return_false' );
October 24, 2025 at 12:35 am #17514302

raulE-2

Hi Kor,

Thank you very much, problem solved!

I immediately applied your solution to the live site:
- Updated to PHP 8.2
- Added code snippet

-> Everything works perfectly! In case you want to take a look: hidden link

Once again, thank you for your patience and help. I think we can close this ticket now 🙂

Kind regards,
Raúl

October 24, 2025 at 12:38 pm #17516505

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Yes, it works fine now. Feel free to mark this ticket as resolved.