The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Notice PHP - Functi...
 
Share:
Notifications
Clear all

Bug Notice PHP - Function _load_textdomain_just_in_time was called incorrectly

6 Posts
5 Users
0 Reactions
495 Views
Posts: 1
Topic starter
(@patricedefago)
New Member
Joined: 4 months ago

Hi,

I have this notice on my client’s website.

WorPress : 6.7.1

wpDiscuz : 7.6.27

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpdiscuz 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.

Thanks.

Website URL
Topic Tags
5 Replies
Asti
Posts: 7913
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

We'll check and get back to you soon.

Reply
Posts: 3
(@tiedjetrading)
New Member
Joined: 8 months ago

Same here, what do you do for this Problem??

PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>wpdiscuz-frontend-moderation</code> 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 <code>init</code> action or later.

Reply
Posts: 1
(@fetchdesigns)
New Member
Joined: 4 days ago

This is still an issue in the latest version WP Discuz v7.6.29.  When I tested, it appears to be caused by the use of `esc_html__` in the `WpdiscuzAddons` class which is too early to be able to correctly handle translations.  Is this going to be fixed anytime soon?

More details can be found here where WordPress advised of this change that was added in WP 6.7... https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7913

@fetchdesigns 

Could you please send the admin login details to infor[at]gvectots.com email address. I'll ask the developers to check the issue for you.

Reply
Posts: 1
(@epikfrost)
New Member
Joined: 1 day ago

Exact same issue here, i replaced the esc_html__ in WpdiscuzAddons but still am getting the errors, i am using query monitor and it is giving me:

 

_load_textdomain_just_in_time()
wp-includes/l10n.php:1371
get_translations_for_domain()
wp-includes/l10n.php:1409
translate()
wp-includes/l10n.php:195
esc_html__()
wp-includes/l10n.php:340
WpdiscuzOptions->initPhrases()
wp-content/plugins/wpdiscuz/options/class.WpdiscuzOptions.php:391
WpdiscuzOptions->__construct()
wp-content/plugins/wpdiscuz/options/class.WpdiscuzOptions.php:63
WpdiscuzCore->__construct()
wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:94
WpdiscuzCore::getInstance()
wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php:194
wpDiscuz()
wp-content/plugins/wpdiscuz/utils/functions.php:8

 

this is currently adding about 5 megs a minute to my error log.

 

Reply
Share: