Load_plugin_textdomain() warning due to changes introduced in WordPress 6.7+

26 replies3 participantsUpdated by Andrew Mitchell

  • Avatar: Eugene_Shek
    Eugene Shek
    Participant

    load_plugin_textdomain() warning due to changes introduced in WordPress 6.7+

    26 Answers

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    We’re encountering the following warning in our WordPress installation:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the legenda 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.)

    Stack trace:
    – _load_textdomain_just_in_time() – wp-includes/l10n.php:1378
    – get_translations_for_domain() – wp-includes/l10n.php:1408
    – translate() – wp-includes/l10n.php:194
    – __() – wp-includes/l10n.php:306

    It appears that translation functions are being called before the init hook, which is not recommended as of WordPress 6.7.0. This is likely due to a plugin or theme (possibly related to the “legenda” text domain) initializing translations too early in the loading process.

    Avatar: Alex Carter
    Alex Carter
    Support staff

    Hello,

    Thank you for reaching out to us.

    Could you please provide temporary wp-admin and FTP access? We will check what can be done to help you.
    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Alternatively, you can open your wp-config.php file and set:
    define( 'WP_DEBUG', false );
    This will hide the notices from the public.

    Warm Regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Could you please check on the staging site?

    Below is the login access

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    Unfortunately, we are unable to access your staging site, as we are consistently receiving an “Access Denied” message.

    Best regards,
    The 8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    What is your IP address?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,
    The IP address has been added to the private content.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hi

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    Unfortunately, the restriction is still in effect.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hello

    Please contact administrator
    for this information.
    Avatar: Alex Carter
    Alex Carter
    Support staff

    Hello,

    https://prnt.sc/_6Nx4p2Wp7yh
    and https://prnt.sc/mUM-hzEqqJOp

    We kindly request that you disable the restriction for users in Ukraine and let us know.

    Warm Regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hi

    Could you please try again? Thank you

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    We have attempted to access the service from different IP addresses and various countries; however, it still does not work. It appears that the issue may not be related to IP blocking, but rather that access is permitted only for a specific IP address.

    We kindly ask you to review the settings on your end.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Should I also disable the restriction on the main site?

    I have currently only disabled the restriction on the staging site.

    Please check

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    We have resolved the issue. Kindly check and confirm. The changes have been made in the following files:

    framework/init.php
    framework/theme-functions.php

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    would you please let me know how to update it? i would like to update it on the main site or will you fix the bug on the new version of the theme plugin?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    The fixes for this issue have already been included in the latest versions of the theme and plugin. You can download them from the “Downloads” section on our website.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Thank you

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hi i installed the Version 1.3.3 on the main site

    However, the error code is still existing

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the legenda 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.)

    _load_textdomain_just_in_time()
    wp-includes/l10n.php:1378
    get_translations_for_domain()
    wp-includes/l10n.php:1408
    translate()
    wp-includes/l10n.php:194
    __()
    wp-includes/l10n.php:306

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    HI Team

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    At the moment, the current version of the theme is 4.5.3. Kindly ensure that you install this version instead of 1.3.3.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hi

    I found out a PHP warning in the Legenda Core plugin related to an undefined variable. Below are the details:

    Warning: Undefined variable $product_image_gallery
    File: wp-content/plugins/legenda-core/inc/functions.php on line 90
    Function: et_woocommerce_product_video_box()

    wp-admin/includes/template.php:1456 – do_meta_boxes()
    wp-admin/edit-form-advanced.php:715

    Could you please advise on how to resolve this or let me know if a patch/update is available?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    We would like to inform you that the reported issue has been resolved. Additionally, we have ensured compatibility with the latest version of WooCommerce. You will find an archive containing the necessary fixes – please refer to the private content section for the download link.

    Furthermore, we are planning to release an official update in the near future.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    Hi i updated the latest version that download from the link

    However, I’ve encountered an issue related to the search-results.php page template, which appears to be causing performance problems or unexpected behavior.

    SELECT ToMkqkTAposts.*
    FROM ToMkqkTAposts
    INNER JOIN ToMkqkTApostmeta
    ON (ToMkqkTAposts.ID = ToMkqkTApostmeta.post_id)
    WHERE ToMkqkTApostmeta.meta_key = ‘_wp_page_template’
    AND ToMkqkTApostmeta.meta_value = ‘search-results.php’
    AND ToMkqkTAposts.post_type = ‘page’
    AND ToMkqkTAposts.post_status = ‘publish’
    GROUP BY ToMkqkTAposts.ID
    ORDER BY ToMkqkTAposts.post_title ASC

    There are also references to internal functions like etheme_tpl2id and etheme_search in the call stack, which I believe are part of your theme or a related plugin.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    This request is necessary in order to separate the search results for posts, portfolio items, and products.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant

    I downloaded the latest version (4.5.4) of the Legend theme, but it shows ‘Plugin installation failed’. And the below issue still happens on the product page

    Warning: Undefined variable $product_image_gallery
    File: wp-content/plugins/legenda-core/inc/functions.php on line 90
    Function: et_woocommerce_product_video_box()

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Eugene Shek,

    Greetings! Since the issue is not related to the theme files but rather to the plugin, we kindly recommend updating the plugin – Legenda Core v1.3.4. You can find the details in the attached screenshot.

    Best regards,
    The 8Theme Team

    Files is visible for topic creator and
    support staff only.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register