unfortunately, one of the theme updates broke the forms.
Whenever a form is sent – no emails are sent. In the console the error appears:
[…]/wp-content/themes/jevelin/js/form-errors.js?ver=1.0 404 (Not Found)
Indeed, this file is not in the location anymore but the code seems to still refer to it.
Please advice on how to fix.
This can be due to plugin conflict on your site so please try temporary deactivating all plugins except Unyson plugin and see whether everything works fine and then enable the plugins one by one to see which plugin is conflicting if any.
I tested it and turned of all irrelevant plugins on my localhost. No difference. After digging into it I found out that the issue is coming from that file: /jevelin/inc/hooks.php:
wp_enqueue_script( 'jevelin-show-form-errors', get_template_directory_uri() . '/js/form-errors.js', array( 'jquery' ), '1.0', true );
This causes the theme to load the file (/js/form-errors.js). The file does not exist in the theme directory and was potentially deleted in one of the versions.
Now I have tested on your shared site and the contact form gets sent successfully as shown in the attached screenshot without displaying any error message in the browser console.
Yes you are right that the referenced file /jevelin/js/form-errors.js doesn’t exist and I have notified the theme developer about this so that it will be fixed.