Uncaught Exception: You should call ‘render’ before ‘getHTMLAfterCo
-
Hi, Recently I’m facing issue on sending all Woocommerce email via mailpoet. This website uses “Woocommerce Subscription” Plugin. So whenever a customer buy a subscription product from the site. After complete the payment, that user automatically registered to the site. But after all the customer and the Admin users not getting any email regarding the successfull Order and Subcription due to an error on Mailpoet plugin. On debug I get that error is – “Fatal error: Uncaught Exception: You should call ‘render’ before ‘getHTMLAfterContent'”. Now I’m not sure why that error appears suddenly after recent plugin update. Also when open the WP site with “Recovery Mode” it PAUSES the Mailpoet plugin due to same error. Here I’m attached the error details-
Fatal error: Uncaught Exception: You should call 'render' before 'getHTMLAfterContent' in /home/thisiswealthco/public_html/wp-content/plugins/mailpoet/lib/WooCommerce/TransactionalEmails/Renderer.php:66 Stack trace: #0 /home/thisiswealthco/public_html/wp-content/plugins/mailpoet/lib/WooCommerce/TransactionalEmailHooks.php(64): MailPoet\WooCommerce\TransactionalEmails\Renderer->getHTMLAfterContent() #1 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(324): MailPoet\WooCommerce\TransactionalEmailHooks->MailPoet\WooCommerce\{closure}(Object(WC_Email_Customer_Invoice)) #2 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home/thisiswealthco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/templates/emails/customer-invoice.php(98): do_action('woocommerce_ema...', Object(WC_Email_Customer_Invoice)) #5 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/thisiswea...') #6 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template('emails/customer...', Array, '', '') #7 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(153): wc_get_template_html('emails/customer...', Array) #8 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(588): WC_Email_Customer_Invoice->get_content_html() #9 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(133): WC_Email->get_content() #10 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(378): WC_Email_Customer_Invoice->trigger(1335, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #11 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(139): WC_Emails->customer_invoice(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #12 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(324): WC_Meta_Box_Order_Actions::save(1335, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #13 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /home/thisiswealthco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(313): do_action('woocommerce_pro...', 1335, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #16 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(153): Automattic\WooCommerce\Internal\Admin\Orders\Edit->handle_order_update() #17 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(350): Automattic\WooCommerce\Internal\Admin\Orders\Edit->setup(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #18 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(366): Automattic\WooCommerce\Internal\Admin\Orders\PageController->prepare_order_edit_form() #19 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(167): Automattic\WooCommerce\Internal\Admin\Orders\PageController->setup_action_edit_order() #20 [internal function]: Automattic\WooCommerce\Internal\Admin\Orders\PageController->handle_load_page_action('') #21 /home/thisiswealthco/public_html/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(158): call_user_func_array(Array, Array) #22 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->__call('handle_load_pag...', Array) #23 /home/thisiswealthco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #24 /home/thisiswealthco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #25 /home/thisiswealthco/public_html/wp-admin/admin.php(237): do_action('load-woocommerc...') #26 {main} thrown in /home/thisiswealthco/public_html/wp-content/plugins/mailpoet/lib/WooCommerce/TransactionalEmails/Renderer.php on line 66
Please check all details and suggest a solution asap.
Thanks
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.