HI!
I have the same problem with my template.
It depends on a lock code used to prevent access to the wp back-end for specific user roles.
In my case, only users who can moderate comments are allowed to the back-end (editor and admin), all the others will be redirected to the 404 page on front-end.
My code:
add_action( 'init', 'blockusers_init' );
function blockusers_init() {
if ( is_admin() && !current_user_can( 'moderate_comments' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
wp_redirect( home_url() . '/not-found/' );
exit;
}
}
The reason why this happens is that the Mail Poet form sends the data to the file “…/wp-admin/admin-post.php” that, as you can see, it’s located in the “wp-admin” folder to which we have denied access to users without the required requirements.
THE STRANGE THING
is that it happen only for “manage subscription form” but not for “registration form”, even if both forms send datas to the same file “…/wp-admin/admin-post.php”.
At the time I still searching a solution!