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!

Check and Fix SD Card from the android terminal emulator

Your Android SD card gets “corrupted” and you don’t have a PC to connect the smartphone and make the check of SD card?

It’s possibile to make this operation directly from the smartphone? (rooted and with busybox installed, of course!)

“It Could Work!”

The binary to do the job is called fsck* (or fsck_msdos), and usually located in /system/bin.

First we need to find the device your SD card is bound to. If it’s mounted, the mount command will assist us:

mount | grep -i sdcard

Check the output and see where your SD card sits.

Output may include something like

mount | grep sdcard1

Now we can go for the repair job:

fsck_msdos -y /dev/block/vold/179:65
fsck output

And after simply reboot the phone!