Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting warnings in error logs in razorpay-webhook.php on line 95 #507

Open
ramshengale opened this issue Oct 17, 2023 · 1 comment
Open

Comments

@ramshengale
Copy link

Hello, we're getting the following warnings in our error logs from the plugin:

[17-Oct-2023 06:53:31 UTC] PHP Warning: Undefined array key "payment" in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 95
[17-Oct-2023 06:53:31 UTC] PHP Warning: Trying to access array offset on value of type null in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 95
[17-Oct-2023 06:53:31 UTC] PHP Warning: Trying to access array offset on value of type null in /wp-content/plugins/woo-razorpay/includes/razorpay-webhook.php on line 95

Solution

Add simple isset() checks to resolve these warnings.

@abdulwahidsharief
Copy link
Contributor

@ramshengale didn't find any warnings in the current release please share plugin version and file name like fatal errors/razorpay logs/ razorpay subscription logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants