razorpay / razorpay-woocommerce-subscriptions

Razorpay WooCommerce Subscriptions Plugin
GNU General Public License v2.0
6 stars 7 forks source link

Uncaught Error Stack Trace #73

Open unakriti opened 5 months ago

unakriti commented 5 months ago

Hi,

My site has the Razorpay Plugin and the Razorpay Subscriptions Plugin with the folllowing software:

On the Checkout page, the Razorpay payment errors out. There are a few errors in the browser console too. There's also this fatal error on the site - it is related to your plugin. Here's the stack trace information for your attention please

WordPress version 6.4.3 Active theme: Bricks (version 1.9.6.1) Current plugin: 1 Razorpay: Signup for FREE PG (version 4.6.1) PHP version 8.2.15

Error Details

An error of type E_ERROR was caused in line 142 of the file /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php. Error message: Uncaught Error: Call to a member function get_meta() on bool in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php:142

Stack trace:

0 /wp-content/plugins/woo-razorpay/woo-razorpay.php(3008):

RZP_Webhook->process()

1 /wp-includes/class-wp-hook.php(324): razorpay_webhook_init()

2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

3 /wp-includes/plugin.php(517): WP_Hook->do_action()

4 /wp-admin/admin-post.php(61): do_action()

5 {main}

thrown

Lastly, I receive the following webhooks failure notification email from Razorpay

"Hi, We have been experiencing webhook delivery failure for past 24 hours while trying to hit the live webhook url - https://www.domain.com/wp-admin/admin-post.php?action=rzp_wc_webhook. As noted in our documentation, we have disabled your webhook as a precaution. You can re-enable the webhook again by visiting the Dashboard and going to the webhooks tab."

If I manually point my browser to that webhook URL, it triggers the Uncaught Error mentioned above.

Please, can you help resolve these issues?

Kind regards,