• Hello, I am working on a form that a client of mine uses every year to get some information for a contest. Last year the form was working normally but this year the form seems to have an issue with the File field. When I try submitting the form I get a 500 error on the request saying that there has been a critical error on the page.

    I did check if there were updates for CF7 or WP but those are already on the newest versions (5.4.1 for CF7 and WP 5.7.1). The PHP version I have is 7.1 on the live site and 7.2 on the staging site. The problem is happening on both scenarios.

    I tried to create a different form just in case the client messed up with that one and I did just add a name field and a file field. When trying to submit that I still get the 500 error. I did another test without the file field and that just works perfectly.

    I also deactivated all the plugins and changed to a default theme to make sure our custom theme was not the problem and seems to have the same issue.

    We don’t have any hooks or anything that could be interfering with the form process. All other forms on the website work just fine.

    I really have no idea of what could be going on or what else I could look at so any suggestions are welcome. Please help me figure this out.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • the website isn’t publicity accessible so I can’t check if there is an issue ??

    Thread Starter Omar Hernandez

    (@omarzz)

    It should be public accessible, we don’t have any logic to prevent people to get on that form.

    Also just another thing, the form doesn’t do anything so you would have to go into the network tab on the console and do the request there so you can see the results.

    Again here is the page: https://www.chasroberts.com/coolplay/

    @omarzz, Wordfence is limiting the access

    • This reply was modified 3 years, 6 months ago by Erik.
    Thread Starter Omar Hernandez

    (@omarzz)

    So I really don’t know how to unlimit the access on wordfence, I guess we can try with the staging site that I have too. Here is the same form with a default theme and no plugins activated. It is having the same issue so I think we could work on this one.

    https://chasroberts.zionandzion.com/coolplay/

    P.S. I have no idea how to reply to a thread, sorry about that.

    why you use this? have you tried disabling it?
    plugins/bootstrap-for-contact-form-7/assets/dist/js/scripts.min.js

    have you other plugins (like flamingo) installed? asked because I had recently the same problem and it was related to flamingo, sometimes the 500 error is something after wpcf7 who, after create the mail, wait only the response (but the mail passes through many hands)

    Thread Starter Omar Hernandez

    (@omarzz)

    I just deactivated the plugin bootstrap for contact form 7, I didn’t realize I still had it activated and that it would cause problems. Seems that the form is submitting fine now.

    This plugin was used to style the form properly when we developed the site, actually without it it looks terrible so I think we will have to do an adjustment for that.

    This seems to be working fine now so thanks for all your help!

    @omarzz please report this issue to plugin authors! thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘File field on submission gets 500 error response’ is closed to new replies.