Today I went to import a large number of posts from a live WordPress site to a local copy of the site. We all know that the WordPress Importer tool hasn’t had much love lately and is slightly broken. PHP will time time out you and drive you crazy if you try to use it.
Error: This does not appear to be a WXR file, missing/invalid WXR version number
Don’t worry, this is super easy to fix.
- Open your exported XML file that you are attempting to import.
- Find the line:
- Change it to:
- Import the file.
Problem solved, at least for me.