mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
98 stars 49 forks source link

[SETUP] PHP Fatal error on "Mollie\\Payment\\Model\\Methods\\ApplePay" after updating to v.2.34.0 #746

Closed RobbeSaelens closed 4 months ago

RobbeSaelens commented 4 months ago

Describe the bug After updating the module with composer to v.2.34.0 i get this error message on checkout in the frontend: PHP Fatal error: Declaration of Mollie\\Payment\\Model\\Methods\\ApplePay\\Interceptor::refund(Magento\\Payment\\Model\\InfoInterface $payment, $amount): Mollie\\Payment\\Model\\Methods\\ApplePay must be compatible with Mollie\\Payment\\Model\\Mollie::refund(Magento\\Payment\\Model\\InfoInterface $payment, $amount): Mollie\\Payment\\Model\\Mollie

Used versions

To Reproduce Steps to reproduce the behavior: After installing the latest mollie version with composer and going to my checkout page on the frontend

Frank-Magmodules commented 4 months ago

HI There @RobbeSaelens , Goodmorning,

Thank you for opening this issue. This error is caused by the fact that you need to run setup:di:compile after you update an extension. To prevent such errors in the future, we strongly advise implementing a structured deployment procedure. While setting this up initially might be challenging, we recommend utilizing Deployer for this purpose: https://deployer.org/docs/7.x/recipe/magento2

Feel free to reach out if you need additional assistance with the Mollie plugin.

Frank-Magmodules commented 4 months ago

Hello @RobbeSaelens! Did our comment help you address this issue?

RobbeSaelens commented 4 months ago

Hello @Frank-Magmodules, this worked. Thank you!

Frank-Magmodules commented 4 months ago

Perfect, thanks @RobbeSaelens , I'm closing this issue now. Have a good evening!