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.
Hi,
We'll check and get back to you soon.
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.
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/
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.