Skip Navigation

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

Problem:
The client was seeing a Fatal error after installing the WPML plugins.

Solution:
This issue usually happens when there is something wrong in the database during installation. If it’s a new site with no translated content, you can reset WPML and set it up again.

To do so:

- Please take a backup of your site and go to WPML >> Support >> Troubleshooting (the link is at the bottom of the support page). >> There, click on “Reset and deactivate WPML” >> then Delete the plugin.

- After deleting all WPML data and WPML-related plugins then please install WPML plugins again and I hope now you will not face any issues.

Relevant Documentation:
https://wpml.org/faq/how-wpml-reset-works/

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 3 replies, has 2 voices.

Last updated by Amr Abdel Wahab 1 year, 10 months ago.

Assisted by: Noman.

Author Posts
April 30, 2023 at 10:14 am #13562335

Amr Abdel Wahab

I am trying to: install wpml

Link to a page where the issue can be seen:

I expected to see:

Instead, I got: Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:80 Stack trace: #0 /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(106): WPML_Translation_Element->get_translation(false) #1 /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-settings.php(397): WPML\FP\Just->map(Array) #2 /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-settings.php(407): WPML_LS_Settings->{closure}(false) #3 /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-render.php(144): WPML_LS_Settings->get_menu_settings_from_id(2) #4 /home2/systemna/public_html/casa/wp-includes/class-wp-hook.php(310): WPML_LS_Render-> in /home2/systemna/public_html/casa/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 80

April 30, 2023 at 10:58 am #13562421

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. It seems something went wrong during the WPML installation. If it’s a new site with no translated content, you can reset WPML and set it up again.

To do so:

=== Please backup your database and website ===

- Please go to WPML >> Support >> Troubleshooting (the link is at the bottom of the support page). >> There, click on “Reset and deactivate WPML” >> then Delete the plugin.

- After deleting all WPML data and WPML-related plugins then please install WPML plugins again and I hope now you will not face any issues.

Here is the doc for more details:
https://wpml.org/faq/how-wpml-reset-works/

If still an issue persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Please let me know if this resolves your issue or if you need further assistance.

Thank you

April 30, 2023 at 11:01 am #13562429

Amr Abdel Wahab

i did it , but still have the same problem

do you need access to check it by ur self?