Skip to content

Conversation

JamesFX2
Copy link

This has been erroring our refunds.

2023-08-21T16:10:52.681531+00:00] main.CRITICAL: Exception: Warning: Attempt to read property "action_id" on array in /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4 .4-61/vendor/checkoutcom/magento2/Plugin/Api/RefundInvoice.php on line 148 in /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/App/ErrorH andler.php:61
Stack trace:
#0 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/checkoutcom/magento2/Plugin/Api/RefundInvoice.php(148): Magento\Framework\App\ErrorHandler->handler() #1 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/Interception/Interceptor.php(121): CheckoutCom\Magento2\Plugin\Api\RefundInvoice->bef oreRefund()
#2 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Model\Order\RefundAdapter\Intercepto r->Magento\Framework\Interception{closure}()
#3 /home/cloudpanel/htdocs/www.chemist-4-u.co

You refactored to using an array, not an object.

This has been erroring our refunds. 

2023-08-21T16:10:52.681531+00:00] main.CRITICAL: Exception: Warning: Attempt to read property "action_id" on array in /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4
.4-61/vendor/checkoutcom/magento2/Plugin/Api/RefundInvoice.php on line 148 in /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/App/ErrorH
andler.php:61
Stack trace:
#0 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/checkoutcom/magento2/Plugin/Api/RefundInvoice.php(148): Magento\Framework\App\ErrorHandler->handler()
checkout#1 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/Interception/Interceptor.php(121): CheckoutCom\Magento2\Plugin\Api\RefundInvoice->bef
oreRefund()
checkout#2 /home/cloudpanel/htdocs/www.chemist-4-u.com/releases/2023_08_11_4_18_39_branch_v2.4.4-61/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Model\Order\RefundAdapter\Intercepto
r->Magento\Framework\Interception\{closure}()
checkout#3 /home/cloudpanel/htdocs/www.chemist-4-u.co

You refactored to using an array, not an object.
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant