• Resolved Felty

    (@felty)


    Hello, I was doing some testing for a new site and I went to update the permissions for the users and then I got “Sorry, you are not allowed to access this page.” after I saved.

    I suspect I may have locked out the admin from the viewing the plugin but I did not uncheck any user permissions. Just added.

    It was working prior to this so I don’t think it was .httaccess

    -Felty

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Felty

    (@felty)

    A small update. It looks like I’m able to resolve and then replicate the issue by uninstalling the plugin and going back in and adding a permission.

    View post on imgur.com

    And then this after I set…

    View post on imgur.com

    Everything else seems to work… But I need to get the subscribers more permissions to withdrawl.

    Thread Starter Felty

    (@felty)

    So I did some further self investigating… I cloned the site and deleted all plugins. Same issue.

    I modded the htaccess per this other post:

    https://www.hostinger.com/tutorials/fix-sorry-you-are-not-allowed-to-access-this-page-wordpress

    Still same issue.

    Thread Starter Felty

    (@felty)

    And further investigation…

    I had an admin account who was also a profile grid participant… I set that role to have full access and lo and behold that admin account can get access, but not the one that is just an admin. Seems like the default admin role is getting nuked some how while the roles listed are fine.

    View post on imgur.com

    Thread Starter Felty

    (@felty)

    Allright… I solved this but I think you may want to look at it as might be an issue others will have.

    Basically I installed “WPFront User Role Editor” and created a role called Wallet_Warrior and assigned it to all the admins and as it showed up in the list, gave it all capabilities.

    That basically resolved the problem as the admins are now also under that role as well.

    Some plugins that may have caused this could have been:

    WordFence
    ProfileGrid
    wpForo

    Which are fairly common but let me know if you need further information.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Hello and thanks for your feedback.

    Normally, the plugin does the following, after activation:

    https://github.com/dashed-slug/wallets/blob/master/includes/caps.php#L65-L88

    This ensures that the admin has the manage_wallets capability, and that users who can edit posts get has_wallets and the other capabilities.

    Are you on a multisite install? If the plugin is network active, it would explain the issue. The manage_wallets capability is given to users who can manage the network.

    with regards

    Thread Starter Felty

    (@felty)

    Hi Dashed,

    No, I don’t have a multi-site install. But I do use Softaculous and have previously cloned the site to a subfolder to do some testing (These day I install to a sub domain and not folder) but deleted the folder a while back before installed this plugin.

    So only this site has plugin installed.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Thank you Felty for the additional info.

    I am closing this thread since you managed to resolve the issue, but I will investigate.

    with regards

    Apparently, the developers did not solve the issue ? I also ran into this problem.

    Plugin Author dashed-slug.net

    (@dashedslug)

    @CoinExtrude

    Hello, I was never able to reproduce the problem.

    To immediately solve your issue, you can use any plugin for editing capabilities, and ensure that your admin user or user role has the manage_wallets capability. If you wish to do this with wp-cli instead, then the command to add the capability to the admin user would be wp user add-cap admin manage_wallets.

    To give a little bit of background, normally the plugin, when activated, assigns manage_wallets to any user role that already has manage_options (usually this is the administrator role), or in the case of a network-active setup, to users with manage_network i.e. super admins:

    https://github.com/dashed-slug/wallets/blob/4.4.1/includes/caps.php#L65-L88

    If you want to help me figure out what the cause is, please tell me:

    1. Are you using the plugin on an Multisite install? Is it network-activated?

    2. Does your admin user Role have the manage_options capability?

    3. Does you admin user have the administrator role, or does it only have some other plugin-specific role, such as um_admin?

    with regards
    Alex

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