Skip Navigation

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

Problem:
You are experiencing a fatal error when switching your WordPress site to a second language (Arabic) using Elementor and WPML. The error message displayed is:

Fatal error: Uncaught ValueError: Unknown format specifier "�"

. Additionally, the automatic translation feature in WPML isn't functioning as expected.
Solution:
We resolved the fatal error by correcting a string translation issue. Here are the steps we followed:
1. In WPML -> Strings Translation, search for 'New %s'.
2. Ensure that the placeholder '%s' is translated correctly. In this case, it should be translated to 'جديد %s' for Arabic.
This adjustment fixed the fatal error related to the language switch. For the layout issues in the Products tab, we corrected all strings containing '%s' in the Dokan domain within WPML -> Strings Translation.

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 problems persist, 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.

Tagged: 

This topic contains 9 replies, has 0 voices.

Last updated by yousefifardH 1 month, 1 week ago.

Assisted by: Itamar.

Author Posts
May 6, 2025 at 9:11 am #17000394

yousefifardH

Regarding the steps to trigger the error, I’ve noticed that the error occurs simply by navigating to the "Products" tab in the Dokan vendor dashboard when the site language is set to Arabic.

In the English language, the "Products" tab works fine (as shown in the attached screenshot 1).
In the Arabic language, the same tab triggers the error (as shown in the attached screenshot 2).

Screenshot 2025-05-06 123750.png
Screenshot 2025-05-06 123725.png
May 7, 2025 at 6:47 pm #17008480

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Thanks!

In WPML -> Strings Translation, in the Dokan domain, I searched and fixed all the strings that contain (%s). Please see the attached screenshot. Now, the layout of the Products tab in Arabic is not broken. Please see the attached screenshot.

Can you please confirm that this problem is solved now?

Thanks,
Itamar.

2025-05-07_21-44-03.jpg
2025-05-07_21-45-01.jpg
May 8, 2025 at 8:19 am #17010192

yousefifardH

Thank you for your efforts! I’ve reviewed the changes, and I can confirm that the problem is now resolved. The layout of the "Products" tab in Arabic is no longer broken, and the fatal error is gone.