Error message using PHP 7.4 and CF6

ts tshirley 07 Jul, 2021
We have a significant amount of development in CF6, and because it is stable we decided not to redevelop in V7.
​
Recently our site administrator decided to upgrade the PHP version on the site to 7.4 because of some security alerts and also to keep the site up to date.
​
Following this, some of our CF6 forms failed with the following error:
ts tshirley 07 Jul, 2021
Sorry sent too early... , the error message received is this:
​


​
I DOMXPath::query():  Invalid expression in selector >> body
<< in /home/mysite/public_html/libraries/cegcore2/vendors/emogrifier/Emogrifier.php on line 371
​
When reverted to PHP 7.2, the error message does not appear.
​
Is there a solution to this, or do we have to remain on 7.2 as long as we continue with CF6?
​
Thanks
​
Tim
Gr GreyHead 11 Jul, 2021
Hi Tim,
​
I found another thread here where Healyhatman suggests that you "Turn off the advanced template option in the email action."
​
Bob
ts tshirley 11 Jul, 2021
Thanks Bob,
​
Unfortunately that option is cot checked in any emails in the application. So at this stage I have a workaround though it is not entirely satisfactory because of the need to stay on an old version of php.
​
Cheers
​
Tim
This topic is locked and no more replies can be posted.