• Hi,
    One of our websites has been getting a few blank submissions from the contact form of late, ie. there appears to be no information submitted. After some discussion with the web hosting and investigating the server logs we are spotting requests like the one below which results in a blank email being sent and the API that the submission is sent to is rejecting the submission because one of the fields is required but is empty, in fact all the fields are empty.

    [06/Mar/2021:05:04:04 +0000] “POST /contact-forms/6560/feedback HTTP/1.0” 404 24073

    Furthermore, the website uses a function and the hook, ‘wpcf7_before_send_mail’ to process the data, send that data to a eCRM API as well as sending an email as a record. The webhost is nginx WordPress managed hosting solution. I believe it is related to a current open issue, https://github.com/takayukister/contact-form-7/issues/359 .

    It appears that the request is being made resulting in a 404 error but the function/hook is still being triggered.

    By in large, the form is working fine and any submitted legitimate data is being processed correctly but these blank submissions are being noticed.

    Is there a workaround in the meantime?

    Thanks,
    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • This isn’t an isolated incident; every CF7 form on every site I’ve tested over about 8 hours today while trying to troubleshoot something complex has returned a 404 for the feedback AJAX.

    The messages are still going through but end users aren’t receiving any feedback.

    I have tested this on complex, intricate sites, so my own personal site where I disabled everything except CF7 and the only fields are name, email, phone & message.

    Regardless of the environment/hosting, WP configuration, plugins being used, themes being used, the only constant is that CF7 does not give the end user feedback and the console offers a 404 error for feedback.

    Thread Starter robrandell

    (@robrandell)

    Thanks tonydjukic. I have rolled back to v5.3.2 and will see how that fares.

    The latest plugin was causing issue on another site in development flagging up the wp classes not being found and the api-fetch not working, deactivated the plugin and the errors ceased. So, rolled that one back too.

    Thanks,
    Rob

    Thread Starter robrandell

    (@robrandell)

    Figured out the blank email issue. There is two forms on the website and a check for the id for the form being used. That method for retrieving the id has been updated. The system didn’t know which form was being used so the hook applied to both and not just the one form as intended.

    $wpcf7 = WPCF7_ContactForm::get_current();
    $form_id = $wpcf7->id();
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 Errors’ is closed to new replies.