Having problems with importing a wordpress blog. Please Help.

Discussion in 'PHP' started by Ace0, Jan 1, 2010.

  1. #1
    Hello,

    I am working on an old wordpress blog version 2.2
    I had to switch hosts, the problem is that I couldn't create a proper back-up from my initial host.

    I exported a wordpress.xml file from the wp-admin using the "Export" function.

    Next I downloaded wordpress 2.2, got same theme and uploaded them on the new host, installed the wordpress and log-ed in as admin.

    The problem appears when I want to use the "Import" function to import all my posts, categories and comments to restore my blog.

    After I select the previously "exported" xml file and click the upload button to "import" it, I get the following error after about 3 minutes of uploading:

    Fatal error: Out of memory (allocated 65536000) (tried to allocate 1441 bytes) in /home/abcdef/public_html/domain.com/wp-admin/import/wordpress.php on line 110


    Does anyone have an idea about how to solve this issue as I currently have an empty blog :(

    Many thanks in advance.

    Happy New Year 2010!
     
    Ace0, Jan 1, 2010 IP
  2. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    theapparatus, Jan 1, 2010 IP
  3. Ace0

    Ace0 Active Member

    Messages:
    526
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks for the reply, theapparatus.

    Sorry for posting this issue in the unappropriated thread.

    I checked the link mentioned by you.
    1. I can't find any php.ini file.
    2. I tried to use the 2nd option to insert the mentioned line in the file which provides the error. Sadly it does not work either.
    3. The third step "You can even consider adding a line in .htaccess file which will resolve the issue.
    php_value memory_limit 32M" doesn't work either for me. If I add that line in the .htaccess file I get an sql error while trying to browse the blog.

    4. I also tried the 4th trick displayed here with the wp-config file, but I still get the same initial error while importing the file:
    http://techpp.com/2009/07/10/how-to-fix-php-fatal-error-out-of-memory/

    Fatal error: Out of memory (allocated 65798144) (tried to allocate 1481 bytes) in /home/abcdef/public_html/domainname/wp-admin/import/wordpress.php on line 110

    Do you have another advice. Thanks in advance.
     
    Ace0, Jan 1, 2010 IP