Function _load_textdomain_just_in_time was called incorrectly

  • Author
    Posts
  • #153019

    Getting this error message and can’t figure out how to update on my own:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bravada 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 /home4/pammerte/public_html/wp-includes/functions.php on line 6121

    Any help would be appreciated. Thanks

    Website: pammerten.com

    #154330

    Still not fixed. There is however a work-around:

    In your wp-content/mu-plugins directory, create a file named disable-wp-textdomain-error.php
    With this content:

    
    <?php
    /**
     * Plugin Name: Disable Textdomain Error
     * Description: Prevents triggering errors for the '_load_textdomain_just_in_time' function.
     * Author: Kowsar Hossain
     * Version: 1.0
     *
     * Note: This is a Must-Use (MU) plugin. Place this file in the 'wp-content/mu-plugins' directory.
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
        exit; // Exit if accessed directly.
    }
    
    add_filter( 'doing_it_wrong_trigger_error', function( $status, $function_name ) {
        if ( '_load_textdomain_just_in_time' === $function_name ) {
            return false;
        }
        return $status;
    }, 10, 2 );
    

    This is a ‘hack’ to stop wordpress from throwing the error. It might get you by until Cryout fixes their problem – if they ever do.

Viewing 2 posts - 1 through 2 (of 2 total)

You need to log in to reply to this topic.