If you have a wp-content and sql you can simply zip them up together and then drag and drop that compressed file into Local which will automatically spin up a new site with those files.
For a more manual workflow, your process would look like this:
You could attempt a more manual import. The steps would look something like this:
Unzip the file in a common location, like the desktop
Create a new, blank site in Local. Use whatever username/password you like since you’ll overwrite the DB with this site archive’s dump.
Copy the wp-content folder from the unzipped location to this newly created site’s location
Copy the correct SQL dump to the site root.
Within Local, open the site shell
Import the dump with wp db import
If that works, now Search and replace the domains. wp search-replace ’ https://production.com ’ ‘http:mylocalsite.local’
H,
thank you for answering.
In the first case, do I have to modify the database? ie replace the domain with the one provided by Localwp, or will the domain be replaced by Localwp?
Anyway I created a zip file with the wp-content folder and the original sql file. I dragged the zip file into Local and it actually created the site, unfortunately it doesn’t open and the browser returns fatal error.
I opened “Open Site Shell”
and ran the command “wp config shuffle-salts” which confirmed with “Success: Shuffled the salt keys.”
But the site in the browser always fatal error.
The fatal error specifically mentions envato-wordpress-toolkit-master. If you open the site shell again and run wp plugin deactivate envato-wordpress-toolkit-master can you see if that will work?
the command gave an error, but I deactivated the plugin manually by renaming it, immediately after other plugins, such as wp-bakery and slider revolution, were signaled by the fatal error.
By disabling them all, the site actually started up and I entered the backend!
But it’s all broken because the main plugins can’t be activated otherwise they create a fatal error, I’ve already tried.
Thanks for your precious help!
Local is awesome, he recreated the site without even having to change the domain in the database!
Now I’ll just have to figure out how to make these plugins work…