WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Maintenance Mode] insufficient permission for the admin!? (2 posts)

  1. kaigou
    Member
    Posted 5 years ago #

    Sounded like a useful thing, loaded it up, and all I'm getting is "you do not have sufficient permission to access this page." I'm the admin, if I don't have enough permission, who does? I've been through the plugin's code to see where it's squeezing so tight that even admins aren't considered admins, but no amount of tweaking seems to be fixing it.

    Really disappointing, since the only other option I can find (site_unavailable) renders the front-end closed off, and that doesn't do me any good if I'm testing a plugin that has front-end impact. I could really use this plugin, if it would just LET me!

  2. BrendanAdkins
    Member
    Posted 4 years ago #

    I haven't tried the Maintenance Mode plugin, but I had a similar situation come up with an in-house plugin today and one of my fellow developers clued me in.

    That "insufficient permissions" page comes up when WP doesn't think the page you're trying to access has been registered under the admin menu. Poke around the plugin code and find the main activation document for it; it will probably have a bunch of add_menu_page() and add_submenu_page() calls on it. Check the URL for the page you're trying to get to and make sure that it's being added as a menu or submenu page somewhere. (Alternately, check to make sure it's not getting misspelled, either in the link you followed or in the activation call.)

    Obviously hacking the code for a plugin you're trying to use is less than ideal, and I don't know enough about your situation to be very specific, but I hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic