Skip Navigation

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

Problem:
You are experiencing a fatal error on the cart page and other pages when WPML String Translation is activated in the Arabic version.
Solution:
We have removed the incorrect string translations which resolved the issue. Please check if the error persists. Additionally, we recommend reviewing the related known issue documented here: PHP 8 PHP Fatal Error Uncaught ValueError: Unknown format specifier in.

If this solution does not apply to your case, or if it seems outdated, please open a new support ticket. We also 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. For further assistance, you can 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 Shekhar Bhandari 4 months, 3 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
September 9, 2024 at 12:08 am #16153263

sadeemA

Background of the issue:
I'm experiencing a fatal error on the cart page and other pages when WPML String Translation is activated with Arabic version. I submitted a private ticket earlier but haven't received a response. I need this issue resolved as soon as possible.

Symptoms:
Fatal error on the cart page and other pages when WPML String Translation is activated in Arabic version.

Questions:
How can I resolve the fatal error caused by WPML String Translation?
Is there a known issue with WPML String Translation causing fatal errors on certain pages?

September 9, 2024 at 2:16 am #16153343

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Welcome to WPML support. I'd be happy to help you with this.

Can you follow the below steps and see if it helps?

- Login to your ftp
- Go to wp-content folder.
- Go inside the language folder and rename wpml folder and see if it helps.

If not, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

September 9, 2024 at 3:15 am #16153377

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have removed the incorrect string translations and it's fixed now. Please confirm.

https://wpml.org/errata/php-8-php-fatal-error-uncaught-valueerror-unknown-format-specifier-in/

Thanks

September 9, 2024 at 3:55 am #16153390

sadeemA

Hi,

I still have a problem in the cart page (Arabic page) at this link:
hidden link

Add a product and go to the cart and you will see the cart page isn't working, if you turn the debug true you will see error.

Thanks.

September 9, 2024 at 4:31 am #16153400

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have fixed the error, the issue was occurring as for this text translations

Remove %s from cart

two placeholders were added in translations.

Please check and confirm.

Thanks

September 9, 2024 at 4:52 am #16153408

sadeemA

Hi,

Thanks. this issue is solved.

I have 2 more issues i want your help with, not sure if i could use the same ticket for it or not, but here it is:

1- An alert says: ""Process emails in background" option is enabled. WPML string translation may not work as expected for email templates. Please disable this option to send translated strings in emails.", i don't know what is this and what is it, if you could tell me what to do with it that would be great.

2- Some content disappear probably because i changed the default language, is their anyway to solve this problem?

Thanks for your quick help.

September 9, 2024 at 4:53 am #16153409

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please open new tickets for the new issues as we handle one issue per ticket to as per our support policy, we are available via chat too.

Thanks

September 9, 2024 at 5:00 am #16153412

sadeemA

Ok, Thanks.