Problems importing large xml file into Wordpress

Discussion in 'WordPress' started by SEO4hire, Aug 28, 2009.

  1. #1
    Hello. I bought a WP database that has several TV shows on it, and went to upload it using Tools->Import->Wordpress as I have in the past. I chose the file and hit the import button, and it acts like it is trying to upload it for about 5 minutes or so, then hangs up and gives an error message. It is a 15 MB file, but Wordpress says the maximum is 64 MB, so it should be fine.

    My question is this: if I am not able to import it through the dashboard, is there a way to upload it through the cpanel? If so, what folder do I upload it to? Any help would be greatly appreciated...
     
    SEO4hire, Aug 28, 2009 IP
  2. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #2
    what is the error message you are getting?
     
    craiger22, Aug 29, 2009 IP
  3. SEO4hire

    SEO4hire Active Member

    Messages:
    976
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #3
    I am not getting any error message - it just sits there on the import screen and acts like it is uploading something. The progress bar goes all the way across, but when I go to the dashboard, nothing has been imported.
     
    SEO4hire, Aug 30, 2009 IP
  4. mccomf

    mccomf Active Member

    Messages:
    517
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    The default limit for uploading an XML import file via the Wordpress admin area is 2MB. Here’s a way to override that limit using htaccess.
    First, open Notepad (or a text editor) to create a file and name it “.htaccess”

    Upload this .htaccess file into the root directory of your server (where your site resides).

    Cut and paste the code below into the .htaccess file:

    #set max upload file size
    php_value upload_max_filesize xxM

    #set max post size
    php_value post_max_size xxM

    Change the “xx” variable to a number that meets your requirements.

    Hope this works!
     
    mccomf, Aug 30, 2009 IP
  5. SEO4hire

    SEO4hire Active Member

    Messages:
    976
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Thank you mccomf, but unfortunately it is not a size issue. I think it has more to do with the xml file itself. This is the message that was received the last time I tried to import it:

    Invalid file

    Please upload a valid WXR (WordPress eXtended RSS) export file

    The guy that gave me the file downloaded it from Wordpress, so I am not sure why it is not working. If anyone has had this problem and/or knows how to resolve it, let me know. This is driving me crazy.
     
    SEO4hire, Aug 30, 2009 IP