Fatal error
-
I tried to use your plugin to send a preview of the WC Customer Renewal Invoice (an email used by Woo Subscriptions) and got this error:
An error of type E_ERROR was caused in line 85 of the file /home/warp2021/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/emails/class-wcs-email-customer-notification.php. Error message: Uncaught Error: Call to a member function get_billing_email() on bool in /home/warp2021/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/emails/class-wcs-email-customer-notification.php:85
Stack trace:
#0 /home/warp2021/public_html/wp-content/plugins/woo-preview-emails/includes/Main.php(298): WCS_Email_Customer_Notification->trigger(23704, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#1 /home/warp2021/public_html/wp-includes/class-wp-hook.php(324): Codemanas\WooPreviewEmails\Main->email_preview_output(”)
#2 /home/warp2021/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/warp2021/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/warp2021/public_html/wp-admin/admin.php(175): do_action(‘admin_init’)
#5 {main}
thrownWordPress version 6.7.1
Active theme: WARP-theme (version 1.0.0)
Current plugin: WooCommerce Subscriptions (version 7.0.0)
PHP version 8.1.31FYI I can send the same email from a staging site NOT using your Preview plugin, so I think the problem isn’t with Woo Subscriptions or the email itself.
The topic ‘Fatal error’ is closed to new replies.