title: Wordpress WP-ADMIN You do not have sufficient permissions to access this page.
body: <p>When I try to visit my site <a href="http://www.diskdrivesolutions.com/wp-admin/" rel="nofollow">http://www.diskdrivesolutions.com/wp-admin/</a> to login I get this error "You do not have sufficient permissions to access this page.".</p>
  
  <p>So then I did some research online &amp; found the code below to help debug what is going on. All I did was added the code below to my functions.php file.</p>
  
  <pre><code>&lt;?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 . "&lt;br/&gt;";
      echo "Parent = " . $parent . "&lt;br/&gt;";
      echo "Hookname = " . $hookname . "&lt;br/&gt;";
  
      echo "Menu = " . $menu . "&lt;br/&gt;";
      echo "Submenu = " . $submenu[$parent] . "&lt;br/&gt;";
      echo "Menu nopriv = " . $_wp_menu_nopriv . "&lt;br/&gt;";
      echo "Submenu nopriv = " . $_wp_submenu_nopriv[$parent][$plugin_page] . "&lt;br/&gt;";
      echo "Plugin page = " . $plugin_page . "&lt;br/&gt;";
      echo "Registered pages = " . $_registered_pages[$hookname] . "&lt;br/&gt;";
  
  }
  ?&gt;
  </code></pre>
  
  <p>Now when I visit <a href="http://www.diskdrivesolutions.com/wp-admin/" rel="nofollow">http://www.diskdrivesolutions.com/wp-admin/</a> I get the error messages below.</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>Can someone please help me figure out what is going on? I really need to fix this as soon as possible.</p>