Thread Starter
UMBC
(@umbc)
Wondering if full error message might be useful.
[13-Feb-2025 17:04:26 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the visualizer 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. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Plugin Support
Kush
(@kushnamdev)
Hi @umbc,
Could you please confirm if you are using the latest version of visualizer as I am unable to replicate this issue on my test site with new wordpress and latest plugin version.
I am looking forward to your reply, thank you!
Plugin Support
Kush
(@kushnamdev)
Please use v3.11.9 as it is the latest version.
Thread Starter
UMBC
(@umbc)
Thank you! I hvae updated to 3.11.9 – i am using WP Query Monitor and while I can’t upload a screenshot here I will copy from that – this is in the “Doing it Wrong” tab.
Message Caller Component
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the visualizer 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()
Plugin: visualizer
Total: 1
when I expand loadtextdomainjust in time I see this stuff mentioned:
_load_textdomain_just_in_time()
wp-includes/l10n.php:1370
get_translations_for_domain()
wp-includes/l10n.php:1408
translate()
wp-includes/l10n.php:194
__()
wp-includes/l10n.php:306
Visualizer_Module_Setup->custom_cron_schedules()
wp-content/plugins/visualizer/classes/Visualizer/Module/Setup.php:467
apply_filters('cron_schedules')
wp-includes/plugin.php:205
wp_get_schedules()
wp-includes/cron.php:1116
I am wondering if it has to do with CRON – i’m using Pantehon as a host and it doesn’t allow for use of regular WP Cron
Hi,
It is possible to be related to that. You can try to see if you can replicate a similar issue on https://tastewp.com/ instance, as we can’t replicate this.
Thread Starter
UMBC
(@umbc)
Thank you I have verified that it’s related to CRON – is there some way I can disable Visualizer CRON calls?
Hi,
That might not be the best idea, as it could break the plugin functionality.(e.g., charts might stop updating automatically if they rely on fetching remote data).
As the issue is just that notice, what you can try instead is just disabling the WP_DEBUG constant on your WP site, as keeping that enabled on a production site is not really recommended https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/
Hope this helps.
Kind regards,