Fatal error. Email builder not working / causing Fatal error on my site

This topic has 2 replies, 2 voices, and was last updated 2 years, 6 months ago ago by Olga Barlow

  • Avatar: Ernesto_Perez_Medina
    Ernesto Perez Medina
    Participant
    May 18, 2022 at 16:02

    when I use the email builder:

    1- the emails that should be sent are not sent.

    2- If I force the email, it generates the following error:

    Fatal error: Uncaught TypeError: Argument 1 passed to Pelago\Emogrifier\CssInliner::inlineCss() must be of the type string, null given, called in /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php on line 570 and defined in /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/CssInliner.php:169 Stack trace: #0 /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(570): Pelago\Emogrifier\CssInliner->inlineCss(NULL) #1 /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(658): WC_Email->style_inline(‘…’) #2 /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(139): WC_Email->send(‘er in /homepages/41/d896247036/htdocs/clickandbuilds/WordPress/TamadabaSport/wp-content/plugins/woocommerce/vendor/pelago/emogrifier/src/CssInliner.php on line 169

    everything works just fine turning off the email builder

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 18, 2022 at 16:30

    Hello,

    This is a known issue. Follow the steps described in this post https://www.8theme.com/topic/critical-error-when-sending-woocommerce-emails-after-theme-update/ and change the code.

    Regards

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

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

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