What are the possible causes for getting the "You do not have sufficient permissions to access this page." message when logged in as admin? I've done a lot of searching and found a lot of possible solutions, but in my case they haven't worked.

In my case I've taken a copy of a database off our staging site (close enough to having the same code) and placed it on dev, done the usual steps of changing values in the options table, gone to the lengths of disabling all plugins (through the database, even to the point of renaming the plugins folder). It was a multisite install at one stage (but this should have been cleaned up). I can log in, but get the access denied when I try and go to the dashboard page.

  • The main purpose of this question is to build up a bit of a repository of possible reasons for the access denied error (as admin, aka user 1). While I have a specific problem (and the one that solves this will get the accepted answer), it is more so that others that google the issue can see a list of possible solutions to their problem (which may or may not be the same as mine). Dec 1, 2011 at 20:48

2 Answers 2


In my case it happend that the capability for user 1 somehow got wiped, so the SQL command: INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES(1,"wp_capabilities",'a:1:{s:13:"administrator";b:1;}'); did the trick.


Yes this happens either there is no proper permission or you might placed wrong argument for custom post or meta box.

Could you please elaborate so that I can spot it out where exactly the problem, assuming that you are created custom post type or custom meta box with wrong arguments.

  • That doesn't make sense to me - as mentioned in the question I've disabled all plugins (so it shouldn't be a problem with custom post types - but I'll look into that just in case). Dec 1, 2011 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.