I’m trying to use the wordpress-importer plugin to import an xml file exported from another wordpress blog which happens to have HTTP authentication on it.
As is, when I run the import, media files are failing with:
Failed to import Media âImage replaceâ: Remote server returned error response 401 Unauthorized
If I do a find and replace in the XML file on the URI to be
username:password@blogtoimportfrom.com
I get
Failed to import Media âImage replaceâ: Remote server did not respond
Should I be more selective with my find / replace? Or is there some other way to provide the Auth credentials?
TIA,
Billy
I was able to get this to work. I did a find and replace on all occurrences of the URI with the username / password version.
I then had to modify one line of WordPress code. In
I changed this method:
to read
I had to use headers to auth because wp was mangling the auth in the url.
In wordpress-importer.php…