membership plugin give permission denied in admin dashboard

I have your membership plugin and for some reason i am getting permission denied when viewing the dash board when my account is the Admin of the site.

Could you please help.

  • Tyler Postle

    Hi Adolfo,

    I have your membership plugin and for some reason i am getting permission denied when viewing the dash board when my account is the Admin of the site.

    Uh Oh! That's no good. Is the account you tried to login with the only Admin account?

    You could try sticking this in your wp-config if not:

    define( 'MEMBERSHIP_MASTER_ADMIN', 'USERNAME');

    Change the username to your own.

    If your admin access is wrong in the DB, you could also try:

    This is what you (or someone else) need to do:
    1. login to your database with phpmyadmin if you have it.
    2. Find your admin user, get the user_id for it - probably 1.
    3. Go to the wp_usermeta table and look for the options wp_capabilities and wp_user_level
    4. Set the wp_user_level line to 0.
    5. Set the wp_capabilities line to
    a:1:{s:13:"administrator";s:1:"1";}
    6. Remove the membershipincludes/plugins/integrated.wproles.php file
    7. Should now be able to login to your WP blog.

    Please try those possible solutions above. They are taken from this post here: https://premium.wpmudev.org/forums/topic/membership-locks-out-admin-access

    If that still doesn't resolve the issue then please post back and we will continue to help you out until a solution is found!

    Cheers,
    Tyler

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.