vanessajaded
Member
Posted 7 months ago #
I just downloaded the plugin WP-CRM for WP-Invoice and as I was editing my own user profile, I forgot to select Administrator as my Role before I hit save/update. Now whenever I try to log in it gives me the 'You do not have sufficient permissions to access this page.' error message.
Can someone please let me know how I can get back in and set my permission back to Administrator?!
Look at the instructions here by the third poster: http://wordpress.org/support/topic/probably-hacked-must-change-capabilities-in-phpmyadmin?replies=16
Basically you need to find your profile's wp_capability entry in the usermeta table, it will most likely be in the meta_key 'wp_capabilities'
Replace the meta_value with 'a:1:{s:13:"administrator";b:1;}' which is the default capability setting for an administrator.
Or run this query on your DB (be sure to back things up first!) and replace '1' with whatever your user ID is.
UPDATE wp_usermeta SET meta_value = 'a:1:{s:13:"administrator";s:1:"1";}' WHERE meta_key = 'wp_capabilities' AND user_id = '1'
vanessajaded
Member
Posted 7 months ago #