• I am trying to import media from a WordPress.com blog to a self-hosted version of WordPress. I’ve been able to import the content, but I can’t get the media. It imports the first seven files then stops with:

    “Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 252968960 bytes) in /bns/wmdh/wmdh/onethousandpulses/wp-includes/class-http.php on line 1078”

    I have increased memory_limit in php.ini to 1000M.
    I have added “define(‘WP_MEMORY_LIMIT’, ‘1000M’);” to the start of wp-config.php, but I get the same error.
    I even tried adding “ini_set(”memory_limit”,”16M”);” to the start of wp-config.php, that didn’t fix anything.

    Since it’s WordPress.com, I can’t use FTP to get the media off the server. Are there any alternate methods for a mass move? I know we could link to the old site, but the owner does not want to keep it running after it’s transferred.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try contacting the hosts for assistance.

    Thread Starter jkorchok

    (@jkorchok)

    Hi, I guess you missed the part about it being self-hosted. It’s my server, there are no “hosts” to assist.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If you try to import again, it should pick up where you left off… Did it import SOME of the posts and media?

    Thread Starter jkorchok

    (@jkorchok)

    As it mentions in my original post It imports the first seven files then stops. It does this no matter how many times I run it. It’s the same seven files each time.
    Does anyone know of an alternate way to retrieve media files when the importer doesn’t work. Any way to do it manually? Remember, this is on WordPress.com, so I cannot use FTP.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Sorry brain slipped a bit ?? But it should NOT be stuck on the first seven over and over. What file is it dying it? Is it a really big image?

    Thread Starter jkorchok

    (@jkorchok)

    I never came up with a solution, but I found that I could open the XML file, find all the media links (one per <item> in the xml), open them in a browser and copy them one by one. Tedious, but the job is done.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Media Import gives out of memory error’ is closed to new replies.