
Thanks for this explanation
I have the same issue since the ACF update
[24-Apr-2025 07:59:47 UTC] PHP Notice: La fonction _load_textdomain_just_in_time a été appelée de façon <strong>incorrecte</strong>. Le chargement de la traduction pour le domaine <code>acf</code> a été déclenché trop tôt. Cela indique généralement que du code dans l’extension ou le thème s’exécute trop tôt. Les traductions doivent être chargées au moment de l’action <code>init</code> ou plus tard. Veuillez lire <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Débogage dans WordPress</a> (en) pour plus d’informations. (Ce message a été ajouté à la version 6.7.0.) in /wp-includes/functions.php on line 6121
unfortunatly, making those notices happening on a fully previously functional site because of a pluggin update is really tricky to debug
during dev work, it’s fine to debug, but on production site it’s a real problem : since the warning is sent by /wp-includes/pluggable.php without any other informations in the debug file.
I understand that ACF team feels a little concerned by the situation, and not just claim we are poor devs, since you published a quick fix in 6.4.1 :
Fix - Various translations are no longer called before the WordPress init action hook
Do you have any further advice to track the problem ?
Thanks in advance.
I found this post after googling for the same question.
I almost gave up but found this solution, that answers perfectly the problem : use admin fields order to order the fields in your frontend template
https://support.advancedcustomfields.com/forums/topic/order-of-fields-in-acf-get_fields/