Ajax Error 500 – Validation
-
Hello,
On a multistep form, going to the next tab I’m getting:
Uncaught ArgumentCountError: Too few arguments to function wpcf7_file_validation_filter(), 2 passed in wordpress_root/wp-includes/class-wp-hook.php on line 303 and exactly 3 expected in wordpress_root/wp-content/plugins/contact-form-7/modules/file.php:75
Stack trace:
#0 wordpress_root/wp-includes/class-wp-hook.php(303): wpcf7_file_validation_filter(Object(WPCF7_Validation), Object(WPCF7_FormTag))#1 wordpress_root/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(WPCF7_Validation), Array)
#2 wordpress_root/wp-content/plugins/ultimate-addons-for-contact-form-7/addons/multistep/multistep.php(388): apply_filters(‘wpcf7_validate_…’, Object(WPCF7_Validation), Object(WPCF7_FormTag))
#3 wordpress_root/wp-includes/class-wp-hook.php(303): UACF7_MULTISTEP->check_fields_validation(”)
#4 wordpress_root/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#5 wordpress_root/wp-includes/plugin.php(470): WP_Hook->do_action(Ar in wordpress_root/wp-content/plugins/contact-form-7/modules/file.php on line 75
Quickfix:
I temporary fix it in multistep.php(388) by using:
$result = apply_filters(“wpcf7_validate_{$type}”, $result, $tag, array());instead of:
$result = apply_filters(“wpcf7_validate_{$type}”, $result, $tag);
- The topic ‘Ajax Error 500 – Validation’ is closed to new replies.