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
load_plugin_textdomain() warning due to changes introduced in WordPress 6.7+
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.
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
Could you please check on the staging site?
Below is the login access
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
What is your IP address?
Hello, Eugene Shek,
The IP address has been added to the private content.
Best regards,
The 8Theme Team
Hi
Hello, Eugene Shek,
Unfortunately, the restriction is still in effect.
Best regards,
The 8Theme Team
Hello
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
Hi
Could you please try again? Thank you
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
Should I also disable the restriction on the main site?
I have currently only disabled the restriction on the staging site.
Please check
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
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?
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
Thank you
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
HI Team
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
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?
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
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.
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
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()
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
You must be logged in to reply to this topic.Log in/Sign up