<?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>NeoEGM.com &#187; Modify</title>
	<atom:link href="https://www.neoegm.com/tag/modify/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.neoegm.com</link>
	<description>Knowledge is inside</description>
	<lastBuildDate>Mon, 08 Jul 2024 05:38:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>How to fix the &#8220;You do not have sufficient permissions to access this page&#8221; message in WordPress</title>
		<link>https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/</link>
		<comments>https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 20:55:15 +0000</pubDate>
		<dc:creator><![CDATA[NeoEGM]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Administrator]]></category>
		<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Attack]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Default]]></category>
		<category><![CDATA[Fill]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Generate]]></category>
		<category><![CDATA[Injection]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Message]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Modify]]></category>
		<category><![CDATA[Page]]></category>
		<category><![CDATA[Panel]]></category>
		<category><![CDATA[Permissions]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Prefix]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Rename]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[Solve]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[Sufficient]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[Webpage]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[wp-config.php]]></category>
		<category><![CDATA[WP-Security-Scan]]></category>

		<guid isPermaLink="false">http://www.neoegm.com/?p=1308</guid>
		<description><![CDATA[I&#8217;ll tell you my story, but you may be in the same situation having done something completely different, so keep reading&#8230; One day, some time ago, I was very happily installing the WP-Security-Scan WordPress plugin, and I got an analysis result saying that I should change the default WordPress database table prefix in order to [&#8230;]<div class='yarpp-related-rss'>
<strong>
Related posts:<ol>
<li><a href="https://www.neoegm.com/tech/wordpress/plugins/google-xml-sitemaps-generator-with-qtranslate-support-now-available-at-the-wordpress-repository/" rel="bookmark" title="Google (XML) Sitemaps Generator with qTranslate support now available at the WordPress Repository">Google (XML) Sitemaps Generator with qTranslate support now available at the WordPress Repository </a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-remove-the-visual-tab-from-the-wordpress-post-page-editor/" rel="bookmark" title="How to remove the &#8220;Visual&#8221; tab from the WordPress post/page editor">How to remove the &#8220;Visual&#8221; tab from the WordPress post/page editor </a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/hide-wordpress-visual-editor-tab-1-01/" rel="bookmark" title="Hide WordPress Visual Editor Tab 1.01">Hide WordPress Visual Editor Tab 1.01 </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ll tell you my story, but you may be in the same situation having done something completely different, so keep reading&#8230;</p>
<p>One day, some time ago, I was very happily installing the WP-Security-Scan WordPress plugin, and I got an analysis result saying that I should <strong>change the default WordPress database table prefix</strong> in order to make harder the potential SQL Injection attacks&#8230;</p>
<p><a href="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix1.png" rel="lightbox[1308]"><img src="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix1-300x154.png" alt="WordpressAuthorization_TablePrefix1" title="WordpressAuthorization_TablePrefix1" width="300" height="154" class="aligncenter size-medium wp-image-1313" /></a></p>
<p><span id="more-1308"></span></p>
<p>So I went to the link and filled the new prefix in the screen that appeared&#8230;</p>
<p><a href="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix2.png" rel="lightbox[1308]"><img src="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix2-300x129.png" alt="WordpressAuthorization_TablePrefix2" title="WordpressAuthorization_TablePrefix2" width="300" height="129" class="aligncenter size-medium wp-image-1314" /></a></p>
<p>After pressing the &#8220;Start Renaming&#8221; button, I got the following page:</p>
<p><a href="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix3.png" rel="lightbox[1308]"><img src="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_TablePrefix3-300x264.png" alt="WordpressAuthorization_TablePrefix3" title="WordpressAuthorization_TablePrefix3" width="300" height="264" class="aligncenter size-medium wp-image-1309" /></a></p>
<p>Everything seemed to have been done perfectly&#8230;</p>
<p>But&#8230;&#8230; This is what I got after trying to go somewhere else in the administration panel:</p>
<p><a href="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_Insufficient_EN.png" rel="lightbox[1308]"><img src="http://www.neoegm.com/wp-content/uploads/2009/09/WordpressAuthorization_Insufficient_EN-300x47.png" alt="WordpressAuthorization_Insufficient_EN" title="WordpressAuthorization_Insufficient_EN" width="300" height="47" class="aligncenter size-medium wp-image-1310" /></a></p>
<p>The infamous &#8220;You do not have sufficient permissions to access this page&#8221; message&#8230;</p>
<p>From this point on, I could not access the administration panel anymore&#8230; So what could I do?</p>
<p>The problem seemed to be generated by the modification of the WordPress table prefix, so I went to phpMyAdmin to check the database&#8230; Everething seemed OK.. I checked the wp-config,php&#8230; The prefix had been updated&#8230; The site seemed to work flawlessly for normal visitors&#8230;</p>
<p>So I started searching&#8230; And finally found <a href="http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/">a site</a> whose solution I&#8217;ll leave you below in a easier to use way&#8230;</p>
<h3>Solution</h3>
<p>If this problem was generated by a change to the WordPress database table prefix (done by the buggy WP-Security-Scan plugin, by a migration or by other means), you should fill the following two fields and press the &#8220;Generate&#8221; button to generate a SQL Query which you should execute in your database (using phpMyAdmin or other options)&#8230;</p>

<script type="text/javascript">
function WPPrefixGenerateSQLQuery()
{
	var oldprefix = document.getElementById("wpprefix_query_old_prefix").value;
	var newprefix = document.getElementById("wpprefix_query_new_prefix").value;
	
	var queryfield = document.getElementById("wpprefix_query_sql");
	
	var sql = "UPDATE `" + newprefix + "usermeta` SET `meta_key` = REPLACE(`meta_key`, '" + oldprefix + "', '" + newprefix + "');\n\n";
	sql += "UPDATE `" + newprefix + "options` SET `option_name` = '" + newprefix + "user_roles' WHERE `option_name` = '" + oldprefix + "user_roles' AND `blog_id` = 0;";
	
	queryfield.value = sql;
}
</script>

<table border="0" cellspacing="5" cellpadding="0">
	<tr>
		<td>Old Prefix</td>
		<td><input type="text" name="wpprefix_query_old_prefix" id="wpprefix_query_old_prefix" value="wp_" /></td>
	</tr>
	<tr>
		<td>New Prefix</td>
		<td><input type="text" name="wpprefix_query_new_prefix" id="wpprefix_query_new_prefix" value="wp_new_prefix_" /></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="right"><input type="submit" name="button" id="button" value="Generate" onclick="WPPrefixGenerateSQLQuery();" /></td>
	</tr>
</table>
<br />
<table border="0" cellspacing="5" cellpadding="0">
	<tr>
		<td valign="top">SQL</td>
		<td><textarea name="wpprefix_query_sql" style="width: 462px;" cols="45" rows="5" readonly="readonly" id="wpprefix_query_sql"></textarea></td>
	</tr>
</table>
<script type="text/javascript">WPPrefixGenerateSQLQuery();</script>
<p>That&#8217;s all&#8230; If this didn&#8217;t work for you, it may be other kind of problem&#8230; In that case, take a look at the <a href="http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/#comment-82402">comments section</a> of <a href="http://beconfused.com/2007/08/28/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/">this post</a>, since there are some people which found other solutions.</p>
<p>Hope it helps <img src="https://www.neoegm.com/wp-includes/images/smilies/simple-smile.png" alt=":)" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
<h4>Incoming search terms for the article:</h4>
<ul>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="No tienes suficientes permisos para acceder a esta página">No tienes suficientes permisos para acceder a esta página</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="no tienes suficientes permisos para hacer esto facebook">no tienes suficientes permisos para hacer esto facebook</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="No tienes suficientes permisos para acceder a esta página wordpress">No tienes suficientes permisos para acceder a esta página wordpress</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="wordpress No tienes suficientes permisos para acceder a esta página">wordpress No tienes suficientes permisos para acceder a esta página</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="no tiene los permisos necesarios">no tiene los permisos necesarios</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="facebook No tienes suficientes permisos para hacer esto">facebook No tienes suficientes permisos para hacer esto</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="You do not have access to the administrator section of this site">You do not have access to the administrator section of this site</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="No tienes suficientes permisos para hacer esto">No tienes suficientes permisos para hacer esto</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="no tienes suficientes permisos para acceder a esta página wordpress role">no tienes suficientes permisos para acceder a esta página wordpress role</a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/" title="You do not have sufficient permissions to access this page">You do not have sufficient permissions to access this page</a></li>
</ul>
<div class='yarpp-related-rss'>
<strong><p>Related posts:<ol>
<li><a href="https://www.neoegm.com/tech/wordpress/plugins/google-xml-sitemaps-generator-with-qtranslate-support-now-available-at-the-wordpress-repository/" rel="bookmark" title="Google (XML) Sitemaps Generator with qTranslate support now available at the WordPress Repository">Google (XML) Sitemaps Generator with qTranslate support now available at the WordPress Repository </a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/how-to-remove-the-visual-tab-from-the-wordpress-post-page-editor/" rel="bookmark" title="How to remove the &#8220;Visual&#8221; tab from the WordPress post/page editor">How to remove the &#8220;Visual&#8221; tab from the WordPress post/page editor </a></li>
<li><a href="https://www.neoegm.com/tech/wordpress/hide-wordpress-visual-editor-tab-1-01/" rel="bookmark" title="Hide WordPress Visual Editor Tab 1.01">Hide WordPress Visual Editor Tab 1.01 </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
