Home›Support›English Support›[Resolved] My site had a critical error / Function _load_textdomain_just_in_time was called incorrectly.
[Resolved] My site had a critical error / Function _load_textdomain_just_in_time was called incorrectly.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to access their site due to a critical error. The error message indicated that the function
_load_textdomain_just_in_time
was called incorrectly, affecting the WooCommerce Quickpay and WooCommerce domains. Solution: For the issue with the function
_load_textdomain_just_in_time
, we recommend updating the WooCommerce Quickpay plugin to the latest version. If an update is not available, contact the plugin author for a potential solution. More information on this error can be found here: WPML Errata.
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 issue persists, do not hesitate to 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.
Background of the issue:
I was trying to access my site, but it encountered a critical error. The error message indicated that the function _load_textdomain_just_in_time was called incorrectly. The issue can be seen on the page: hidden link.
Symptoms:
I received a notice that the function _load_textdomain_just_in_time was called incorrectly, indicating that translation loading for the woo-quickpay and woocommerce domains was triggered too early. Additionally, there was a fatal error: Uncaught Error: Class "WPSEO_Sitemap_Image_Parser" not found in the WPML plugin files.
Questions:
How can I resolve the critical error related to the function _load_textdomain_just_in_time?
What steps should I take to fix the fatal error regarding the missing class WPSEO_Sitemap_Image_Parser?
If not yet the case, make sure to have the latest updates already installed, including not only WPML but also related plugins (such as Elementor, WooCommerce, etc).d
Please do the above and let us know if the issue is still happening.
Also, for this fatal error, can you remove that plugin from your website and install it anew from https://wpml.org/account/downloads/? Because it is possible that during some of the latest updates, not all of its files got updated properly.
I received a notice that the function _load_textdomain_just_in_time was called incorrectly, indicating that translation loading for the woo-quickpay and woocommerce domains was triggered too early.
This notice concerns the WooCommerce Quickpay plugin. You need to update the plugin to the latest version. If updates are not available, check with the plugin author to see if he has a solution to this notice.
Additionally, there was a fatal error: Uncaught Error: Class "WPSEO_Sitemap_Image_Parser" not found in the WPML plugin files.
Can you share the full content of the fatal error? Additionally, please upload any relevant screenshots or links that would help illustrate the problem.
I was able to get the site back online by disabling the Yoast plugin. Now I don't think the wpml plugin is causing an issue:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woo-quickpay 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 /var/www/vhosts/wift.nu/httpdocs/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce 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 /var/www/vhosts/wift.nu/httpdocs/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rocket 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 /var/www/vhosts/wift.nu/httpdocs/wp-includes/functions.php on line 6121
You need to check if you are using the latest version of the Yoast plugin. If the fatal error still occurs, I need to see its entire content to understand where it comes from.
The notices are harmless to your website. Each notice indicates the name of the triggering plugin.
this was the initial error on the front end after I updated the yoast plugin. I am switching to rank math so disabled it.
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woo-quickpay 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 /var/www/vhosts/wift.nu/httpdocs/wp-includes/functions.php on line 6121
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce 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 /var/www/vhosts/wift.nu/httpdocs/wp-includes/functions.php on line 6121