saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

CRITICAL Uncaught Error on IPN #109

Open ChristianAF opened 3 years ago

ChristianAF commented 3 years ago

Describe the bug

https://wordpress.org/support/topic/critical-uncaught-error-19/#post-14504964

2021-05-31T10:56:35+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-amazon-payments-advanced-ipn-handler.php:446 Stack trace:

0 /wp-includes/class-wp-hook.php(292): WC_Amazon_Payments_Advanced_IPN_Handler->handle_notification_ipn_v2(Array)

1 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array)

2 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)

3 /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-amazon-payments-advanced-ipn-handler.php(376): do_action(‘woocommerce_ama…’, Array)

4 /wp-includes/class-wp-hook.php(292): WC_Amazon_Payments_Advanced_IPN_Handler->check_ipn_request(”)

5 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filte in /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-amazon-payments-advanced-ipn-handler.php in Zeile 446

ChristianAF commented 3 years ago

I'm checking more details with customer

ChristianAF commented 3 years ago

New message from cliente

No sorry, I just found this in the log and want to inform you.

But today one more issue is happending and I’ve got a blank screen with “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

This is happening after clicking on a preview button of the webpush plugin “webpushr”.

2021-06-01T09:08:50+00:00 CRITICAL Uncaught Error: Call to a member function needs_shipping() on null in /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-gateway-amazon-payments-advanced.php:1572
Stack trace:
#0 /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-gateway-amazon-payments-advanced.php(173): WC_Gateway_Amazon_Payments_Advanced->get_current_cart_action()
#1 /wp-includes/class-wp-hook.php(292): WC_Gateway_Amazon_Payments_Advanced->scripts('')
#2 /wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#4 /wp-includes/script-loader.php(2027): do_action('wp_enqueue_scri...')
#5 /wp-includes/class-wp-hook.php(292): wp_enqueue_scripts('')
#6 /wp-content/plugins/woocommerce-gateway-amazon-payments-advanced/includes/class-wc-gateway-amazon-payments-advanced.php on line 1572
ChristianAF commented 2 years ago

https://github.com/woocommerce/woocommerce-gateway-amazon-pay/issues/129