• CJ Marketing

    (@selfimprovementblog)


    Hello all,

    I have a problem with wordfence and contact form 7. I got an email from my customer that the contact form on his website that I made doesn’t work anymore. (It has worked before)

    On this website, there are two contact forms. One without an option to send a file, and one with an option to send files such as CV. The one without the option to attach a file works fine, but the other one doesn’t. So I started debugging and found out that this only happens when wordfence is enabled, and specifically the firewall.

    I tested on “learning mode”, but that didn’t work. Only when I disable the firewall my form is sending. Otherwise, the thing is just spinning.

    Also in the Google console (when the firewall is enabled) I get this error: POST https://www.mijnders-transport.nl/wp-json/contact-form-7/v1/contact-forms/1033/feedback 500 (Internal Server Error)

    All updates and WordPress are updated to the latest versions.

    Does anybody know how to fix this?

    Thanks a lot!

    added: What I just found out is, that the form will also work (with firewall enabled) if the user is logged in.

    So it only doesn’t work when you’re not logged in and sending a file.

    Also some extra information, the website is running on PHP 7.0.33

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @selfimprovementblog,

    Can you please share any relevant errors in your PHP error logs? This might give us a clue as to what’s happening.

    Also, in Wordfence > Live Traffic do you see the blocks? If so, can you share a screenshot of the expanded Details?

    Please let me know.

    Thanks,

    Gerroald

    Thread Starter CJ Marketing

    (@selfimprovementblog)

    Hey Gerroald,

    Thanks for answering, the weird thing is that there are no logs generated related to wordfence. Also, the contact form is not blocked in the Live Traffic logs.

    The only error I can find is the one in the screenshot below.
    https://corne.roleplayunited.nl/3u2Vb2.png

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact form 7 not sending files while firewall enabled’ is closed to new replies.