• Resolved skrondgar

    (@skrondgar)


    Hi,

    I tested several jQuery versions but the problem cannot be resolved even when deactivating the cache. If a user tries to subscribe through Mailpoet form this is shown in the browser console:

    POST https://xxxx-xxxxx.de/wp-admin/admin-ajax.php 400
    send @ jquery.min.js:2
    ajax @ jquery.min.js:2
    s.ajax.s.ajax @ jquery-migrate.min.js:2
    S.<computed> @ jquery.min.js:2
    request @ public.0968942a.js:2
    post @ public.0968942a.js:2
    (anonym) @ public.0968942a.js:2
    trigger @ public.0968942a.js:2
    _trigger @ public.0968942a.js:2
    onSubmitValidate @ public.0968942a.js:2
    (anonym) @ public.0968942a.js:2
    dispatch @ jquery.min.js:2
    v.handle @ jquery.min.js:2`

    I will reactivate autoptimize and other plugins since we need them. Please advice.

    Kind regards,

    Robert

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there Robert,

    As a first step, please make sure you are updated to the latest versions of both the MailPoet plugin, and the MailPoet premium plugin (if it’s in use).

    I am seeing previous reports of 400 Errors from admin-ajax.php when users try to fill out a form to subscribe — in some cases, I see this was caused by using an email address that was not authorized on their MailPoet 3 account. Please ensure the FROM Email address in your settings has been authorized. We have guides for this here:

    https://kb.mailpoet.com/article/266-how-to-add-an-authorized-email-address-as-the-from-address
    https://kb.mailpoet.com/article/262-guide-to-use-verified-from-email-address

    Please let me know how that goes, or if you have any questions!

    Thread Starter skrondgar

    (@skrondgar)

    Hi,

    I checked my account and the e-mail address is authorized and the problem remains. What’s next?

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    I took a look at your site — https://bitcoin-kurier.de —?and tried submitting the form on the homepage. I saw the same 400 error that you reported as well.

    In the browser, it looks like the response is being returned by Cloudflare.

    If you temporarily disable Cloudflare on the site, and clear all caching, do you see the same issue if you test again?

    Thread Starter skrondgar

    (@skrondgar)

    Well, deactivating CF didn’t work out. There is one more thing I’ll have to mention. The subscription form works for users who are logged in.

    Hi there @skrondgar,

    I apologize for the late reply!

    We’ve seen this before if there are caching or security plugins on your site that are blocking non-authorized AJAX requests. It also can be your host’s permissions coming into play here.

    Can you please check if disabling such plugins help? Also, please check with your host if there is anything in your server config that may block these requests.

    Let us know how it goes!

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    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 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No new subscriptions possible, admin-ajax.php 400’ is closed to new replies.