What an adventure !
I started out noticing that my “USERS” menu item was missing.
Then I tried to export my .WXR (really a .xml) so that I could upload my data to a new installation if needed thinking this would replace the missing “USERS” menu item. I kept getting “You do not have sufficient permissions to access this page.”
.htaccess manipulations and deactivating all my plugins (including changing the directory names) had no affect on admin getting permissions. Neither did “switching to the default WordPress theme” no go… didn’t work. Even creating a new “administrator” user did not help. I also tried setting all my directory permissions to 777, no go. The “force-upgrade.php” script mentioned in several posts did not work either. There was also nothing in the wp-config.php file that helped including blanking or deleting the “secret” access keys.
I even reloaded all the WP files for 3.0.3 and did the “manual” upgrade instructions and still NADA.
I checked the SQL tables for “admin” (or your adminstrator name)and made sure the wp_user_level is set to “10” in the wp_metauser and that the wp_capabilities is set to
” a:1:{s:13:”administrator”;s:1:”1″;} ” (no quotes) (wp_ is the default prefix and if you named your DB files with something else in your wp-config.php then that is where you need to go look , like wpx_ or wp2_ or wordpress_ etc.)
I finally got the permissions for admin to work by changing the version number in my SQL table to “8204” (it was something like 15032) Make sure you know there is more than one page in the SQL editing and table area…mine had 8 pages and it was on the 2nd page). You have to have access and know how to edit your SQL database files… (scary, I know) and then go to your WordPress directory and “upgrade.php” -voila- Permissions restored. And the “USER” menu item appeared as well!
Now I got permissions to work, BUT every single post and link on my blog got a “404 error” message! I thought I had royally messed up. All the data was there in the DB and in the “posts” when you logged into admin, but none of the links to each “post” would work.
Finally, I had a plugin called “WP DataBase Manager” that has an option to “REPAIR” database. I ran it as a last ditch effort and it worked. It DID! and everything is working perfectly!
Sure hope this saves all you people the 6 hours+ of hunting and digging that I went through.