Doing It Wrong Message: Error After Update Latest Version
-
Hi Xendit team,
The latest version of Xendit logs a lot of error messages in my debug log. After updating the Xendit v5.0.5, WooCommerce v8.6.1, and WordPress 6.4.3 PHP 8.1 plugin the debug log is filled with error messages like the following.
[05-Mar-2024 04:38:28 UTC] get_cart was called incorrectly. Get cart should not be called before the wp_loaded action. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->__construct, Automattic\WooCommerce\Blocks\BlockTypes\Cart->initialize, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->initialize, Automattic\WooCommerce\Blocks\BlockTypes\Cart->register_block_type_assets, Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->register_block_type_assets, Automattic\WooCommerce\Blocks\Assets\Api->register_script, apply_filters('woocommerce_blocks_register_script_dependencies'), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_dependencies, Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_active_payment_method_script_dependencies, Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType->get_payment_method_script_handles_for_admin, WC_Xendit_Blocks->get_payment_method_script_handles, WC_Xendit_Blocks->localize_wc_blocks_data, WC_Xendit_Blocks->get_payment_method_data, WC_Payment_Gateways->get_available_payment_gateways, apply_filters('woocommerce_available_payment_gateways'), WP_Hook->apply_filters, Alg_WC_PGPP_Core->filter_available_payment_gateways_per_category, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
I hope the Xendit team fixes and updates so that our debug log files are not full for these notes.
Note: When the Xendit plugin is disabled or deactivated, this message disappears from the error log.
Thank You
- The topic ‘Doing It Wrong Message: Error After Update Latest Version’ is closed to new replies.