• After a successful installation, I didn’t see any Menu that let me access the configuration for this plugin. After checking the Plugins Page, and clicked on the provided link under the Redirection plugin’s row, WordPress displayed an access-denied page.

    You do not have sufficient permissions to access this page

    Based on my previous experiences with plugin development issue, I took the opportunity to check the code, and look for the add_menu_page call and the capability that was set. So there was this function admin_menu(), with this line:

    add_management_page( __( "Redirection", 'redirection' ), __( "Redirection", 'redirection' ), apply_filters( 'redirection_role', 'administrator' ), basename( __FILE__ ), array( &$this, "admin_screen" ) );

    I changed the capability parameter, to this one:
    add_management_page( __( "Redirection", 'redirection' ), __( "Redirection", 'redirection' ), 'manage_options', basename( __FILE__ ), array( &$this, "admin_screen" ) );

    And this solved my problem. Hope this might be helpful for you.

  • The topic ‘Glitch on Admin Access’ is closed to new replies.