Skip Navigation

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

Problem:
The client is experiencing an issue where the Arabic translation of their website only works when logged in as an admin. The translation does not work for users without admin access. The failure found was

PHP Fatal error:  Uncaught ValueError: Unknown format specifier "Ř"

.
Solution:
We identified that the issue was related to incorrect string translations in the Rankmath plugin. Specifically, placeholders like

%d

were not correctly maintained in the Arabic translations. To resolve this, follow these steps:
1. Navigate to WPML > String Translation.
2. Enter "Ř" into the text search field and check the "Include translations" box.
3. Look for strings such as

%d minute

and

%d minutes

and ensure the placeholders are correctly formatted. The correct translation for these should be

دقيقة %d

and not

د دقيقة%

.

If this solution does not resolve your issue or seems irrelevant due to updates or differences in your case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.

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 0 replies, has 1 voice.

Last updated by Andreas W. 1 week, 4 days ago.

Assisted by: Andreas W..

Author Posts
March 29, 2025 at 11:55 pm #16875859

Tonbojp

Hi Andreas,

Thank you for this. I still see an error line in the hidden link I have added the screenshot below. Does this solve the problem of turning on the debug mode or is there another way? Thank you

Deprecated.png
March 30, 2025 at 12:04 am #16875875

Andreas W.
Supporter

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

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

Yes, turn off debug mode and this error will disappear.

It is a Deprecated Notice that should not harm the site at the moment. It would only affect the functionality of WPML Sticky Links in case you update to the upcoming version of PHP.

We already published an errata and a workaround for this issue here:
https://wpml.org/errata/wpml-sticky-links-deprecated-error-on-php-8-x/

March 30, 2025 at 12:14 am #16875884

Tonbojp

Hello Andreas,

Thank you so much. I will be editing my reviews on trustpilot. Thank you

April 1, 2025 at 3:24 pm #16883706

Andreas W.
Supporter

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

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

You are welcome 🙂