The archive has no wp-content folder

What issue or error are you experiencing?


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @subl! What archive are you referring to? Is this is an exported file of your Local site?

Hi Nick-B,

I downloaded a backup of my live site named backup.tar.gz. I also downloaded a backup of my sql database and added it to the archive. When I click Import site selecting the backup file I the message “The archive has no wp-content folder” but the folder in the backup includes the wp-content folder.

Local’s native import might be having a problem with something in your file so as a workaround you can try the steps here to create a blank site, and then manually import your wp-content and SQL.

Manually Import a Local Site

I can do the first four steps but I am not familiar with the last four:

  1. Within Local, click Open Site Shell
  2. Import your Database with wp db import your-database-filename.sql
  3. If that works, now Search and replace the domains. This might require more than one S/R, for example:
    • wp search-replace production.com mysite.local

    • wp search-replace https://mysite.local http://mysite.local

WP Migrate Lite did the trick. My site is now running using Local.

Thanks

Glad to hear it @subl! Thank you for sharing :green_heart: