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.
This topic contains 0 replies, has 1 voice.
Last updated by 1 week, 4 days ago.
Assisted by: Andreas W..