Skip Navigation

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

Problem:
The client was experiencing issues with widgets such as the 'add to cart button' and 'product descriptions' not appearing on the Italian single product page. Despite deactivating all plugins and clearing the cache, the problem persisted.
Solution:
We recommended the client to test the site in a minimal setup by keeping only the theme, WPML/WCML plugins, and must-have plugins active while disabling all others. We also advised clearing the website's cache after switching to this minimal setup. Upon further investigation, we identified a fatal error caused by an incorrect translation of the string '%s quantity' in the context of WooCommerce. Correcting this translation resolved the issue on the staging site. We suggested the client to apply this fix on the production site and verify if the problem was resolved.

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 the problem persists, please do not hesitate to 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 13 replies, has 2 voices.

Last updated by Marsel Nikolli 3 months, 1 week ago.

Assisted by: Marsel Nikolli.

Author Posts
August 13, 2024 at 7:50 am #16064382

danahK

Background of the issue:
I am trying to solve errors on the Italian single product page. Here is the link to the page where the issue can be seen: hidden link

Symptoms:
Some of the widgets such as the 'add to cart button' and 'product descriptions' are not appearing.

Questions:
I cannot see widgets like the 'add to cart button' and 'product descriptions' not appearing on the Italian single product page.
I want to permanently remove Italian single page but when I remove permanently on Italian single product, and create again, But it is getting same error. Is there anyone to help with this matter?

Iam attaching both well-working single product page, and error single product page.
and This is the link of the page I am getting error:
hidden link

August 13, 2024 at 8:50 am #16065306

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

Would it be possible to check if the issue happens in a minimal setup, meaning:

- keep the theme you have
- keep active only WPML/WCML plugins and must-have plugins
- disable all other plugins

After, check if the issue is still happening.

* Please clear the website's cache after you switch to the minimal setup.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

Let me know how it goes,
Marsel

August 13, 2024 at 12:35 pm #16066324

danahK

Hi- thank u for advising me.

I deactivated all the plugins but the error was existed. This is error on WPML
I also cleared cache.

Is there any other way to solve this matter?

August 13, 2024 at 1:39 pm #16066695

Marsel Nikolli

Hi,

Thank you for the update.

I would need temporary access to your website to investigate this issue and understand it better.

Please fully back up your site (files and database) and confirm it in your next reply.

I would need to access your site's WP-admin.
Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

August 14, 2024 at 12:20 pm #16070416

Marsel Nikolli

Hi,

Thank you for the access, I was able to check the website.

I noticed that on WCML -> Products the original language for the products is French and not English, can you please tell me how you are translating the products?

You should create the products in the default language and then translate them.

---

Also, please go to WP-Admin ->Users -> All Users, and make sure that all the user accounts have the following:

- First name
- Valid email format

In some cases, if any of the above is missing, it can cause issues with the WPML translators and show the error in the page WP-Admin ->WPML -> Support section.

Screenshot 2024-08-14 141047.png
Screenshot 2024-08-14 140557.png
August 14, 2024 at 3:03 pm #16071506

danahK

Email : [Removed]
Password: [Removed]

I see I will check them right away /o/

August 14, 2024 at 3:18 pm #16071573

danahK

I find out that the flg is showing as France but when I hover over it, it says English.
this is weird. When I check other languages are same as English.

August 15, 2024 at 7:34 am #16073184

Marsel Nikolli

Hi,

I've checked further and when trying to edit with Elementor editor the single product template shows like in the attached image (on the console log there are errors showing as well).

Will it be possible to delete and re-translate the template page and check if the issue persists? If it does, try checking in a minimal setup by keeping the theme you have active, disabling all the plugins except the WPML/WCML ones and any necessary plugin to run the theme.

Let me know how it goes,
Marsel

Screenshot 2024-08-15 093103.png
August 15, 2024 at 9:08 am #16073550

danahK

Hello-
I tried both two steps:

1. I edited the single product page in order to see the error that you attached screenshot image. But I could not find out the same image with your screenshot.

2. I recreated the single product page and retranslated but the problem is still on there.

- But I notice that where the error occurred (check for one screen shot)

When I did not type the price on Italian product, the Italian single product page is getting bug ( I am attaching the two screen shot and link) :
hidden link

the error is on here when I type the price:
hidden link

Thanks for your hard care,
Danah.

no price no error2.png
no price no error0.png
after recreating still error.png
Tired to edit but no error I could not see.png
August 16, 2024 at 6:50 am #16076981

Marsel Nikolli

Hi,

Thank you for the update.

To further troubleshoot the issue I would require a copy of your website to test it locally and further escalate the issue if needed.

You can use the Duplicator plugin to create a copy of your website and upload the backup on a file-sharing website (Google Drive, Dropbox, etc.), please send me the link to download the backup after.

* Please try to minimize the size of the backup file by excluding unnecessary media files or backup folders that might be in the "/wp-content/" folder.

I’ve set your next reply as private so you can provide the backup link.

Thanks,
Marsel

August 19, 2024 at 8:41 am #16082430

Marsel Nikolli

Hi,

I would require the zip file and the installer.php file created from the Duplicator (the ones created when you back up the website) as I need to install and test it locally and further escalate.

* The file you shared doesn't seem to be a WordPress installation (please check the attached image).

Looking forward to your reply,
Marsel

Screenshot 2024-08-19 103859.png
August 20, 2024 at 8:38 am #16086176

Marsel Nikolli

Hi,

1- You don't need to buy or use a premium version of Duplicator, you can get a backup with the free version without any problems (I can try creating a backup package if it's on for you - please confirm in your next reply)

2- I am not able to access the staging site you shared before.

Looking forward to your reply,
Marsel

August 20, 2024 at 7:47 pm #16088185

danahK

I recreated the cloned the site due to interruption and
now changed the username and password to the same as previous one.

hidden link

I really appreciated your assistance ToT//

August 22, 2024 at 10:18 am #16094119

Marsel Nikolli

Hi,

I've checked further on the staging site, and upon disabling all the plugins except the WPML/WCML ones, a fatal error appeared on the product page in Italian (the error is shown in this link: https://pastebin.com/LwxAYstx).

It seems that the error was caused by the wrong translation of the string '%s quantity' in the context of WooCommerce. The "%s" refers to a string, not a simple % (please check the attached image showing the wrong translation).

I've corrected it and on the staging site, it is working correctly.

Please try checking it on the production site, and let me know if the issue persists.

Regards,
Marsel

Screenshot 2024-08-22 121448.png
August 22, 2024 at 8:14 pm #16096708

danahK

Wow, Thanks Nikolli!!
Maybe I asked three times to other supporters but
you are the only one to find out the issue.

you are very detail oriented and professional supporter.
I really love and appreciate your support!

>.<///♡♡