[Waiting for user confirmation] I have "Default flag format" in my website
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.
WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
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 'Ù'?
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.