Why after import site, the local show only text in the browser?

I importing the work site with WP migrate. After I creat site, it doesn’t open. It show we only php text in the browser. Shows what is contain in index.php(I think). What to do?

Hey @Alex87!

As a quick test, if you create a new blank site in Local. Does that open okay? Just as a baseline to make sure your app is otherwise working normally.

Regarding your site, do your configuration settings match whatever environment you imported it from? WP, PHP, DB, server?

Can you share your Local log with us as well? Instructions here Retrieving Local’s Log File

Hi! Thank you for the fast answer. I created the new site and it work in the browser normaly. But once I cathed this problem on new site… So, I am on window 11 pro. Sending to you the file local-lightning

local-lightning.log (166.8 KB)

It seems like there is an issue with your database that you’re trying to import. You might try exporting a fresh copy of the site again just in case something got interrupted or damaged.

Or you can separate out your WP-Content and Database and manually import them into a new blank site with the steps here: Manually Import a Local Site

I am doing what you wrote me, doing step by step Manually Import a Local Site. But on step “Import your Database with wp db import your-database-filename.sql” I get error

error_on_importDB

Can you share your full Local Log with us @Alex87 so we can compare? If you click on the Question Mark on the left side of your Local app, then scroll down a little bit you’ll see a Download Local Log button. This collects multiple logs into a zip for us.

Certainly.

local-logs.zip (91.5 KB)

It looks like there is a permission or security block somewhere @Alex87.

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, ensure that Local is running as an administrator, that there are no security blockers, and that Local has access to update the Hosts file.