Skip Navigation

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

Problem:
The client was experiencing issues with WooCommerce products not displaying after translating them using WPML. The translated product pages were blank.
Solution:
We identified that the problem was due to a string that had been translated with variables, which caused a fatal error in WordPress. To resolve this, we recommended the following steps:
1. Navigate to WPML > String Translation;
2. Search for the "You must be" string;
3. Edit its translation and remove the variables, ensuring the final result matches the provided screenshot.

After following these steps, the website should function correctly.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we encourage you to open a new support ticket. We also 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 further assistance is needed, please contact us through the 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 6 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year, 3 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
February 23, 2024 at 12:44 pm #15337699

madH

Hi,

I just recently bought your plugin and I am trying to make multilingual fashion store. But I am having issues with WPML when it comes to translating woocommerce products - they are not showing.

Here is a link of a product in English: hidden link

And this is the link of Serbian translation: hidden link

I tried to translate the page using WPML Translation editor and also WordPress editor and the page is just blank.

Can you help me to solve this issue? What did I do wrong?

Thank you in advance.

Best regards
Sanja

February 23, 2024 at 6:41 pm #15339029

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello and thank you for getting in touch with us.

Can you please share a screenshot of the page that is not working? Also, please share a screenshot of your “Products” page, in the WordPress admin panel.

This way I can better understand what's going on 🙂

February 23, 2024 at 9:24 pm #15339402

madH

Hello Lucas,

Sure. In the attachment you will find screenshots of the product in English (front end and back) which is working just fine. And screenshots of the same product in Serbian which is not visible.

I am also providing screenshots of the products in back admin and also WPML translation management, where you can see that this product is fully translated.

WPML works just fine on every other page and works well with WP Bakery also, so I dont understand why it is not working with woocommerce products.
I really need to solve this issue ASAP because we have to put shop online.

Thank you in advance.

screenshot - product list admin panel.JPG
screenshot - product front end serbian.JPG
screenshot - product front end english.JPG
screenshot - product back end serbian.JPG
screenshot - product back end english.JPG
screenshot - WPML Translation management.JPG
February 26, 2024 at 11:10 am #15343690

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for sharing.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

February 26, 2024 at 8:44 pm #15346315

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Sanja,

Thank you for sharing 🙂 I've sent your ticket to our developers, to get a second opinion. They usually answer within 24 hours. I'll update you once I have feedback from them.

February 27, 2024 at 12:10 pm #15349001

madH

Hello Lucas,

Thank you for support. I hope the feedback will have positive outcome.
Best regards
Sanja

February 27, 2024 at 2:43 pm #15349622

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Sanja,

We found out what was causing the issue. There was a string that was translated with variables, what was causing a fatal error in WP. Please follow these steps:

1. Go to WPML > String Translation;
2. Search for the "You must be" string;
3. Edit its translation and remove the variables. Your final result should be similar to the screenshot;

Now your website should work as expected 🙂

String Translation _ MAD House _ WordPress.jpeg
February 27, 2024 at 10:33 pm #15351529

madH

Hi Lucas,

This worked! Thank you very much. The website now works just fine.
This means that in the future, when there is variable in the english text (such as %s etc) I should not duplicate it in Serbian?

Thank you very much for you time.

Best regards
Sanja