• Hi,
    it seems there is a bug when
    woocommerce-conditional-shipping-and-payments
    woocommerce-gateway-amazon-payments-advanced

    are both enabled.

    Any idea?

    CRITICAL Uncaught Error: Call to a member function get_cart() on null in [....]/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wccsp-restrict-payment-gateways.php:392
    Stack trace:
    #0 [....]/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wccsp-restrict-payment-gateways.php(302): WC_CSP_Restrict_Payment_Gateways->exclude_payment_gateways(Array, true)
    #1 [....]/wp-includes/class-wp-hook.php(292): WC_CSP_Restrict_Payment_Gateways->init_amazon_payments(true)
    #2 [....]/wp-includes/plugin.php(212): WP_Hook->apply_filters(true, Array)
    #3 [....]/wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/woocommerce-gateway-amazon-payments-advanced.php(422): apply_filters('woocommerce_ama...', true)
    #4 [....]/wp-includes/class-wp-hook.php(292): WC_Am in [....]/wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/restrictions/class-wccsp-restrict-payment-gateways.php alla riga 392
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @agm65,

    Hope you are doing well!

    can you send me the settings you are using on WooCommerce, Amazon Pay and WooCommerce Conditional Shipping and Payment?

    I will try to check on my testing site.

    Best,
    Christian

    Plugin Support Christian

    (@christian1983)

    Hey there,

    Since we haven’t heard back from the OP in a while, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Best,
    Christian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_cart() on null’ is closed to new replies.