Support

Home Forums Event Espresso Premium Emails fail. Uncaught TijsVerkoyen\CssToInlineStyles\Exception: No HTML provided

Emails fail. Uncaught TijsVerkoyen\CssToInlineStyles\Exception: No HTML provided

Posted: June 18, 2021 at 4:42 am


rootstudio

June 18, 2021 at 4:42 am

Hi There

Recently emails from event espresso have started to fail. It looks to be a third party package that is been used is throwing an error. When ever an email is triggered the following error is thrown Uncaught TijsVerkoyen\CssToInlineStyles\Exception: No HTML provided.

I have raised an issue on github, which has more details.

Any help would be appreciated.

Thanks


Tony

  • Support Staff

June 18, 2021 at 4:57 am

Hi there,

WP HTML Mail is conflicting with the version of CSSInlner Event Espresso is using.

For now, to fix this you can use:

add_filter(
    'FHEE__EE_Email_messenger__apply_CSSInliner ',
    '__return_false'
);

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

That should prevent the fatal from being thrown.


rootstudio

June 18, 2021 at 6:05 am

Thanks Tony, that has resolved the issue


Tony

  • Support Staff

June 18, 2021 at 7:26 am

You’re most welcome, I’m glad that worked for you.

The support post ‘Emails fail. Uncaught TijsVerkoyen\CssToInlineStyles\Exception: No HTML provided’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso