pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
34 stars 14 forks source link

Fatal error: Uncaught Error: Call to a member function format_i18n() on null #206

Closed remcotolsma closed 3 years ago

remcotolsma commented 3 years ago
Fatal error: Uncaught Error: Call to a member function format_i18n() on null in public_html/wp-content/plugins/pronamic-ideal/vendor/wp-pay/core/views/meta-box-subscription-payments.php:85 Stack trace: #0 public_html/wp-content/plugins/pronamic-ideal/vendor/wp-pay/core/src/Admin/AdminSubscriptionPostType.php(653): include() #1 public_html/wp-admin/includes/template.php(1395): Pronamic\WordPress\Pay\Admin\AdminSubscriptionPostType->meta_box_payments(Object(WP_Post), Array) #2 public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) #3 public_html/wp-admin/post.php(206): require('/home/customer/...') #4 {main} thrown in public_html/wp-content/plugins/pronamic-ideal/vendor/wp-pay/core/views/meta-box-subscription-payments.php on line 85

https://restrictcontentpro-mollie.wp-pay.org/wp-admin/post.php?post=49&action=edit

Check on null is required on https://github.com/pronamic/wp-pay-core/blob/12f813d42870d314d5f40fae5279e182f1486a20/views/meta-box-subscription-payments.php#L85.