File Upload Fields Break Form
-
If you’re using a file upload field, CF7 5.4 and Bootstrap for CF7 your form will give a 500 error and not submit.
Below is the full stack trace in case another developer comes in and decides to maintain this plugin.
In addition, this plugin causes a 404 error as it looks for the ajax-loader.gif from CF7 which is no longer there.
`PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpcf7_file_validation_filter(), 2 passed in /home/xxx/xxx.com/wp-includes/class-wp-hook.php on line 292 and exactly 3 expected in /home/xxx/xxx.com/wp-content/plugins/contact-form-7/modules/file.php:75
Stack trace:
#0 /home/xxx/xxx.com/wp-includes/class-wp-hook.php(292): wpcf7_file_validation_filter(Object(WPCF7_Validation), Object(WPCF7_FormTag))#1 /home/xxx/xxx.com/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WPCF7_Validation), Array)
#2 /home/xxx/xxx.com/wp-content/plugins/contact-form-7/includes/submission.php(366): apply_filters(‘wpcf7_validate_…’, Object(WPCF7_Validation), Object(WPCF7_FormTag))
#3 /home/xxx/xxx.com/wp-content/plugins/contact-form-7/includes/submission.php(60): WPCF7_Submission->validate()
#4 /home/xxx/xxx.com/wp-content/plugins/contact-form-7/inc in /home/xxx/xxx.com/wp-content/plugins/contact-form-7/modules/file.php on line 75`
- The topic ‘File Upload Fields Break Form’ is closed to new replies.