Conflict with CF7: error messages and CSS disappear when litespeed installed
-
When submitting a Contact Form 7 form with validation errors, the error messages show up briefly and then disappear. For example, if I submit a blank form that has required fields, I should see messages that say that I need to fill in the required fields and those field borders are red.
What actually happens is that the page loads with the error messages showing for just a second, but then the messages and red borders reset back to normal. It appears as if the form was never submitted.
Looking at the source, the form error messages and classes are set correctly when the page is loaded. The initial source code is correct. But at some point, the classes signifying an invalid field are removed. Some javascript is modifying the DOM.
This only happens with the LiteSpeed cache installed. I have tried to turn off caching and as many features as I can, but the problem persists. If I disable the LiteSpeed cache plugin, then the site behaves properly and I can see the error messages.
WP 6.2.2
CF7 5.7.7
LiteSpeed 5.5
PHP 8.2https://emsricky.com/application-process
The page I need help with: [log in to see the link]
- The topic ‘Conflict with CF7: error messages and CSS disappear when litespeed installed’ is closed to new replies.