mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
131 stars 53 forks source link

Fatal error if sepa recurring not enabled #68

Closed vdwijngaert closed 7 years ago

vdwijngaert commented 7 years ago

My client's log files are full of this error:

PHP Fatal error: Call to a member function getMollieMethodId() on null in /home/XXX/public_html/web/app/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstractseparecurring.php on line 29

In the class constructor, recurringMollieMethod is only set when the Direct Debit gateway is available. Currently it is still "Pending approval..." for our client. Maybe this should be handled more graceful.

Also, after updating the plugin, Mollie webhooks are failing due to an internal server error, and I think this is the cause.

Thanks,

Koen

tom-mollie commented 7 years ago

Hi Koen,

Thanks for bringing this issue to our attention. This issue should be fixed in 2.5.1. Please let me know if you encounter any more issues.

Thanks,

Tom Mollie