Function _load_textdomain_just_in_time was called incorrectly.
-
Since WordPress 6.7 a lot of plugins provoke this message and the “Product quantity for WooCommerce” plugin is among them. Full message that gets logged:
[23-Nov-2024 10:43:31 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
product-quantity-for-woocommerce
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 theinit
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
[23-Nov-2024 10:43:31 UTC] PHP Stack trace:
[23-Nov-2024 10:43:31 UTC] PHP 1. {main}() …\wp-admin\admin-ajax.php:0
[23-Nov-2024 10:43:31 UTC] PHP 2. require_once() …\wp-admin\admin-ajax.php:22
[23-Nov-2024 10:43:31 UTC] PHP 3. require_once() …\wp-load.php:50
[23-Nov-2024 10:43:31 UTC] PHP 4. require_once() …\wp-config.php:108
[23-Nov-2024 10:43:31 UTC] PHP 5. do_action($hook_name = ‘plugins_loaded’) …\wp-settings.php:559
[23-Nov-2024 10:43:31 UTC] PHP 6. WP_Hook->do_action($args = [0 => ”]) …\wp-includes\plugin.php:517
[23-Nov-2024 10:43:31 UTC] PHP 7. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) …\wp-includes\class-wp-hook.php:348
[23-Nov-2024 10:43:31 UTC] PHP 8. alg_wc_pq(”) …\wp-includes\class-wp-hook.php:324
[23-Nov-2024 10:43:31 UTC] PHP 9. Alg_WC_PQ::instance() …\wp-content\plugins\product-quantity-for-woocommerce\product-quantity-for-woocommerce.php:353
[23-Nov-2024 10:43:31 UTC] PHP 10. Alg_WC_PQ->construct() …\wp-content\plugins\product-quantity-for-woocommerce\product-quantity-for-woocommerce.php:111 [23-Nov-2024 10:43:31 UTC] PHP 11. Alg_WC_PQ->admin() …\wp-content\plugins\product-quantity-for-woocommerce\product-quantity-for-woocommerce.php:149 [23-Nov-2024 10:43:31 UTC] PHP 12. Alg_WC_PQ->move_wc_settings_tab_to_wpfactory_menu() …\wp-content\plugins\product-quantity-for-woocommerce\product-quantity-for-woocommerce.php:197 [23-Nov-2024 10:43:31 UTC] PHP 13. ($text = ‘Product Quantity’, $domain = ‘product-quantity-for-woocommerce’) …\wp-content\plugins\product-quantity-for-woocommerce\product-quantity-for-woocommerce.php:290
[23-Nov-2024 10:43:31 UTC] PHP 14. translate($text = ‘Product Quantity’, $domain = ‘product-quantity-for-woocommerce’) …\wp-includes\l10n.php:306
[23-Nov-2024 10:43:31 UTC] PHP 15. get_translations_for_domain($domain = ‘product-quantity-for-woocommerce’) …\wp-includes\l10n.php:194
[23-Nov-2024 10:43:31 UTC] PHP 16. _load_textdomain_just_in_time($domain = ‘product-quantity-for-woocommerce’) …\wp-includes\l10n.php:1408
[23-Nov-2024 10:43:31 UTC] PHP 17. _doing_it_wrong($function_name = ‘_load_textdomain_just_in_time’, $message = ‘Translation loading for theproduct-quantity-for-woocommerce
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 theinit
action or later.’, $version = ‘6.7.0’) …\wp-includes\l10n.php:1378
[23-Nov-2024 10:43:31 UTC] PHP 18. wp_trigger_error($function_name = ”, $message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for theproduct-quantity-for-woocommerce
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 theinit
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)’, $error_level = uninitialized) …\wp-includes\functions.php:6054
[23-Nov-2024 10:43:31 UTC] PHP 19. trigger_error($message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for theproduct-quantity-for-woocommerce
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 theinit
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)’, $error_level = 1024) …\wp-includes\functions.php:6114
- You must be logged in to reply to this topic.