payfort / woocommerce-payfort

MIT License
10 stars 22 forks source link

Critical error #40

Open sugarzlol opened 1 year ago

sugarzlol commented 1 year ago

Hello, I am not sure what exactly causing this error, but i noticed it happens when the subscription plugin trying to renew a subscription and it fails. I get this error in the email:

نسخة ووردبريس 6.1.1 القالب الحالي: Flatsome Child (النسخة 3.0) الإضافة الحالية: Amazon payment services (النسخة 2.3.3) إصدار PHP 8.0.27

تفاصيل الخطأ

حدث خطأ من نوع E_ERROR بسبب السطر 550 في الملف /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-content/plugins/amazon-payment-services/classes/class-wc-gateway-aps-super.php. رسالة الخطأ: Uncaught TypeError: Cannot access offset of type string on string in /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-content/plugins/amazon-payment-services/classes/class-wc-gateway-aps-super.php:550

Stack trace:

0 /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(378): WC_Gateway_APS_Super->can_refund_order(Object(WC_Subscription))

1 /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(40): include('/chroot/home/a0...')

2 /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-admin/includes/template.php(1409): WC_Meta_Box_Order_Items::output(Object(WP_Post), Array)

3 /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))

4 /chroot/home/a03f64a7/1c8fc43b58.nxcli.io/html/wp-admin/post.php(206): require('/chroot/home/a0...')

5 {main}

thrown