• after installing the plugin, and oce i click wallet to set it up i usually get this error “Sorry, you are not allowed to access this page” please help me with the solution thank you.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    What exactly did you click before this happened?

    Some times when you are editing role capabilities (WalletsCapabilities), the admin user can lose the manage_wallets capability. This capability is required to display the Wallets menu.

    I am not sure exactly under what circumstances this can happen, but in any case there is a fail-safe mechanism that will restore the capability to administrators on the next cron tick: https://github.com/dashed-slug/wallets/blob/4.4.8/includes/caps.php#L252-L283

    Please let me know exactly what you clicked right before the error appeared, so I can investigate.

    with regards,
    Alex

    Thread Starter ditepayhub

    (@ditepayhub)

    I just installed the plugin but couldn’t see where to set it up, but when click wallet i always got “sorry you are not allowed to access this page “

    Plugin Author dashed-slug.net

    (@dashedslug)

    Are you saying that you installed the plugin, and clicked on “Wallets” and immediately saw this error? This is very unusual. Additionally, even if that’s the case, the capability should be restored soon after to all admins.

    In any case, you can force your admin user to have the manage_wallets capability in some other way.

    A good plugin for this is User Role Editor. First, go to SettingsUser Role Editor, and set “Show Administrator role at User Role Editor”. Then, go to UsersUser Role Editor, select the Administrator role, click on Add Capability, and add the manage_wallets capability.

    Alternatively, if you’re using wp-cli you can simply do a wp user add-cap admin manage_wallets.

    Hope this helps.

    with regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorry, you are not allowed to access this page.’ is closed to new replies.