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

0
36811
Loading...

(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.

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

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.