• Resolved phphphph

    (@phphphph)


    Hi

    The plugin worked great for us for a long time. But with one of the updates the sign-up form has stopped working. Unfortunately we can’t pinpoint when the form stopped working. For logged in admins it works. Everyone else gets:

    > An error has happened while performing a request, please try again later.

    with an error 400 Bad Request as a response to the POST to /wp-admin/admin-ajax.php.

    I’ve deactivated all other plugins and chosen the standard theme. That does not make a difference.

    Any pointers to a solution would be greatly appreciated.

    PHP version: 7.4.30
    MailPoet Free version: 3.92.1
    WordPress version: 6.0.1

    Thanks

    ph

    • This topic was modified 2 years, 8 months ago by phphphph.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bruna a11n

    (@bruberries)

    Hi @phphphph,

    If you’re seeing this error message when using a MailPoet 3 version higher than 3.60.4, it means the subscription form is not working as expected because your website is using an older jQuery version.

    We recommend using jQuery 3.6.0 and we only support 2.2.4+ or 1.12.4+, so you’ll need to update the jQuery version for your website in order to get it fixed. Alternatively, you can roll back to an older version of MailPoet 3 (not recommended).

    If you’re using a recent version of jQuery and the error persists, it could be that you have ModSecurity enabled and it’s blocking the requests coming from our form. In this case, we recommend contacting your hosting support to see if ModSecruity is enabled and if you can disable it for the page where the form is placed.

    Please let us know if it helps!

    Thread Starter phphphph

    (@phphphph)

    Hi @bruberries,

    Thanks for your reply!

    We’re using jQuery 3.6.0, so that shouldn’t be the problem.

    I’ll look into ModSecurity (no time this week) and get back to you.

    But as logged in admins can use the form without a problem, does that really point to ModSecurity or could it be something else?

    Thanks again for your support!

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @phphphph,

    If you’re using Wordfence, for example, it has an extensive number of security features to block Ajax requests.

    In this case, you could temporarily disable the Wordfence plugin and check if the form works as expected.

    Hi there @phphphph,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘400 Bad Requests when submitting form’ is closed to new replies.