Critical error when sending WooCommerce emails after theme update

This topic has 10 replies, 4 voices, and was last updated 1 year, 9 months ago ago by Rose Tyler

  • Avatar: Farhad
    Farhad
    Participant
    May 11, 2022 at 00:27

    I updated the theme to the latest version and noticed a technical issue on the website. here are the details from WordPress:

    Howdy! Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, WooCommerce. First, visit your website (https://www.choovio.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.choovio.com/wp-admin/post.php) and check for any visible issues. Please contact your host for assistance with investigating this issue further. If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further. https://www.choovio.com/wp-login.php?action=enter_recovery_mode&rm_token=CY0aGgPW3snMzOHmw2PCWL&rm_key=HL6kA4rjmyMNQJ5lulilcG To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information: WordPress version 5.9.3 Current theme: XStore Child (version 1.0) Current plugin: WooCommerce (version 6.5.0) PHP version 7.4.29 Error Details ============= An error of type E_ERROR was caused in line 169 of the file /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/CssInliner.php. Error message: Uncaught TypeError: Argument 1 passed to Pelago\Emogrifier\CssInliner::inlineCss() must be of the type string, null given, called in /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php on line 570 and defined in /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/CssInliner.php:169 Stack trace: #0 /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(570): Pelago\Emogrifier\CssInliner->inlineCss(NULL) #1 /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(658): WC_Email->style_inline(‘…’) #2 /home/customer/www/choovio.com/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-completed-order.php(69): WC_Email->send(‘srubin@gmail.co…’, ‘Hi Seth Rubin, …’, ‘…’, ‘Content-Type: t…’, Array) #3 /home/customer/www/choovio.com/public_

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 11, 2022 at 11:01

    Hello,

    As you can see from the error log fatal error appears in the WooCommerce files. So, contact WooCommerce support to get help with this, please https://wordpress.org/support/plugin/woocommerce/

    Regards

    Avatar: Farhad
    Farhad
    Participant
    May 11, 2022 at 17:13

    The site is sending out plain Woo messages like this:
    LT-22222-L LoRa I/O Controller (#13920) is out of stock.

    The issue is with the email I customize using the “Built-in Email Builder.” Could you please take a closer look?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 11, 2022 at 20:17

    Hello,

    Do you mean that you don’t have the mentioned error while disabling the email builder and sending email after that? Did you test that?

    Regards

    Avatar: Farhad
    Farhad
    Participant
    May 11, 2022 at 21:16

    We are not receiving any of the emails built by the email builder including customers or admin emails.

    Avatar: Farhad
    Farhad
    Participant
    May 11, 2022 at 22:45

    I disabled the email builder, and now we get the emails in the default format.
    This issue had happened other times before and after a theme update. I would be grateful if your team ensure this excellent feature is not breaking each time there is an update to the theme.

    Avatar: kutmaster
    kutmaster
    Participant
    May 12, 2022 at 14:16

    hi, i have the same issue after woocommerce updated to 6.5
    error shows up then product order status changing to Processing

    works all with no error then disabling Built-in Email Builder

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 12, 2022 at 16:07

    Hello,

    Edit et-core-plugin/packages/woocommerce-email-template-customizer/includes/email-render.php file and find

    public function remove_wc_style() {
    		__return_empty_string();
    	}

    replace by

    public function remove_wc_style() {
    		return '';
    	}

    Try after that.

    Regards

    Avatar: Farhad
    Farhad
    Participant
    May 12, 2022 at 22:59

    I made the changes and it seems the issue is resolved! Thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 13, 2022 at 07:41

    You’re welcome!

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.