Error – _load_textdomain_just_in_time called
-
[24-Apr-2025 17:45:21 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
ns-cloner-prodomain 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 theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114WordPress 6.7.0
chatGPT suggested fix:
How to fix it:
If you’re a plugin developer or modifying the plugin:
- Find where
load_plugin_textdomain()(or similar) is called. - Ensure it’s wrapped in a function that’s hooked to
initor a later hook.
Example fix:
function ns_cloner_pro_load_textdomain() { load_plugin_textdomain( 'ns-cloner-pro', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } add_action( 'init', 'ns_cloner_pro_load_textdomain' );Would be great to have this fixed on the next update. Currently running Version: 4.4.3
- Find where
The topic ‘Error – _load_textdomain_just_in_time called’ is closed to new replies.