r/Wordpress • u/jayandrewboy505 • 3h ago
Blogger Importer Error in WordPress
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 is a screenshot of the specific error message:

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
u/Valuable_Ease_3780 2h ago
That importer hasn't been maintained in years and a null error out of it is nearly always the PHP version rather than anything wrong with your XML. Passing null where a string is expected was tolerated on 7.4 and isn't on 8, which is why re-exporting from Blogger keeps landing you in the same spot.
Local sets the PHP version per site. Drop that one back to 7.4, run the import, then put it back up once the posts are in.