Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
82 stars 29 forks source link

PHP Warning: Undefined array-key #418

Closed WillBrubaker closed 3 months ago

WillBrubaker commented 1 year ago

Describe the bug

6030831-zen

I'm getting this warning over and over again on my staging site where I was testing my woocommerce updates

[08-Mar-2023 10:20:22 UTC] PHP Warning: Undefined array key "order-received" in /home/dfwcrafts/staging.dfwcrafts.com/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php on line 516
[08-Mar-2023 19:31:28 UTC] PHP Warning: Undefined array key "order-received" in /home/dfwcrafts/staging.dfwcrafts.com/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php on line 516
[08-Mar-2023 19:39:38 UTC] PHP Warning: Undefined array key "order-received" in /home/dfwcrafts/staging.dfwcrafts.com/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php on line 516

To Reproduce

  1. Apparently, test WooCommerce updates when Subscriptions is active

Expected behavior

A clean error log

Actual behavior

PHP warnings

Product impact

Additional context

fevered commented 1 year ago

Also seeing this in 6069244-zen

Optrec commented 1 year ago

I am getting the same error too. I am making payments from my customer account to test the payment functionality. It was working weeks ago, but when I was doing further tests, the error ''Warning: Undefined array key "order-received" in /home/customer/www/websitename/public_html/wp-content/plugins/woocommerce-payments/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php on line 516'' shows and I cannot click on the order section from the dashboard. Can you do something about this to get it fixed as this is affecting my time and business.

jacoswan commented 1 year ago

Also in 6246168-zen

2023/04/29 06:27:29 [error] 93817#93817: *20436 
FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "order-received" in
 /www/REDACTED/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php on line 516"
  while reading response header from upstream, 
  server:REDACTED, 
  request: "GET /kasse/order-received/5003 HTTP/1.1",
  upstream: "fastcgi://unix:/var/run/php8.0-fpm-inoivch.sock:", 
  host: "REDACTED:14233"