This Bug is know by the worpress team sinc 1 year and 9 month! There is also a fix provided for the latest version of the plugin.
https://core.trac.ww.wp.xz.cn/ticket/36281
Hopefully, this will be fixed soon! But after almost 2 years, in which this error is known, I doubt that…
Hi,
I also experienced the bug in the wordpress importer.
After a short research on the net I found a solution! This bug has been known since the beginning of 2016 and there is a very simple fix.
The bug report is documented at https://core.trac.ww.wp.xz.cn/ticket/36281, including the solution. Unfortunately, the developers have not been able to publish the fix yet. There is even a patch for the current version of the importer plugin for 3 weeks. Where it is only two small brackets which must be set. There is even the complete plugin with the fix on github: https://gist.github.com/cfxd/824d4faeb616b50e40f1
Hopefully the fix will eventually be adopted and a working version of importers published.
Regards,
Andreas