Home › Forums › Front-end Issues › acf_form “Validation Failed” is followed by wp_die() so breaks the website › Reply To: acf_form “Validation Failed” is followed by wp_die() so breaks the website
Do you have any custom field validation using acf/validate_value?
What is happening and why are you seeing this error?
ACF attempts to validate the fields using AJAX before the form is submitted. During this validation an error occurs, usually a PHP error, but could any number of things. Whatever is happening is preventing ACF from sending the correct response to the validation AJAX request. When this happens ACF submits the form and fields are re-validated using PHP. An error in field input or in custom validation filters is causing the form submission to fail.
The solution is to track down the error that is causing the AJAX Request to fail. This generally means enabling error logging in WP and looking in the error log to find the error and correct it. https://wordpress.org/documentation/article/debugging-in-wordpress/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!