• Having a problem getting BTCpay Server set up with WooCommerce. Have sucessfully created a store and paired with BTCpay Server running on Umbrel.

    However when I try to test checkout, I receive a fatal error, “CRITICAL Uncaught TypeError”

    Any help troubleshooting would be very much appreciated!

    CRITICAL Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/northernbay/northernbayorganics.com/wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Client/Client.php:119
    Stack trace:
    #0 /home/northernbay/northernbayorganics.com/wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Client/Client.php(119): array_key_exists('posData', NULL)
    #1 /home/northernbay/northernbayorganics.com/wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Client/Client.php(211): Bitpay\Client\Client->fillInvoiceData(Object(Bitpay\Invoice), NULL)
    #2 /home/northernbay/northernbayorganics.com/wp-content/plugins/btcpay-for-woocommerce/class-wc-gateway-btcpay.php(892): Bitpay\Client\Client->createInvoice(Object(Bitpay\Invoice))
    #3 /home/northernbay/northernbayorganics.com/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(980): WC_Gateway_BtcPay->process_payment(1258)
    #4 /home/northernbay/northernbayorganics.com/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1195): WC_Checkout->process_order_payment(1258, 'btcpay')
    #5 /home/northernbay/northernbayorganics.com/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(461): WC_Checkout->process_checkout()
    #6 /home/northernbay/northernbayorganics.com/wp-includes/class-wp-hook.php(307): WC_AJAX::checkout('')
    #7 /home/northernbay/northernbayorganics.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #8 /home/northernbay/northernbayorganics.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #9 /home/northernbay/northernbayorganics.com/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(90): do_action('wc_ajax_checkou...')
    #10 /home/northernbay/northernbayorganics.com/wp-includes/class-wp-hook.php(307): WC_AJAX::do_wc_ajax('')
    #11 /home/northernbay/northernbayorganics.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array)
    #12 /home/northernbay/northernbayorganics.com/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #13 /home/northernbay/northernbayorganics.com/wp-includes/template-loader.php(13): do_action('template_redire...')
    #14 /home/northernbay/northernbayorganics.com/wp-blog-header.php(19): require_once('/home/northernb...')
    #15 /home/northernbay/northernbayorganics.com/index.php(17): require('/home/northernb...')
    #16 {main}
      thrown in /home/northernbay/northernbayorganics.com/wp-content/plugins/btcpay-for-woocommerce/lib/Bitpay/Client/Client.php on line 119
    • This topic was modified 2 years, 9 months ago by jasonwlangley.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor ndeet

    (@ndeet)

    Hi Jason,

    how did you make your Umbrel node available? Do you run a reverse proxy or how did you connect your store to it?

    To get more details on what goes wrong you can enable debugging in the payment gateways settings. After that you have a more detailed log in WooCommerce -> Status -> Logs

    You can also come to https://chat.btcpayserver.org to discuss if you want.

    Plugin Contributor ndeet

    (@ndeet)

    To the error: it looks like the API call to create the invoice returns nothing, so the check for the returned data fails then. As if your umbrel node is not reachable or something.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.