How to fix the WXR version error when importing a very old WordPress export file

Recently I needed to migrate the contents of a WordPress 2.1.7 (really old!) on a new installation based on WordPress 4.9.1.

So i’ve exported all contents from old site using the standard export procedure, but during the import on the new platform, the process fails with this error:

Error: This does not appear to be a WXR file, missing/invalid WXR version number

The problem seems related to the lack of a version tag in the WRX file exported from the old wordpress, and starting from this information, I’ve found an easy fix that solve the problem (at least for me):

  1. Open the exported XML file.
  2. Before theĀ  <channel> tag, add:
  3. Retry the import of the file.

That’s all!

Related posts

  1. How to monitor battery healt and optimize power consumption on Windows 10 laptops without additional softwares
  2. Weekly Cybersecurity Roundup #10
  3. How to install latest Widevine plugin on Chromium
  4. How to record screen on Linux from command line
  5. Forensic disk acquisition over the network