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 |
|---|---|---|---|---|---|---|
| - | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
| - | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: Exception
This topic contains 58 replies, has 2 voices.
Last updated by Andreas W. 5 months, 2 weeks ago.
Assisted by: Andreas W..
| Author | Posts |
|---|---|
| September 24, 2025 at 7:33 am #17427638 | |
|
rhettY |
The server logged following error: 2025-09-24 15:10:56.208486 [NOTICE] [3424550] [T0] [127.0.0.1:50276>51.92.242.224#APVH_www.antzracing.com:443] [STDERR] PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:85\nStack trace:\n#0 /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(845): WPML_Translation_Element->get_translation()\n#1 /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(778): WPML_Media_Attachments_Duplication->get_translated_attachment_id()\n#2 /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(795): WPML_Media_Attachments_Duplication->{closure}()\n#3 /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(800): WPML_Media_Attachments_Duplication->{closure}()\n#4 /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(754): WPML_Media_Attachments_Duplication->translate_bricks_media()\n#5 /home/admin/domains/antzracing.com/public_html/wp-includes/class-wp-hook.php(324): WPML_Media_Attachments_Duplication->maybe_translate_medias_in_posts()\n#6 /home/admin/domains/antzracing.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#7 /home/admin/domains/antzracing.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#8 /home/admin/domains/antzracing.com/public_html/wp-includes/load.php(1304): do_action()\n#9 [internal function]: shutdown_action_hook()\n#10 {main}\n thrown in /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/c |
| September 24, 2025 at 4:05 pm #17429768 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I connected to your site, enabled WP DEBUG, edited the original homepage and the Cookies Policy UK page, and reapplied the translation. No error was recorded. Also, syncing the media inside WPML's settings did not trigger any error. Can you please confirm if new errors appeared today in your server's error.log? Do you have an example of content on which the error occurs? |
| September 24, 2025 at 4:29 pm #17429899 | |
|
rhettY |
I didn't notice error at present. The error didn't keep poping up in the error.log. This PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. happens now and then. The "Api error missing resource: No sitekey found for this website" error was logged since Sept 10 in the log. Recently it happened every day since 21 to 24. |
| September 25, 2025 at 5:35 am #17430543 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
It seems you changed the user role for the provided user account from "Admin" to "Subscriber" and I can no longer access the entire backend. Is the Advanced Translation Editor working on your site? Do you have issues with using automatic translations? If you need further assistance, please set the user role back to "Admin" and leave me a comment once you are done with this task. |
| September 25, 2025 at 6:11 am #17430576 | |
|
rhettY |
Sorry, I thought you don't need it. I've changed it to "admin". Please check. Advanced Translation Editor is working. I didn't use Automatic Translation recently. At the beginning it worked, but I found the quality was not good, so I changed to translate manually. |
| September 25, 2025 at 6:56 am #17430701 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Currently, there is a Fatal Error when trying to reach hidden link. I tried to connect by FTP/SFTP to find out more about the error, but the connection failed: I sueggste you enable WP DEBUG inside the file wp-config.php to fid out more about the cause of this error. Guide: |
| September 25, 2025 at 6:57 am #17430704 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Also, please try to connect to your server and rename the folder "sitepress-multilingual-cms" which will deactivate WPML. If this solves the Fatal Error on /wp-admin please let me know. |
| September 25, 2025 at 7:08 am #17430772 | |
|
rhettY |
You might need to access using IP, as at present cloudflare CDN is working. I've set up debug: |
| September 25, 2025 at 7:21 am #17430820 | |
|
rhettY |
Renamed "sitepress-multilingual-cms" to "sitepress-multilingual-cms-bak" It caused all the plugins are deactivated. Please check |
| September 25, 2025 at 7:55 am #17431037 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The site is running again. Do you have any idea what was causing the fatal error on the site? Did you maybe run some updates or make changes inside the Child Theme? I have tested the Advanced Translation Editor successfully. I am not sure why you received those errors, but at the moment, I can not confirm them. I suggest you reach out to us if one of those errors occurs again. |
| September 25, 2025 at 8:27 am #17431152 | |
|
rhettY |
Ok. I will check if it occurs again |
| September 25, 2025 at 8:33 am #17431222 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you! I will be awaiting your response. |
| September 28, 2025 at 3:21 pm #17439093 | |
|
rhettY |
Just checked debug log. 2 issues still happens: 2025/09/27 3:38:56 PMApi error missing resource: No sitekey found for this website [28-Sep-2025 11:01:18 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home/admin/domains/antzracing.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:85 |
| October 1, 2025 at 2:13 pm #17449136 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I can sadly no longer connect to your site and would like to ask you to provide admin access again. It would be even better if you could set up a staging site on which I could troubleshoot the issue. If you can not provide access to a staging site, I can offer to take a local copy of the site and test it on a virtual server, without affecting your production site. The private reply form is enabled again. |
| October 2, 2025 at 3:59 pm #17452579 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The last entry inside the debug.log was from 29-Sep-2025. I ran a few tests with updating original content and translations for different post types, but I was not able to trigger the error. Can you please try to replicate the errors on the staging site and let me know what you did to trigger them? |
The topic ‘[Closed] PHP Fatal error: Uncaught InvalidArgumentException:’ is closed to new replies.