Hi everyone.

I'm using the Local app to run a WordPress multisite setup and migrate content from my Blogger blog using the Blogger Importer plugin. However, when I try to import the XML file, an error appears on line 159 of the blogger-importer.php file.

Here are screenshots of the specific error messages:

I am getting confused because the import process starts but then fails halfway through. It seems the error is related to how the plugin parses the XML data, but I'm not sure what's causing the null value issue.

Has anyone else had this problem using the Blogger importer? If you have dealt with this issue before, please send me your replies. I need to understand how to resolve this error so that I can finish migrating my blog.

I've tried re-exporting the XML file from Blogger several times, but the same error keeps showing up. Any suggestions for fixing this issue or alternative import methods would be much appreciated.

Sorry for the inconvenience, and thanks in advance for your help.

1 comment

sorted by: hot top controversial new old
[–] 1 point 2 weeks ago

The two warnings are probably related rather than two separate issues. The importer appears to be receiving a null value from the parsed Blogger XML and then trying to access it as an array on line 159. The foreach() warning on line 238 suggests that another expected array is also missing or malformed.

Since you're using a WordPress multisite/local environment, I'd first check:

The PHP version you're running in Local. The exact version of the Blogger Importer plugin. Whether the XML file is valid and contains the expected Blogger export structure. Whether the error occurs with a very small Blogger export containing only a few posts. The actual code around lines 150–165 and 230–245 of blogger-importer.php.

If a small XML export works but the full export doesn't, that would point more toward a particular XML entry/content structure causing the parser to return null.

If you can post the PHP version, plugin version, and the code around those two lines, it should be possible to narrow this down further.

  • source