• Resolved Kuba Mikita

    (@kubitomakita)


    After installing the plugin, the plugin menu page is not visible anywhere. After clicking the configuration link in the notice, the address is example.com/wp/wp-admin/admin.php?page=gtmkit_general#top#container, but it gives a general wp_die error:

    Sorry, you are not allowed to access this page.

    Looks like the page cannot be registered in the code. Not sure if that matters, but we’re using a Bedrock installation. Happy to provide any more info you need.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Kuba Mikita

    (@kubitomakita)

    Found the issue. Page capability install_plugins is wrong, because if the site is under version control, plugin installation feature should (and is) disabled. This prevents the plugin from loading.

    I suggest switching to manage_options instead.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    I agree that manage_options is better. It will be included in the next release. https://github.com/tlamedia/gtm-kit/pull/128

    Until then you can filter the capability with the filter “gtmkit_admin_capability”

    Thread Starter Kuba Mikita

    (@kubitomakita)

    Yeah, already did that ??

    Thanks for the fast response!

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