You do not have permission to view this page

Hi all,

I imported the wp-content and database file and local created the site. The site works fine as far as I can tell.

But when I try to login I get a “You do not have permission to view this page.”. When I then copy and paste the link in another browser I do get forwarded to the WP login page.

However, when I then log in I get forwarded to the homepage (not the admin area) and at the top I see the toolbar but it only contains the name of the site on the left and the WP logo and when I click the little logo I see a menu that can bring me to wordpress.org, documentation, learn wordpress and so on and on the right I see my name and if I click that all I can do is log out.

Anyone know what might be going on here?

Martin

Hi @Martin1

To start you might try creating a new admin user using the steps here:

If you’re still having trouble you can use the Site Shell function to disable plugins. If you have any type of plugins that are related to security, user management, redirects, etc they might be interfering now that the site is in a new environment. To deactivate everything at once you could just use the Open Site Shell function in local and then run this command:

wp plugin deactivate --all

It seems this is above my paygrade :sweat_smile:.

I placed this behind the prompt wp user create JOHN TEST@TEST.COM --role=administrator

and then I get the error:

Error: This does not seem to be a WordPress installation.
The used path is: C:/Users/wolfs/
Pass --path=path/to/wordpress or run wp core download.

I did manually disable all the plugins and the theme used but that didn’t help. Forgot to mention that.

Hi @Martin1

If you create a new, blank site in Local are you able to access that okay? If that works, maybe you can try manually importing the SQL and WP Content into the new install and see if that works okay.

Manually Import a Local Site

Hi,

I can still create a blank site so I copied the wp-content inside the app > public folder after I have deleted the old folder.
I copied the database to the same folder
Opened the shell and again I get the same error

C:\Users\wolfs>wp db import GwrTWMe4iBxSSJePH2YcdN2u.sql
Error: This does not seem to be a WordPress installation.
The used path is: C:/Users/wolfs/
Pass --path=path/to/wordpress or run wp core download.

I have no clue why I get that error.

Hmm there could be a few reasons why this issue is persistent. Looking around the forums I’ve found some others who ran into the same and shared what fixed it for them if you want to review and test:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.