This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing an error on your Arabic site, it might be due to an incorrect translation of a specific string in the Elementor plugin. Solution: We recommend you try the following steps: 1. Navigate to WPML → String Translation. 2. Search for the string "All (%s)", "example%s" or some similar string that contains the placeholder. 3. Check the Arabic translation. Ensure that the placeholder %s is included exactly as in the original string. If it's missing or altered, it could be causing the error. 4. Update the translation to correctly include the %s placeholder.
This solution might be irrelevant if it's outdated or not applicable 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 issue persists, 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.
Background of the issue:
I translated the site using WPML. The English site works fine, but the Arabic site gives an error. When I use PHP 7.4, it works fine for both English and Arabic, but when I use PHP 8.2, the Arabic site breaks.
Symptoms:
The Arabic version of the site gives an error when using PHP 8.2.
Questions:
Why does the Arabic site break when using PHP 8.2?
How can I fix the error on the Arabic site when using PHP 8.2?
I need more details about the fatal error in order to suggest possible solutions.
As a first step, please enable debugging by adding the following lines to your site’s wp-config.php file. This will allow us to identify the exact issue:
Once enabled, any errors will be logged to a debug.log file located in the /wp-content/ directory. Please check this file and share the relevant error messages, so I can assist you further.
It appears that the issue may originate from the Elementor plugin, but it’s likely related to an incorrect translation of a specific string.
Please try the following steps to verify and correct the issue:
1. Go to WPML → String Translation.
2. Search for the string “All (%s)”.
3. Check the Arabic translation. If the placeholder %s is missing or altered, it may be triggering the error in the Elementor plugin.
4. Update the translation to ensure it includes the %s placeholder exactly as in the original string.
I’ve attached a screenshot for your reference. Let me know how it goes.
I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.
thank yoiu so much for your great help
I used chatgpt and i fixed the site
it was from automatic translation
for example%s is translated into %س
which shouldn't not be translate
That was the error
its a bug in wpml , please fix hidden link
thanks a million time