Hello!
It appears to be a compatibility issue between the latest versions of PHP and the library used to manipulate HTML elements within the email. For the moment, you can solve the problem only by disabling the mail customizer feature via code. You should therefore open the following file via FTP (or through the WordPress Plugin Editor).
/wp-content/plugins/vikrestaurants/site/helpers/src/libraries/Mail/MailTemplateAware.php
Here you should change the code at line 147:
$body = (new \E4J\VikRestaurants\Document\MailCustomizer($body))->addCss($css)->getHtml();
Into this one:
// $body = (new \E4J\VikRestaurants\Document\MailCustomizer($body))->addCss($css)->getHtml();
We are still trying to understand what might be causing this behavior.
For some reason that doesnt seem to have any effect. Im still getting the same error in the confirmation emails. any other help would be greatly appreciated!
We are quite sure that the issue may be related to some kind of hard caching performed by the server. I’m saying this because a similar error can only be thrown by a third-party library used to manipulate HTML5 nodes via PHP, which we use solely to customize the e-mail template, exactly at the line previously mentioned.
If you are unable to sort out the issue, we strongly recommend that you reach out to our support team, as we may need temporary access to your website to verify whether the server is hard-caching the files or if your environment requires additional adjustments.
Here’s the link you can use:
https://support.e4j.com/contact-us