Problem: If you're experiencing a critical error when enabling the Arabic language on your website, it might be due to an incorrect placeholder in the translation of a string. This issue was specifically identified with the Elementor string 'All %s' where the Arabic translation incorrectly replaced the placeholder with an Arabic letter, causing a fatal error in PHP 8.2. Solution: We recommend checking the translation of problematic strings in WPML → String Translation. For the specific case of the 'All %s' string, ensure that the placeholder %s remains unchanged in the translation. Correcting it to a Latin “s” resolved the issue, and the Arabic version loaded correctly. Additionally, ensure there are no conflicts with an existing /ar path by checking your server's root directory for an /ar folder and ensuring no custom rewrite rules or pages reserve that slug. Remember to flush your permalinks by going to Settings → Permalinks → Save.
This solution might be 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 problem persists, please open a new support ticket.