get_cart was called incorrectly
-
Плагин вызывает ошибку: get_cart was called incorrectly. Функция получения корзины не должна вызываться раньше чем wp_loaded. This message was added in version 2.3.
wc_doing_it_wrong()wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:120
WC_Cart->get_cart()wp-content/plugins/woocommerce/includes/class-wc-cart.php:603
WC_Deposits_Cart_Manager->has_deposit()wp-content/plugins/woocommerce-deposits/includes/class-wc-deposits-cart-manager.php:211
WC_Deposits_Cart_Manager->disable_gateways()wp-content/plugins/woocommerce-deposits/includes/class-wc-deposits-cart-manager.php:1599
apply_filters('woocommerce_available_payment_gateways')wp-includes/plugin.php:205
WC_Payment_Gateways->get_available_payment_gateways()wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php:336
{closure}()wp-content/plugins/yookassa/yookassa.php:102
do_action('woocommerce_blocks_payment_method_type_registration')wp-includes/plugin.php:517
Automattic\W\B\I\IntegrationRegistry->initialize()wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php:50
do_action('init')wp-includes/plugin.php:517Проблема пропадает если отключить функцию yookassa_gateway_block_support.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.