When I try to visit my site http://www.diskdrivesolutions.com/wp-admin/ to login I get this error "You do not have sufficient permissions to access this page.".
So then I did some research online & found the code below to help debug what is going on. All I did was added the code below to my functions.php file.
<?php
add_action('admin_page_access_denied', 'debug_page_access');
function debug_page_access() {
global $pagenow;
global $menu;
global $submenu;
global $_wp_menu_nopriv;
global $_wp_submenu_nopriv;
global $plugin_page;
global $_registered_pages;
$parent = get_admin_page_parent();
$hookname = get_plugin_page_hookname($plugin_page, $parent);
echo "Pagenow = " . $pagenow . "<br/>";
echo "Parent = " . $parent . "<br/>";
echo "Hookname = " . $hookname . "<br/>";
echo "Menu = " . $menu . "<br/>";
echo "Submenu = " . $submenu[$parent] . "<br/>";
echo "Menu nopriv = " . $_wp_menu_nopriv . "<br/>";
echo "Submenu nopriv = " . $_wp_submenu_nopriv[$parent][$plugin_page] . "<br/>";
echo "Plugin page = " . $plugin_page . "<br/>";
echo "Registered pages = " . $_registered_pages[$hookname] . "<br/>";
}
?>
Now when I visit http://www.diskdrivesolutions.com/wp-admin/ I get the error messages below.
Pagenow = index.php
Parent =
Hookname = admin_page_
Menu = Array
Submenu =
Menu nopriv = Array
Submenu nopriv =
Plugin page =
Registered pages =
You do not have sufficient permissions to access this page.
Can someone please help me figure out what is going on? I really need to fix this as soon as possible.