• Resolved yaseico

    (@yaseico)


    Hi when protecting a WordPress wp-admin folder, by restricting access to specific ip addresses (ie good practice) this results in an error for visitors attempting to subscribe. I tried a simple out of the box form, that just requires an email address to subscribe.

    As soon as I remove the protection on wp-admin, then the form works fine.

    This is not ideal since it is better to protect the wp-admin folder access. Could you please advise why this might be the case?

    Thanks
    Tim

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @yaseico 👋🏽!

    Thank you for reaching out to MailPoet Support!

    As soon as I remove the protection on wp-admin, then the form works fine.

    Oh, I am sorry to hear that. Could you please share the error that the subscribers get when you enable the ‘WP-Admin’ protection?

    Then we’ll be able to share that with our developers to see if there’s anything else than can be done.

    Thanks!

    Thread Starter yaseico

    (@yaseico)

    hi @danielinhou

    The error message is “An error has happened while performing a request, please try again later”

    This is displayed on the subscription form when IP address restriction protection of wp-admin is enabled.

    Please note that all WordPress, plug-ins and server php etc are up to date with latest versions.

    Thanks

    Tim

    Elvira K.

    (@treibalen)

    Hi there @yaseico,

    When a subscription form is submitted, our plugin sends a POST request to /wp-admin/admin-ajax.php. MailPoet needs access to /wp-admin/admin-ajax.php as well as a lot of other plugins.

    You need to allow such requests without IP restriction, otherwise, your subscription form won’t work.

    Please try disabling it at least for /wp-admin/admin-ajax.php to see if it works.

    I hope this clarifies a bit, but please let us know if you have any questions!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Subscribe error when wp-admin is protected’ is closed to new replies.