Skip Navigation

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

Problem:
You are experiencing an issue when switching from English to French on your website, receiving an error message indicating that the translation loading for the health-check domain was triggered too early. This suggests that some code in a plugin or theme is running prematurely.
Solution:
We recommend ensuring that all your plugins, especially the one mentioned in the error message, are updated to their latest versions. You can check for updates in the 'Plugins → Add New Plugin → Commercial' tab by clicking the 'Check for updates' button. Additionally, updating the WPML plugin to the latest version, which is 4.7.1, might help as it includes the latest bug fixes and improvements. For detailed instructions on updating WPML, please visit http://wpml.org/faq/install-wpml/.
For more information on this specific error, you can visit https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 further assistance is needed, please open a new support ticket at WPML support forum.

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 Andrey 4 weeks ago.

Assisted by: Andrey.

Author Posts
March 14, 2025 at 5:56 pm #16818221

matthewN-15

Background of the issue:
I am trying to switch from English to French on my website, and I encountered an issue. The problem occurs when I switch languages or load the French version. URL: hidden link

Symptoms:
I am getting the error message: 'Translation loading for the health-check domain was triggered too early'. Additionally, there is a notice: 'Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the health-check domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/wcwc/public_html/wp-includes/functions.php on line 6114'.

Questions:
How can I resolve the error message when switching languages?
What steps should I take to ensure translations are loaded correctly?

March 14, 2025 at 9:09 pm #16818581

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

This error was introduced with recent changes in WordPress. It likely refers to a specific plugin in the error message. Please make sure that you have updated that plugin to the latest version.

For more information, please visit the following link: https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

The latest version of the WPML plugin and its add-ons, version 4.7.1, is now available. Updating to this version offers the benefits of the latest bug fixes and improvements. While this update may not directly resolve your issue, it provides the most up-to-date code for effective troubleshooting.

The latest versions are released under "My Account → Downloads" on this site. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.

If you do not see the updates, please click the "Check for updates" button in the Plugins → Add New Plugin → Commercial tab.