• Resolved Insect Trojan

    (@insecttrojan)


    hello so wordpress 6.8 make error with _load_textdomain_just_in_time

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the fullwidth-templates 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. (This message was added in version 6.7.0.)

    1. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1371
    2. get_translations_for_domain()
      wp-includes/l10n.php:1409
    3. translate()
      wp-includes/l10n.php:195
    4. esc_html__()
      wp-includes/l10n.php:340
    5. Fullwidth_Page_Templates->__construct()
      wp-content/plugins/fullwidth-templates/class-fullwidth-page-templates.php:21
    6. init_fullwidth_template()
      wp-content/plugins/fullwidth-templates/fullwidth-page-template.php:38
    7. do_action('plugins_loaded')
      wp-includes/plugin.php:517

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @insecttrojan,

    Unfortunately, I am unable to replicate the error on my end. To begin with, can you please make sure you are using the latest version of the plugin? If yes, then kindly share the steps with which it is replicable, and if possible, a screenshot highlighting the error message so that we can debug it on our end.

    Looking forward to it.

    Kind regards,
    Aradhy 😊

    Thread Starter Insect Trojan

    (@insecttrojan)

    when I changed the last int int fixed function init_fullwidth_template() { // Init dynamic header footer new Fullwidth_Page_Templates();}add_action( ‘init’, ‘init_fullwidth_template’ );

    Hi @insecttrojan,

    I am still not sure, maybe it will be better if you can reach out to us through our Support Portal, so we can have a closer look at your site. Also, we respond faster there.

    Once you open a ticket, please mark this thread as Resolved.

    Kind regards,
    Aradhy 😊

    Aradhy Singh

    (@bsfaradhy)

    Hi @insecttrojan,

    It’s been a while since I posted my response, and we haven’t heard from you since then. I assume that you have fixed this or have reached out to us.

    I am marking this thread as Resolved due to inactivity. Feel free to start a new thread if there’s anything else related to this plugin, we can help you with.

    Kind regards,
    Aradhy 😊

    I had the same issue. You probably couldn’t replicate it bc WP-debug has to be running to see.

    I had to edit the plugin directly, so you may want to change it in the next release. The solution is, in fullwidth-page-template.php change:

    function init_fullwidth_template() {
    load_plugin_textdomain( 'fullwidth-templates' );
    new Fullwidth_Page_Templates();
    }
    add_action( 'plugins_loaded', 'init_fullwidth_template' );

    to

    function init_fullwidth_template_proper() {
    // Load translations after init, as required by WP 6.7+
    add_action( 'init', function() {
    load_plugin_textdomain(
    'fullwidth-templates',
    false,
    dirname( plugin_basename( __FILE__ ) ) . '/languages'
    );
    });

    // Delay the plugin class instantiation too
    add_action( 'init', function() {
    new Fullwidth_Page_Templates();
    });
    }
    add_action( 'after_setup_theme', 'init_fullwidth_template_proper' );

    ChatGPT admittedly helped.

    Let me know if you update this, because otherwise I am not updating / am using my overwrite. THANK YOU!

    Hi @nathanielstern,

    I can see that you have also raised a ticket with us and the issue is resolved now with the recent update. Don’t hesitate to open a new thread if there’s anything else we can assist you with.

    Kind regards,
    Aradhy 😊

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WordPress 6.8 Update Issues’ is closed to new replies.