Skip Navigation

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

Problem:
You are encountering an error related to the load textdomain function, specifically with the message: Notice: Function _load_textdomain_just_in_time was called incorrectly. This issue appears only in the FR and ES languages and is linked to the Favorites plugin, which your theme requires.
Solution:
This error is due to recent changes in WordPress. We recommend ensuring that the Favorites plugin is updated to the latest version to resolve this issue. For more detailed information, please visit the following link: WPML Errata on PHP Error in WP 6.7.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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 0 voices.

Last updated by Andrey 2 weeks ago.

Assisted by: Andrey.

Author Posts
March 14, 2025 at 2:34 pm #16817363

Romeu Costa

Background of the issue:
I am trying to resolve an error related to the load textdomain function. I have some plugins with the error: Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the favorites 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. I disabled the plugin Favorites and the error is gone, but my theme needs this plugin. The error only shows in FR and ES. The PT, EN, and DE are working fine.

Symptoms:
Error message: Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the favorites domain was triggered too early.

Questions:
How can I resolve the load textdomain error without disabling the Favorites plugin?
Why does the error only appear in FR and ES languages and not in PT, EN, and DE?

March 14, 2025 at 8:59 pm #16818575

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/

March 18, 2025 at 2:34 pm #16830973

Romeu Costa

OK, I already open a ticket in plugin Favorites - https://wordpress.org/support/plugin/favorites/.
I don't understand why I have the plugin updated (version 2.3.5) and the last update is three weeks ago. This error exists since WordPress 6.7.

March 18, 2025 at 9:55 pm #16832647

Andrey
Supporter

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

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

Thank you for the update. If they keep maintaining their plugin, they can fix this issue. If not, consider replacing it with a plugin with similar functionality.

Have a nice week!