• Resolved amenih

    (@amenih)


    Hi!

    Saving changes in the manage subscription page is not functional as a subscriber (change of status or first name for example).
    But in case I logged in as admin, all is well.

    Thanks

    • This topic was modified 3 years, 10 months ago by amenih.
Viewing 3 replies - 1 through 3 (of 3 total)
  • 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!

    Hi there @amenih,

    Sorry for the late reply!

    I cannot replicate the same behaviour on my test site with the latest version of MailPoet.

    Can you please ensure that you’re using the latest version?

    Also, does the same happen if you switch your theme to a default one like Twenty Twenty and disable all other plugins?

    Cheers!

    Hi there @amenih,

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem in saving changes in Manage Subscription Page’ is closed to new replies.