Skip to content Skip to sidebar

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

Problem:
If you're experiencing blank or white pages on product pages using WoodMart custom layouts when WPML is active, and this only occurs with products having many variations (10-15+), while products with fewer variations display correctly, we can help.
Solution:
We recommend updating a specific function in your WPML plugin files. Please locate the file

sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/class-wpml-elementor-adjust-global-widget-id.php

and modify the function

duplicate_css_class_with_original_id

around line 132 to the following:

public function duplicate_css_class_with_original_id( $content ) {<br />    $classPrefixes = implode( '|', [ 'elementor-', 'elementor-global-' ] );<br />    $pattern       = '/(class="[^"]*?((?:' . $classPrefixes . ')))(\d+)/';<br />    $result        = preg_replace_callback( $pattern, [ $this, 'convert_id_to_original' ], $content );<br /><br />    if ( null === $result ) {<br />        return $content;<br />    }<br /><br />    return $result;<br />}

After applying this change, please clear any caches on your site to see if the issue resolves. This modification addresses template display failures due to the PHP setting

pcre.backtrack_limit

being exhausted. A permanent fix is anticipated in WPML 4.9.

If this solution does not apply to your case, or if it becomes 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. Should you need further assistance, please open a new support ticket 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.

Tagged: 

This topic contains 21 replies, has 1 voice.

Last updated by Юрій Воробйов 1 week, 6 days ago.

Assisted by: Bruno Kos.

Author Posts
December 5, 2025 at 12:58 pm #17638545

Юрій Воробйов

PROBLEM:
Product pages with WoodMart custom Layout render as blank/white page when WPML is active. This happens ONLY on products with many variations (10-15+). Products with fewer variations work fine.

BEHAVIOR:
✅ Standard WooCommerce product page (no custom layout) + WPML = WORKS
✅ WoodMart custom Layout + NO WPML = WORKS
✅ WoodMart custom Layout + WPML + few variations = WORKS
❌ WoodMart custom Layout + WPML + many variations = BLANK PAGE

TESTING DONE:
1. Disabled ALL plugins except WPML and Elementor - problem persists
2. Disabled WPML completely - custom layouts work on ALL products
3. Same product with standard WooCommerce template + WPML - works fine
4. Same product with WoodMart Layout + WPML disabled - works fine

ENVIRONMENT:
- Theme: WoodMart (latest version)
- WPML: latest version
- WooCommerce: latest
- PHP: 8.2
- Hosting: ChemiCloud WordPress Turbo

EXAMPLE URLS:
- Working product (few variations): [hidden link;
- NOT working product (many variations): [hidden link

NOTE:
Both WoodMart and WPML documentation state full compatibility:
https://wpml.org/theme-category/ecommerce/

Please advise how to resolve this compatibility issue.

December 6, 2025 at 10:56 pm #17640929

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for reaching out!

This unexpected behavior could be related to the following known issue:
https://wpml.org/errata/woodmart-custom-layouts-product-type-condition-fallback-to-default-layout/

Please revise the link above and try the suggested workaround. In case you need our assistance with applying the workaround, please let us know.

Best regards
Andreas

December 8, 2025 at 8:54 am #17643079
Юрій Воробйов

I checked the WPML errata page for WoodMart:
https://wpml.org/errata/woodmart-custom-layouts-product-type-condition-fallback-to-default-layout/

This fix is already applied in my WoodMart version (class-single-product.php lines 17-19 have the product_type condition check).

My issue is DIFFERENT - it's not about product_type conditions fallback.
It's about blank/white page specifically on products with MANY variations when using custom WoodMart Layout + WPML active.

The same product renders fine with:
- Standard WooCommerce template + WPML
- Custom WoodMart Layout WITHOUT WPML
- Custom WoodMart Layout + WPML on products with FEW variations

New threads created by Marcel and linked to this one are listed below:

https://wpml.org/forums/topic/woodmart-variation-swatches-gone-on-translated-product/

December 9, 2025 at 3:23 pm #17648386

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

do you have a staging environment where we can take a look?

I would eventually also need to request temporary access (WP-Admin and FTP) to your site
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed

Your next answer will be private which means only you and I have access to it.

❌ Please backup your database and website ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the […] Edit Screen, the Page/Post where you insert the […] and the corresponding Front End Page/Screen

Best Regards,
Marcel

December 11, 2025 at 12:47 pm #17655942

Юрій Воробйов

Hi,

Just following up on this ticket. We're currently unable to proceed with our work while waiting for a resolution on this issue. It's blocking our development progress.

Could you please prioritize this or let me know when I can expect an update?

Thanks.

December 12, 2025 at 3:52 pm #17659991

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Thanks for your patience. The component responsible for the issue is not the theme itself, but the Woodmart Core plugin, which extends the theme’s functionality. When the plugin is disabled, everything loads correctly. It also works if Elementor is disabled, though for testing I kept the free version of Elementor active.

I reduced the variations to 18—matching the product you shared where everything worked—and the issue disappeared. I then manually added two more variations, and it still worked.

After that, I regenerated all 48 variations using “Generate variations”, and the issue is now gone:
hidden link

Could you please try regenerating your variations as well and let me know if that resolves the issue on your end?

Regarding your second question, I created a separate ticket and we’ll check it there.

Best regards,
Marcel

December 15, 2025 at 9:14 am #17663188

Юрій Воробйов

Hi Marcel,
Thank you for your investigation. However, I need to clarify several critical points:

1. WoodMart Core is essential, not optional
WoodMart Core is a required companion plugin for WoodMart theme — the theme doesn't function properly without it. Suggesting to disable it is not a viable solution for production use.

2. Regenerating variations is not a solution
I tested your suggestion. Yes, after regenerating variations using "Generate variations", the page renders. But as soon as I fill in the prices for all 48 variations — the blank page returns.

So the real issue appears when variation pricing data is populated, not with the variations themselves.
This means we cannot have a working product with complete pricing — which makes the entire store non-functional.

3. Timeline concern
This ticket was opened on December 5th, and we're now at December 15th — 10 days without a working solution. Our development is completely blocked. We cannot:

Add new products with full variation pricing
Work on translations
Continue website development

This is a compatibility issue between WPML and WoodMart Core that needs proper technical investigation, not workarounds that break core functionality.

Could you please escalate this to your development team? We need an actual fix, not suggestions to disable essential plugins or leave product pricing incomplete.

Best regards

December 15, 2025 at 9:33 am #17663264

Юрій Воробйов

Also, please let me know the specific time windows when you will be actively working on the site to investigate this issue. This way we can plan our work around it and avoid conflicts.
We will be making backups every 4 hours to ensure nothing is lost.
We simply cannot afford to wait with our work indefinitely — we've already lost 10 days. Please treat this as a priority.

December 15, 2025 at 2:23 pm #17664598

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

I did not suggest keeping the Woodmart Core Add-On deactivated. I mentioned deactivating it only as a temporary step I did to isolate the issue, identify the root cause, and determine exactly what component is responsible. This was for testing purposes, and nothing in my previous message implies that permanently deactivating the add-on is a workaround.

Our compatibility team can investigate this further only if the issue can be clearly reproduced in an isolated environment using the latest versions. To assist with this, I have prepared a sandbox where you can try to reproduce the issue by installing Woodmart and adding a sample product from scratch :
hidden link

If you are unable to fully reproduce the issue in the sandbox (for example, if the issue does not occur there), please provide a Duplicator package so our developers can debug the site package locally.

Testing in the sandbox will help determine whether this is a reproducible compatibility issue or something specific to your installation. Either approach will allow us to identify a proper code workaround or, if necessary, contact the theme authors.

Best regards,
Marcel

December 15, 2025 at 3:07 pm #17664850

Юрій Воробйов

Hi Marcel,
The sandbox you provided (vivid-cabasa.sandbox.otgs.work) is now showing a critical error.
What I did in YOUR sandbox:

Logged in, initially installed UpdraftPlus (misunderstood the purpose), then saw the warning and removed it
Updated WordPress to the latest version
Downloaded and activated WoodMart theme
Installed the child theme
Installed latest patches
Everything was working fine at this point
Activated the pre-installed WPML plugins — the sandbox crashed with "There has been a critical error on this website"

So I successfully reproduced a critical issue in your sandbox — but it's a complete site crash, not just the blank page on variations.
Regarding the Duplicator package: I don't have Duplicator installed and haven't used it before. You already have FTP access to my site, so you can create a copy yourself. Alternatively, I can migrate my site using UpdraftPlus, or you can install Duplicator on my site and create the package — whatever works best for you. My site is currently making automatic backups every 4 hours (both files and database).
Best regards

Screenshot at Dec 15 16-42-37.png
December 15, 2025 at 3:27 pm #17664942

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Updraft is not usable for our local debugging workflow, as a changed URL is not part of the free functionality. While I can create a copy of your site myself, we first need to confirm whether this is a compatibility issue. Please note that FTP is not giving my access to your DB, therefore we use Duplicator or "All in One Migration", as this create also a deployable site package including the database.

I’ve created a new sandbox environment here:
hidden link

Everything is already configured; you only need to install Woodmart. This setup should not trigger any fatal errors, as we use this workflow and theme here regularly without issues.

Did you previously start importing your site package into this sandbox? That could have caused the problem.

Please do not import any existing installation. Instead, reproduce the issue from scratch in this clean environment.

Best regards,
Marcel

December 15, 2025 at 5:15 pm #17665461

Юрій Воробйов

Hi Marcel,
I tried again with the restored sandbox. All I did was activate the WoodMart theme — and the sandbox crashed again with critical error.
I didn't install any plugins, didn't add any products, didn't change any settings. Just activated the theme.
Could there be an issue with the theme archive itself? This is a clean installation with only theme activation, and it crashes immediately.
I'm going to download the latest version from ThemeForest now and try again.
Best regards

December 16, 2025 at 8:13 am #17666359

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

The last time I used Woodmart on this sandbox, my team and I didn’t experience any crashes, so it’s likely that your file is broken or incomplete (possibly missing files).

I’ve prepared a fresh sandbox here specifically to upload the theme again for testing: hidden link

Once the theme is uploaded, I’ll proceed with the configuration.

Best regards,
Marcel

December 16, 2025 at 9:10 am #17666584

Юрій Воробйов

Hi Marcel,
Update on sandbox testing:

Downloaded the latest WoodMart version from ThemeForest (renewed support today)
Installed the theme, then child theme, then update patches
Everything worked fine at this point
Activated WPML plugins — sandbox crashed again with critical error

The theme archive is working — I updated my development site from the same archive without any issues.
This confirms: your sandbox crashes when WPML plugins are activated with WoodMart theme. The issue is on WPML side.
Regarding Duplicator package: I installed Duplicator and created a backup, but had to use Two-Part Install because my site is over 3GB. The database backup is ready. You can pull the files via FTP (you already have access) and then run the installer.
But the main point remains — your own sandbox breaks when activating your own plugins with WoodMart. You should be able to investigate this directly without my site data.
Best regards

Screenshot at Dec 16 11-10-19.png
December 16, 2025 at 9:13 am #17666601

Юрій Воробйов

Also, if you have any technical details or error logs from your investigation that I can pass to WoodMart support, please share them. I will contact WoodMart as well to speed up the resolution from both sides.