Required input error & empty variables
-
Hi
We have been happily using CF7 happily for almost a year, and without an identified reason the plugin stopped working.
1) Form validation pops an “input is required” error even though the required input is filled.
2) When disabling input requirements, the form is sent successfully but the message received contains blanks instead of the inputs, and the files aren’t attached to the mail.
The AJAX request sent upon submitting the form looks as follows :
POST 200 /wp-json/contact-form-7/v1/contact-forms/762/feedback?_locale=user
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7″762
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7_version”5.4
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7_locale”fr_FR
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7_unit_tag”wpcf7-f762-xxx-xx
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7_container_post”763
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”_wpcf7_posted_data_hash”—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”your-name”test
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”prenom”test
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”tel-530″test
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”your-email”[email protected]
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”num-commande”test
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”your-message”test
—————————–5665594835824645722021594893
Content-Disposition: form-data; name=”file”; filename=”tmep.png”
Content-Type: image/png`Response (when field requirement is activated) :
{ "into":"#", "status":"validation_failed", "message":"Un ou plusieurs champs contiennent une erreur. Veuillez v\u00e9rifier et essayer \u00e0 nouveau.", "posted_data_hash":"", "invalid_fields":[ { "into":"span.wpcf7-form-control-wrap.your-email", "message":"Ce champ est obligatoire.", "idref":null, "error_id":"-ve-your-email" } ] }
I’ve noticed
_wpcf7_posted_data_hash
is empty, perhaps that might be part of the issue ?
- The topic ‘Required input error & empty variables’ is closed to new replies.