You are not allowed to access this page – error on plugin activation

[ad_1]

Hi, when trying to activate myCred plugin on an existing site I am getting “You are not allowed to access this page” error.

I have tried almost everything and without any success:

  • PHP version upgrade (8+)
  • deactivating all other plugins
  • restoring htaccess and wp-config to defaults
  • deleting any security plugins (Wordfence) and role extension plugins (Publishpress Capabilities)
  • switching to default wordpress theme
  • reseting roles and priviliges to wordpress defaults
  • creating new admin account

Still always same error. This seems very weird. After many hours of troubleshotting I gave up and trying to seek help here. It’s seems like some kind of an edge case related to authorization. Somehow upon plugin activation WordPress does not want to allow MyCred to be visible and added in the menu. I did not face it with any other plugin.

Query monitor shows upon error following additional info:

This message was triggered by WordPress Core.

Call stack:

  1. wp_die()
    wp-admin/includes/menu.php:364

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer