Header Ads

Wordpress Error: You do not have sufficient permissions to access this page

(How to fix Wordpress error: You do not have sufficient permissions to access this page) Wordpress is an open source content management system to setup a blog. Because of its features and plugin support it becomes the most widely used blogging platform across the world. When I tried to move my Wordpress site to a new domain, I met an error:

You do not have sufficient permissions to access this page

I have tried many ways, include: check config.php setting (database name, user/password, table prefix...) and set CHMOD... but... no problems found.

[caption id="attachment_935" align="aligncenter" width="480"]Wordpress Error: You do not have sufficient permissions to access this page Wordpress Error: You do not have sufficient permissions to access this page[/caption]

After an hour finding the reason and how to resolve it, I finally found that because I changed my database table prefix from wp_oldsite to wp-mynewsite

Here are guide how to fix error: You do not have sufficient permissions to access this page

You just need to go to your database (PhpMyAdmin)

  1. Brows table wp_option, and find wp_user_roles under column option_name. You have to change wp_user_roles to the prefix you are using (or changed). Let's say you change prefix to wp-mynewsite... then you have to go to table wp_new_option table ,find wp_oldsite_roles and edit it to wp_mynewsite_roles.
  2. Brows table wp_user_meta and find wp_capabilities,wp_user_level:- under meta_key column and edit respective to wp_mynewsite_capabilitieswp_mynewsite_user_level.

Now you can login to domainname.com/wp-admin.

Hope it can help!

Enjoy.

No comments:

ANZICT. Powered by Blogger.