Skip to content Skip to sidebar

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

Problem:
The client is unable to access various WPML settings such as 'switcher options', 'Hide languages', and others due to an E_ERROR in line 335 of the file /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php, caused by an unknown format specifier 'Ù'.
Solution:
We recommend creating a full backup of your website first. Then, follow these steps to identify if the issue is related to a compatibility problem with other plugins or the active theme:
1. Disable all plugins except for WPML and its add-ons.
2. Check if the issue persists.
3. If the issue does not reoccur, reactivate your plugins one by one to identify the problematic plugin.
4. If the issue persists even with non-WPML plugins disabled, switch to a default WordPress theme like TwentySeventeen and check again.
It's advisable to perform these tests in a staging environment if possible.

If these steps do not resolve the issue or if the solution 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.

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 1 reply, has 0 voices.

Last updated by Mihai Apetrei 1 year, 5 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 25, 2024 at 10:09 pm #16442083

reyhanehr

Background of the issue:
I have 'Default flag format' in my website hidden link. I want to solve my problem because I didn't access 'switcher options, Hide languages, Make themes work multilingual, Browser language redirect, SEO Options, Theme and plugins reporting, Language filtering for AJAX operations, WPML love, Translation Feedback, Reset settings'. An error of type E_ERROR was caused in line 335 of the file /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php. Error message: Uncaught ValueError: Unknown format specifier 'Ù' in /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php:335 Stack trace: #0 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php(335): sprintf() #1 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php(119): WPML_LS_Render->post_translations_label() #2 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-admin-ui.php(288): WPML_LS_Render->get_preview() #3 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-admin-ui.php(335): WPML_LS_Admin_UI->get_all_previews() #4 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-admin-ui.php(214): WPML_LS_Admin_UI->get_main_ui_model() #5 /home/decorair/public_html/wp-includes/class-wp-hook.php(324): WPML_LS_Admin_UI->after_languages_url_format_action() #6 /home/decorair/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/decorair/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/languages.php(561): do_action() #9 /home/decorair/public_html/wp-admin/admin.php(293): include('/home/decorair/...') #10 {main}

Symptoms:
An error of type E_ERROR was caused in line 335 of the file /home/decorair/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php. Error message: Uncaught ValueError: Unknown format specifier 'Ù'.

Questions:
How can I access the switcher options and other settings in WPML?
How do I resolve the error related to the unknown format specifier 'Ù'?

November 27, 2024 at 12:22 am #16447127

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and thank you for reaching out.

This could be caused by a compatibility issue between WPML and (at least) one of the active plugins or the currently active theme.

Can you please create a full website backup and let me know if the issue is still happening even when only the WPML plugins are active, and you are using a default WordPress theme?

Please try the following steps so that we can test for a compatibility-related issue:

- create a full website backup

- disable all plugins except WPML and its add-ons

- check if the issue is happening again

- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue

If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated

- switch to a default theme like TwentySeventeen

- try to recreate the issue now

It would be best to do this in a staging (testing) environment if you can.

Please let me know how that goes and if following these steps solved your issue or brought any change.

I will be waiting for your response.

Mihai Apetrei