{"id":19018385,"date":"2026-09-12T12:13:43","date_gmt":"2026-09-12T12:13:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-triggering-called-incorrectly-php-notices\/"},"modified":"2026-09-12T12:13:43","modified_gmt":"2026-09-12T12:13:43","slug":"plugin-triggering-called-incorrectly-php-notices","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-triggering-called-incorrectly-php-notices\/","title":{"rendered":"Plugin triggering \u201ccalled incorrectly\u201d PHP notices"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019m getting the following PHP notices in my WordPress debug log:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP Notice: Function _load_textdomain_just_in_time was called incorrectly.\nTranslation loading for the greek-vat-invoices-for-woocommerce domain was triggered too early.\nTranslations should be loaded at the init action or later.\n(This message was added in WordPress 6.7.0.)\n\nPHP Notice: Function woocommerce_register_additional_checkout_field was called incorrectly.\nAdditional checkout fields should be registered on the woocommerce_init action or later.\n(This message was added in WooCommerce 11.0.0.)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These notices are being logged repeatedly and are filling up the debug log.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please check whether the plugin is loading its translations and registering its WooCommerce checkout fields too early? It seems that some of the plugin code may need to be moved to <code>init<\/code> \/ <code>woocommerce_init<\/code> or a later hook.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please let me know if this is a known issue and whether a fix is planned.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-19018385","topic","type-topic","status-publish","hentry","topic-tag-checkout","topic-tag-php-notices","topic-tag-translations"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19018385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19018385\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19018385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}