Skip Navigation

I got this excellent tip from a user in our forum. It would come in handy if you just upgrades WordPress and are getting this error:

You do not have sufficient permissions to access this page

Now, that 100 million sites are upgrading to WordPress 3.0, there’s a good chance folks get bitten by it.

If your WordPress install is a non-English version, and you haven’t changed the default authorization keys in wp-config.php to something else, it’s possible that the WPML install will fail and prevent you from logging into the admin area with a message in your language with a meaning similar to ‘You do not have sufficient permissions to access this page.’

To prevent this issue and be able to install WPML without problem, please first change the four authorization keys on your wp-config.php to something else. You can use the following link to create a set of four random keys ready to be pasted into your wp-config.php:

Changing these keys will cause all logged in users to be logged out, forcing them to log in again the next time they access your blog. Other than that, there are no ill effect.

If you installed WPML without taking the above precaution and are now unable to access your admin area, delete the WPML folder, sitepress-multilingual-cms, from within wp-content/plugins, and you’ll be able to login into it again. Then follow the above procedure to be able to install it.

This behavior is caused by a bug in the WordPress core that can also affect other plugins. Changing the authorization keys from their default value is the safest way to avoid potential problems not only with WPML, but with them too.

16 Responses to “Fixing – “You do not have sufficient permissions to access this page””

    • Cyrille: Thanks a lot!!
      I´ve been struggling with this issue for a long time now. The four more keys got it going. I´m so happy.
      Thanks again:)

      • Yes, I think this is a point the WordPress team should mention, because everyone do the automatic update, and nobody will update his wp-config.php file…

  1. Thanks for mentioning it! Too bad I wrote this in a hurry back then. I should have revised it better. It’s full of grammatical errors. 🙁

    Well, as long as it helps those experiencing this issue I guess that’s okay. Better badly written than not written at all. 🙂

  2. i don’t know what to do. I don’t know anything about html really or my database. Can I get step by step instructions.

    I can get in the backend of my site but I cannot edit any pages I created or post.

    This is a real nightmare.

  3. Greate tip! Thank you very much.

    For lower version of wordpress is same solution, but you have to paste first 4 line from this link…

    • This is not an issue with WPML, but with WordPress. It will happen without WPML too, if you just switch the locale on an existing sites (for some sites, not all).

  4. the info was helpful but my issue was solved today using the method listed here :
    I had two sites, one of them actually had the above solution, and one of them had your solution…
    The weird part about WP is that it always spits the same error
    We have to go trying all your guys solutions everytime till one of them hits a good return for us !
    WP should really work towards specifying admin errors, makes life easier for admins 😀