We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Mollie outage this morning lead to a fatal error in our cart, effectively closing our store:
Warning: array_column() expects parameter 1 to be array, bool given in [...]/app/code/community/Mollie/Mpm/Helper/Data.php on line 731
Cause: https://github.com/mollie/Magento/blob/master/app/code/community/Mollie/Mpm/Helper/Data.php#L731
This can be made to fail gracefully. Something like:
$availableMethodsArray = json_decode(json_encode($availableMethods), true); if (is_array($availableMethodsArray) === false) { return false; } $available = array_search($methodCode, array_column($availableMethodsArray, 'id')); if ($available === false) { return false; }
Maybe it would be a good idea to check the module for assumptions about other external calls as well, at least in the customer order flow.
The text was updated successfully, but these errors were encountered:
Bugfix: Handle false returns from the getAvailableMethods call mollie…
9494f5a
…#213
HI @loekvangool ,
Quite a late response! But happy to share we've just released a new version with a fix for this issue. Have a great day!
Sorry, something went wrong.
cb77b9e
No branches or pull requests
The Mollie outage this morning lead to a fatal error in our cart, effectively closing our store:
Cause: https://github.com/mollie/Magento/blob/master/app/code/community/Mollie/Mpm/Helper/Data.php#L731
This can be made to fail gracefully. Something like:
Maybe it would be a good idea to check the module for assumptions about other external calls as well, at least in the customer order flow.
The text was updated successfully, but these errors were encountered: