Validation is not working properly from 5.6 version
-
Hi everyone,
I have a site with the Astra 3.9.1 theme and after upgrading Contact Form 7 to version 5.6 (or 5.6.1), the validation stopped working. When I submit a form with incorrect data, the red messages under each field do not appear, in addition the message in the yellow border at the bottom is blank.The error is visible in the console:
index.js:1 TypeError: Cannot read properties of null (reading ‘querySelector’)
at l (index.js:1:2551)
at Array.forEach (<anonymous>)
at index.js:1:3708After restoring Contact Form 7 to version 5.5.6.1, everything is back to normal. I also added “define( ‘WPCF7_LOAD_JS’, false );” to wp-config and this also helped, but disabled the dynamic messages.
- The topic ‘Validation is not working properly from 5.6 version’ is closed to new replies.