You do not have sufficient permissions to access this page.

Well, I finally got around to upgrad­ing Word­Press again. I made a fairly prodi­gious leap from 2.5(.somethingsomething) to 2.8 in one step, with pleas­antly few hiccups.

In fact, the only sig­nif­i­cant hic­cup I faced pre­vented me from log­ging in at all (fairly sig­nif­i­cant), giv­ing a charm­ing error: “You do not have suf­fi­cient per­mis­sions to access this page.”

This hap­pened after I went to update my wp-config.php file to incor­po­rate a circa-2.6 inno­va­tion, Secu­rity Keys. AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY and NONCE_KEY added to my wp-config, I attempted to login to the admin area again (it auto-logged me out, fair enough) to be greeted with the afore­men­tioned non-negotiable error!

Turns out it was a pretty stu­pid prob­lem I had… If you get this, check you have inserted the key def­i­n­i­tions before the “Stop edit­ing” com­ment in the doc­u­ment (I think the com­ment is dif­fer­ent in later ver­sions — my wp-config is seri­ously ancient, I’ve been upgrad­ing since 0.73 and would only have started from scratch if at some past point it was required!)

Once I did this the errors went away entirely and I was able to login.

Tags:

posted on Tuesday, June 16th, 2009 at 11:42 pm by Josh, filed under General.

2 Responses to “You do not have sufficient permissions to access this page.”

  1. Laura says:

    Thanks for post­ing this so I could find it on Google! You saved me hours of search­ing for a solu­tion to this problem.

  2. cMax says:

    Sure nuff, mov­ing these above the /*stop editing*/ and every­thing is back to normal.

    After pour­ing over the data­base, plu­g­ins, file perms, and all man­ner of php hack­ing. this turned out to be the issue for me as well.
    I think that some sites that don’t have as much ver­sion his­tory as ours must not be as sen­si­tive to the place­ment of these keys in wp-config.php.

    Woot, and Thanks!!

Leave a Reply