• Resolved mikethome

    (@mikethome)


    [24-Apr-2025 17:45:21 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ns-cloner-pro 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/html/wp-includes/functions.php on line 6114

    WordPress 6.7.0

    chatGPT suggested fix:

    How to fix it:

    If you’re a plugin developer or modifying the plugin:

    1. Find where load_plugin_textdomain() (or similar) is called.
    2. Ensure it’s wrapped in a function that’s hooked to init or 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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Error – _load_textdomain_just_in_time called’ is closed to new replies.