To sum up this problem, because it looks like no one has, this is what works (a cocktail of fixes provided in this thread). If you’ve upgraded to WP2 using the upgrade.php and are getting the message “You do not have sufficient permissions to acces this page” when accessing the dashboard, do the following:
Step 1
Log out of wordpress if you have not already. You should not be signed in.
Step 2 (from Ghacks)
*Note: Select INSERT only if the upgrade process did not create the rows. In my case, the upgrade did insert the rows, but inserted / kepted the wrong information at which I had to correct the entry from data from another install and not INSERT a new row. There are a few tweaks to Ghacks attempt.
Start Phpmyadmin
Select wp_usermeta table
Select BROWSE
Select INSERT*
user_id = 1
meta_key = b2capabilities
meta_value = a:1:{s:13:”administrator”;b:1;}
SAVE
Select INSERT*
leave all as is except:
user_id = 1
meta_key = wp_user_level
meta_value = 10
SAVE
Select wp_options table
Select BROWSE
Select INSERT*
leave all as is except:
user_id = 1
meta_key = wp_capabilities
meta_value = a:5:{s:13:”administrator”;a:2:{s:4:”name”;s:13:”Administrator”;s:12:”capabilities”;a:30:{s:13:”switch_themes”;b:1;s:11:”edit_themes”;b:1;s:16:”activate_plugins”;b:1;s:12:”edit_plugins”;b:1;s:10:”edit_users”;b:1;s:10:”edit_files”;b:1;s:14:”manage_options”;b:1;s:17:”moderate_comments”;b:1;s:17:”manage_categories”;b:1;s:12:”manage_links”;b:1;s:12:”upload_files”;b:1;s:6:”import”;b:1;s:15:”unfiltered_html”;b:1;s:10:”edit_posts”;b:1;s:17:”edit_others_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:10:”edit_pages”;b:1;s:4:”read”;b:1;s:8:”level_10″;b:1;s:7:”level_9″;b:1;s:7:”level_8″;b:1;s:7:”level_7″;b:1;s:7:”level_6″;b:1;s:7:”level_5″;b:1;s:7:”level_4″;b:1;s:7:”level_3″;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;}}s:6:”editor”;a:2:{s:4:”name”;s:6:”Editor”;s:12:”capabilities”;a:19:{s:17:”moderate_comments”;b:1;s:17:”manage_categories”;b:1;s:12:”manage_links”;b:1;s:12:”upload_files”;b:1;s:15:”unfiltered_html”;b:1;s:10:”edit_posts”;b:1;s:17:”edit_others_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:10:”edit_pages”;b:1;s:4:”read”;b:1;s:7:”level_7″;b:1;s:7:”level_6″;b:1;s:7:”level_5″;b:1;s:7:”level_4″;b:1;s:7:”level_3″;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;}}s:6:”author”;a:2:{s:4:”name”;s:6:”Author”;s:12:”capabilities”;a:8:{s:12:”upload_files”;b:1;s:10:”edit_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:4:”read”;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;}}s:11:”contributor”;a:2:{s:4:”name”;s:11:”Contributor”;s:12:”capabilities”;a:4:{s:10:”edit_posts”;b:1;s:4:”read”;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;}}s:10:”subscriber”;a:2:{s:4:”name”;s:10:”Subscriber”;s:12:”capabilities”;a:2:{s:4:”read”;b:1;s:7:”level_0″;b:1;}}}
SAVE
Step 3 (by wangxiaohu)
In your ftp client or web development software, delete the “cache” folder located in the wp-content folder off the main directory. When you sign back in, WP2 will create a new cache folder with all the latest information from the changes made in Step 2. If you do not sign out (as recommended in Step 1), you risk keeping some of the same cache from that sign in and thus you will continue to get the problem.
Step 4
Now sign back into WP2. You should now be able to avoid the message and sign into the dashboard. Be sure to signout of your DB as well.
Hope this will save someone 8 hours of pain.