I get an error message when trying to import my wordpress blog:

Could not load WXR file - problems reported: failed to load external entity "wordpress://studmanudk.wordpress.2011-06-02%20(7).xml" at line 0

The beginning of the XML file looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->

<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!--    on the site. For each author, you may choose to map to an -->
<!--    existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!--    contained in this file into your site. -->

<!-- generator="WordPress/3.1" created="2011-06-02 18:54" -->
<rss version="2.0"
	xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:wp="http://wordpress.org/export/1.1/"
>

<channel>
...

Any suggestions?

Comments

mikeryan’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » mikeryan

You've got a space in your file name (see the %20), I've reproduced that this does cause a problem. Until I fix this, you should be able to work around it by removing the space from the file you're importing.

mikeryan’s picture

Title: Could not load WXR file - problems reported: failed to load external entity » WXR file with space in filename fails to load
mikeryan’s picture

Status: Active » Fixed

Fix committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.