Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 6 replies, has 3 voices.

Last updated by Itamar 1 year, 10 months ago.

Assisted by: Itamar.

Author Posts
July 1, 2024 at 9:35 am #15867290

shuaiW

Background of the issue:
I am try to add German to my website. I finished the installation and selected German during the installation process,after that the website showed:ES GAB EINEN KRITISCHEN FEHLER AUF DEINER WEBSITE.(which means:THERE HAS BEEN A CRITICAL ERROR ON THIS WEBSITE.)

Symptoms:
I am try to add German to my website. I finished the installation and selected German during the installation process,after that the website showed:ES GAB EINEN KRITISCHEN FEHLER AUF DEINER WEBSITE.(which means:THERE HAS BEEN A CRITICAL ERROR ON THIS WEBSITE.)

Questions:
How to fix it?

July 1, 2024 at 9:40 am #15867457

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

That is a general error message and we can't know what is causing the error until we don't dig a bit deeper.

Let us share the steps that you can use to find out more about what is the actual error when you see a general error message like that one.

We can enable the WordPress debug log and recreate the issue to see if we are getting a longer error message that is more specific.

This will allow us to see if any PHP errors are being produced.

In order to do that, we can edit the wp-config.php file inside our WordPress directory and insert the following lines:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Now, we can try to reproduce the issue once again.

We should now be able to locate the debug log in: /wp-content/debug.log

Paste the content (if any) on a site like pastebin.com and then share the link with us (only you and us will see the URL you are sharing, it is automatically hidden for anyone else).

Relevant Documentation:
https://codex.wordpress.org/Debugging_in_WordPress

Please let us know how things go.

Mihai Apetrei

July 1, 2024 at 11:12 am #15868063

shuaiW

I can't find debug.log in the /wp-content directory

July 1, 2024 at 11:25 am #15868142

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'll continue to help you with this issue.

After adding the code to the wp-config.php file and saving it, you must repeat the steps that caused the critical error. Then, you should see the debug.log file in the /wp-content/ folder.

Please try it and share the error with me.

If there is no error, please give me access to your site. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

July 2, 2024 at 3:38 am #15871829

shuaiW

I added the code and saved it. After I enabled the plugin WPML Multilingual CMS in wordpress, the website cannot be accessed (as long as I disable the plugin, the website will return to normal). After that I entered the /wp-content/ folder, I could not find the "debug.log" and search won't find it too, Now how do I let you to access my website?Just need the URL?

July 2, 2024 at 4:08 am #15871949

shuaiW

[02-Jul-2024 03:47:46 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home/customer/www/nextpowersolution.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:80

July 2, 2024 at 9:58 am #15874170

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

According to the fatal error you shared with us, you experienced a known issue we had. You can read about it here.

https://wpml.org/errata/php-fatal-error-uncaught-invalidargumentexception-argument-language_code-must-be-a-non-empty-string/

This known issue is fixed with version 4.6.9 and onward. We need to investigate why it still happens on your site.

Please let me access your site and, if needed, take a copy of it. To do so, please allow me to install plugins like Duplicator or All In One Migration. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Thanks,
Itamar.

The topic ‘[Closed] When I installed and activated WPML, the web crashed and front end of my site showed:CRITICAL ERR…’ is closed to new replies.