<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>//beconfused &#187; troubleshoot</title>
	<atom:link href="http://beconfused.com/tags/troubleshoot/feed/" rel="self" type="application/rss+xml" />
	<link>http://beconfused.com</link>
	<description>Oh damn, I need a better tagline than this.</description>
	<lastBuildDate>Wed, 17 Feb 2010 04:01:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to solve &#8216;You do not have sufficient permissions to access this page.&#8217; in WordPress</title>
		<link>http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/</link>
		<comments>http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 03:24:54 +0000</pubDate>
		<dc:creator>Mr. Dew</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[site related]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://beconfused.com/blog/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/</guid>
		<description><![CDATA[I have been running into troubles logging in to WordPress and was kinda frustrated all morning.
Basically each time I use tried to log in, I get:
You do not have sufficient permissions to access this page.
I could not edit the blog, nothing works except the front page. I did a couple of searches at Google but [...]


Related posts:<ol><li><a href='http://beconfused.com/2005/03/12/find-replace/' rel='bookmark' title='Permanent Link: find//replace'>find//replace</a></li>
<li><a href='http://beconfused.com/2007/12/30/wordpress-232-released/' rel='bookmark' title='Permanent Link: WordPress 2.3.2 released!'>WordPress 2.3.2 released!</a></li>
<li><a href='http://beconfused.com/2006/06/02/wordpress-203-has-been-released-today/' rel='bookmark' title='Permanent Link: point//three'>point//three</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been running into troubles logging in to WordPress and was kinda frustrated all morning.</p>
<p>Basically each time I use tried to log in, I get:</p>
<blockquote><p>You do not have sufficient permissions to access this page.</p></blockquote>
<p>I could not edit the blog, nothing works except the front page. I did a couple of searches at Google but the solutions didn&#8217;t seem to work for me.</p>
<p>In the end, I did a new installation of WordPress and scrutinized every damn thing in the users and usermeta table between a database that worked and a database that doesn&#8217;t.</p>
<h3>Did you change the prefix of your table names in WordPress after the migration?</h3>
<p><span id="more-1635"></span></p>
<p>In my old database, I used &#8216;wp_&#8217; as my prefix. As I migrated, I decide to use &#8216;wp3_&#8217; instead of &#8216;wp_&#8217;. Unfortunately, the meta_key values are tied down to:</p>
<ul>
<li> wp_user_level</li>
<li> wp_capabilities</li>
<li> wp_autosave_draft_ids</li>
</ul>
<p>I need to update it to</p>
<ul>
<li> wp3_user_level</li>
<li>wp3_capabilities</li>
<li> wp3_autosave_draft_ids</li>
</ul>
<p>I wrote an SQL statement to share, just replace &#8216;prefix_&#8217; with your new WordPress prefix. The following statements go to &#8216;meta_key&#8217; and does a string replace from &#8216;wp_&#8217; to &#8216;prefix_&#8217;.</p>
<p><code>UPDATE `prefix_usermeta` SET `meta_key` = REPLACE( `meta_key` , 'wp_', 'prefix_' );</code></p>
<p><em>(Make sure you do backups first! Note that the quotes used for string and field name are different.)</em></p>
<p>In the options table, there is &#8216;wp_user_roles&#8217;, make sure you get that changed into &#8216;prefix_user_roles&#8217;.</p>
<p><code>UPDATE `prefix_options` SET `option_name` = 'prefix_user_roles' WHERE `option_name` ='wp_user_roles' AND `blog_id` =0;</code></p>
<p><em>(Make sure you do backups first! Note that the quotes used for string and field name are different.)</em></p>
<p>With everything set, I tried logging in again and it worked. A happy <a HREF="http://wordpress.org/">WordPress</a> user once again. I am using WordPress 2.2.2 before the migration and I did <em>not</em> upgrade WordPress during the migration. Hope it helps. (Applies to WordPress 2.3.3 also.)</p>


<p>Related posts:<ol><li><a href='http://beconfused.com/2005/03/12/find-replace/' rel='bookmark' title='Permanent Link: find//replace'>find//replace</a></li>
<li><a href='http://beconfused.com/2007/12/30/wordpress-232-released/' rel='bookmark' title='Permanent Link: WordPress 2.3.2 released!'>WordPress 2.3.2 released!</a></li>
<li><a href='http://beconfused.com/2006/06/02/wordpress-203-has-been-released-today/' rel='bookmark' title='Permanent Link: point//three'>point//three</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>155</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->