Unable to import website : "Fatal Error Unable to open base address file"


The importation of a .zip containing a wordpress and a database fails at the very end of the importation, with this error : bug

Troubleshooting Questions

I put my wordpress (wp-content, index.php and all the other files) in a .zip with the .sql database, and I try to import the website on Local. But it fails at the very end of the importation, when Local try to import the SQL database.

Either it says the local table doesn’t exist (which is not true, I have checked), or it says “unable to open base address file”.

I have tried with two different WordPress downloaded from FTP with their database
The creation of a local website with Local works just fine.


  • I download the wordpress website from the FTP
  • I export the database from PHPMyAdmin
  • I put the database and the folder containing all the wordpress website in .zip
  • I import the .zip in Local
  • It imports until the moment it tries to import the SQL database
  • It shows me the message I have already shown

System Details

  • Which version of Local is being used?
    Version 5.9.8+5191

  • What Operating System (OS) and OS version is being used?
    Windows 10

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:
    The log : local-lightning.log (151.4 KB)

(yeah I tried to anonymise the screenshot and eventually I was just like “okay who cares”)

When I google for unable to open base address file – many of the hits relate to Composer. Does this site make use of Composer to do things? This may be custom plugins, or even twig templates in the theme.

One option you could try is to manually import the site by doing something like:

  1. Create a new, plain WP site in Local
  2. Replace the wp-content folder of the plain site, with the wp-content folder you download from the remote
  3. Import the DB by right-clicking on the site in Local and select “Open Site Shell.” From there, issue wp db import database_dump.sql
  4. Search and replace the urls with something like `wp search replace ‘/example.com’ ‘/example.local’

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