• When I try to send a message with the form, it does just returns a 500 error in the inspector, and does not send. This is the back-end error report:

    [Mon Mar 01 18:30:56.503610 2021] [php7:error] [pid 21986] [client 45.46.199.197:21456] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpcf7_file_validation_filter(), 2 passed in /nas/content/live/spectrumprope1/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /nas/content/live/spectrumprope1/wp-content/plugins/contact-form-7/modules/file.php:75\nStack trace:\n#0 /nas/content/live/spectrumprope1/wp-includes/class-wp-hook.php(287): wpcf7_file_validation_filter(Object(WPCF7_Validation), Object(WPCF7_FormTag))\n#1 /nas/content/live/spectrumprope1/wp-includes/plugin.php(206): WP_Hook->apply_filters(Object(WPCF7_Validation), Array)\n#2 /nas/content/live/spectrumprope1/wp-content/plugins/contact-form-7/includes/submission.
    php(365): apply_filters(‘wpcf7_validate_…’, Object(WPCF7_Validation), Object(WPCF7_FormTag))\n#3 /nas/content/live/spectrumprope1/wp-content/plugins/contact-form-7/includes/submission.php(59): WPCF7_Submission->validate()\n#4 /nas/content/live/spectrumprope1/wp-content/plugins/contact-form-7/includes/submission.php(24): WPCF7_Submission->proceed()\n#5 /nas/c in /nas/content/live/spectrumprope1/wp-content/plugins/contact-form-7/modules/file.php on line 75, referer: https://spectrumpropertiesre.com/lease-credit-application/

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem today. I tried to deactivate some plugins but nothing happens

    Hi, the problem was on the wpcf7_validate_file action hook. The hook need 3 arguments but the validate function is passing only 2. The fix i add the data posted to the form at filter hook. You can add this on submission.php on the private function validate() at line 367.

    $args = $this->get_posted_data();
    foreach ( $tags as $tag ) {
        $type = $tag->type;
        $result = apply_filters( "wpcf7_validate_{$type}", $result, $tag, $args );
    }
    • This reply was modified 5 years, 3 months ago by samuburgueno.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Form returns 500 server error on submit’ is closed to new replies.