• I am currently trying to switch my blog from blogger to wordpress, but when I try importing the XML to wordpress I keep getting:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /home4/fmwl/public_html/wp-includes/SimplePie/Parser.php on line 323

    The XML file is only around 37 MB and it says it can import up to 64 MB. I have tried adding define(‘WP_MEMORY_LIMIT’, ‘2048M’); to my wp.config file, but the error still occurs.

    Any ideas how I can fix this? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    PHP memory isn’t the same as upload limit. With that said, it’s really odd that you’ve encountered that on a fresh site, and judging by “(tried to allocate 81 bytes)” it sounds like the server you’re on is out of resources (probably another account on the server hogging all the memory).

    I recommend contacting your hosting provider about this.

    I was having the same problem on a local server (XAMPP).
    My Blogger.com XML file is 64MB, but I changed the memory_limit in my php.ini file to 1024M (directly, not via wp-config.php). After a warning of an invalid command I could press a submit button and then WordPress stated that the import had succeeded. Problem is now that the XML file is merely imported as a text file and so no posts are added to the posts etcetera.
    So I guess I’m back at square 1…

    What I’m trying to say is: if you can, change the memory_limit directly in php.ini.
    And if anyone has a solution for my XML/text file, help is highly appreciated.

    I solved my problem using Blogger Importer Extended.
    Downside: It took almost a day to import over 6000 posts + images etcetera and BIE doesn’t import categories.
    Still a great plugin though if your XML is too big.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Importing XML File, Fatal Error’ is closed to new replies.