vyskoczilova / woocommerce-payforpayment

WordPress plugin WooCommerce Pay for Payment
13 stars 10 forks source link

PHP 8.0 / 8.1 PHP–FPM compatibility #67

Open vyskoczilova opened 2 years ago

vyskoczilova commented 2 years ago

We noticed problems when implementing php8 or 8.1 on the plugin, we wanted to know if an update is being worked on for this purpose

AH01071: Got error ‘PHP message: PHP Warning: Trying to access array offset on value of type null in /srv/services/vg-nvme/Hosting/mundogeek.com.ar/http-web/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php on line 121PHP message: PHP Warning: Trying to access array offset on value of type null in /srv/services/vg-nvme/Hosting/mundogeek.com.ar/http-web/wp-content/plugins/woocommerce-pay-for-payment/inc/class-pay4pay.php on line 122’

https://wordpress.org/support/topic/problem-php8-0-8-1-php-fpm/

vyskoczilova commented 2 years ago

Hi, thanks for reporting, it’s not a problem with PHP8 compatibility. The value shouldn’t be null in the very first place – it should be the shipping method used for the order.

Do you have a selected shipping method? I can’t find it on the listed page. Does it mean, you have only one setup?

Thanks!