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

This topic has 27 replies, 3 voices, and was last updated 17 minutes ago ago by Andrew Mitchell

  • Avatar: Eugene_Shek
    Eugene Shek
    Participant
    July 3, 2025 at 15:55

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

    26 Answers
    Avatar: Eugene_Shek
    Eugene Shek
    Participant
    July 3, 2025 at 16:11

    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
    July 4, 2025 at 06:53

    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
    July 7, 2025 at 16:15

    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
    July 8, 2025 at 10:16

    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
    July 8, 2025 at 17:00

    What is your IP address?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 9, 2025 at 10:01

    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
    July 10, 2025 at 17:12

    Hi

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 11, 2025 at 07:18

    Hello, Eugene Shek,

    Unfortunately, the restriction is still in effect.

    Best regards,
    The 8Theme Team

    Avatar: Eugene_Shek
    Eugene Shek
    Participant
    July 11, 2025 at 16:00

    Hello

    Please contact administrator
    for this information.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    July 14, 2025 at 14:19

    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
    July 14, 2025 at 17:06

    Hi

    Could you please try again? Thank you

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 15, 2025 at 13:23

    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
    July 15, 2025 at 16:30

    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
    July 16, 2025 at 14:33

    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
    July 16, 2025 at 16:37

    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
    July 17, 2025 at 11:08

    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
    July 17, 2025 at 17:32

    Thank you

    Avatar: Eugene_Shek
    Eugene Shek
    Participant
    July 18, 2025 at 22:02

    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
    July 18, 2025 at 23:18

    HI Team

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 22, 2025 at 12:25

    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
    August 4, 2025 at 22:19

    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
    August 5, 2025 at 13:59

    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

    Content is visible for topic creator and
    support staff only.
    Avatar: Eugene_Shek
    Eugene Shek
    Participant
    August 5, 2025 at 17:36

    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
    August 6, 2025 at 08:03

    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
    August 12, 2025 at 17:04

    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()

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 13, 2025 at 07:45

    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.
  • Viewing 27 results - 1 through 27 (of 27 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.