L’errore è un Notice e si vede solo se il sito è impostato per mostrare tutti gli errori. Tipicamente si tratta di un sito di sviluppo altrimenti le Notice non vengono esposte. Questo particolare avviso viene mostrato da alcune versioni recenti di WP e riguarda numerosi temi e plugins.
Da ciò che si comprende la funzione ” _load_textdomain_just_in_time ” legge ” textdomain ” del tema o del plugin ed è chiamata automaticamente da WP. Evita successive chiamate del tema o dei plugins per leggere la stessa stringa “textdomain”, che individua il file dove WP deve cercare la traduzione di uno specifico tema o plugin. Insomma è nata per aiutare a velocizzare il caricamento di WP.
Anche se ” _load_textdomain_just_in_time ” fallisce non importa perchè ogni tema o plugin ha (dovrebbe avere) la sua propria chiamata di ” textdomain ” e caricare quindi la traduzione.
Una buona notizia: l’errore menzionato non verrà (non dovrebbe venire) più esposto con le prossime versioni di WP. In locale ho un WordPress 6.8, la prossima versione ora in lavorazione e l’errore notice che riguarda ” _load_textdomain_just_in_time ” non esce più.
Ciao.
ciao,
ho lo stesso problema del thread. Nel sito di Staging (con Debug Attivo) ho questo messaggio:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the td-cloud-library 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 /home/dnwsiupx/public_html/staging/wp-includes/functions.php on line 6121
Ho re-installato l’ultima versione di WordPress 6.8.1 ed il messaggio persiste.
Avevo capito che il problema si sarebbe risolto con la 6.8 di WP.
Potete indicarmi come risolvere questo problema?
Grazie MIlle
Francesco
I understand you’re encountering the _load_textdomain_just_in_time notice after updating to WordPress 6.7. This issue arises when translation files are loaded too early in the plugin or theme lifecycle, typically before the init action. As the notice suggests, translations should be loaded at the init action or later.
Temporary Workaround:
While awaiting an official fix from the plugin or theme developers, you can suppress this notice by disabling WordPress debug mode. To do this:
- Access your
wp-config.php file.
- Locate the line:
define('WP_DEBUG', true);
- Change it to:
define('WP_DEBUG', false);
This change will prevent the notice from displaying on your site. However, it’s important to note that this is a temporary solution, and the underlying issue should be addressed by the plugin or theme developers.
Additional Resources:
For more information and community discussions on this topic, you might find the following thread helpful:
👉 Function _load_textdomain_just_in_time was called incorrectly
Related Tools:
If you’re managing multiple WordPress sites and need a quick way to check UP Scholarship status for students, you might find this tool useful:
Checker up
This tool allows users to check the status by entering their registration number, providing a convenient solution for students.