Sunday, July 28, 2013

WordPress: "You do not have sufficient permissions to access this page"



To fix this issue, simply add or edit values in wp_usermeta table.


If you are in CPanel:

  • Login to your CPanel -> Databases -> then click phpMyAdmin 








  •  Select your website database in the left drop down box. (see sample below)





  • Next is click on the wp_usermeta table 
  • Click on the insert tab or edit the information if already exist, make sure you have edit only those have same user_id with your login creds.
    • unmeta_id - Leave it blank (it will be auto-generated). 
    • user_id - This is the user id of your account. 
    • meta_key - insert this value wp_capabilities 
    • meta_value - insert this value a:1:{s:13:"administrator";s:1:"1";}
      
                NOTE: Please be careful in using curly quotes. 
           a:1:{s:13:"administrator";s:1:"1";}is different from a:1:{s:13:”administrator”;s:1:”1″;}

No comments:

Post a Comment