• Resolved txantimedia

    (@txantimedia)


    I’m in the process of setting up a self-hosted site, migrating from WordPress.com. The site is IP-address-only right now, because DNS still points to the existing site on WordPress.com.

    I tried to Export and Import the site. It worked fine *except* for attachments. Those failed. So I copied the manually to wp-content/uploads/2012/some subdirs to replicate what is on WordPress.com. But the files don’t show up in the library.

    I don’t see a way to use the import tool to “point to” files already on the server. If I run the import again, will it pick that up and edit the right tables in the db? Or am I going to have to do this manually?

Viewing 15 replies - 1 through 15 (of 27 total)
  • Unless you want to start again from scratch when you have the DNS changed to point to the new site, yes – you’ll have to re-upload them all manually.

    Thread Starter txantimedia

    (@txantimedia)

    Well, I gave up on importing the attachments. The import tool fails every time. I even tried the wordpress-import-extended plugin, and that failed as well. Since it depends on the wordpress-import plugin, I assume the problem is in it somewhere.

    If I don’t check the box for attachments, the import works fine (but of course I don’t have the attachments.)

    So I changed course and installed the wordpress-flash-uploader plugin, which is supposed to sync files already in the default location of wp-content/uploads/, but it fails as well.

    So, how can I get these attachments reattached to their posts? Am I going to have to do this completely manually? Ugh.

    I must have imported the theme unit test data a few dozen times and I’ve never had a problem importing attachments.

    Thread Starter txantimedia

    (@txantimedia)

    How does that help me? You may not have a problem, but I do. I’d like to resolve it, if that’s possible.

    Do you get any messages when importing the theme unit test data? How long does the import take?

    Thread Starter txantimedia

    (@txantimedia)

    I don’t know what the theme unit test data is. Enlighten me.

    It’s a standardised import file that you can download from Theme_Unit_Test. Testing with this would help to rule out (or confirm) issues in your own import file.

    Thread Starter txantimedia

    (@txantimedia)

    I got farther than I did with my blog, but it still failed to upload some attachments.

    Import WordPress
    Failed to import Media “HayseedRag–theDizzyTrio_vbr”
    Failed to import Media “Hayseed Rag – The Dizzy Trio”

    All done. Have fun!

    Remember to update the passwords and roles of imported users

    I’ve never gotten the All done part before.

    Failed to import Media “HayseedRag–theDizzyTrio_vbr”
    Failed to import Media “Hayseed Rag – The Dizzy Trio”

    That’s fine,. Those particular attachments are no longer available. So, all in all, the import was successful.

    What messages were you seeing previously?

    Thread Starter txantimedia

    (@txantimedia)

    If I checked the include attachments option, I got two attachments downloaded, and the rest failed. If I don’t check the attachments option, the import is successful (posts and users).

    php.ini is set to 20MB, so it’s not a size problem. Perhaps I’m missing a php extension?

    Do you get any messages with the attachment download failures? I doubt it’s a missing php extension. The most common causes are either a malformed export file (sometimes as the result of a plugin on the originating site) or access to the attachment is being blocked at the originating site.

    Thread Starter txantimedia

    (@txantimedia)

    No messages. The screen is blank. I’m exporting from a WordPress.com site with no plugins. I don’t know if WordPress.com blcks access to attachments. If they do, that would be profoundly stupid.

    wordpress.com definitely don’t block access. How large is the exported file? How much memory is allocated to PHP?

    Thread Starter txantimedia

    (@txantimedia)

    It’s a bunch of files with varying sizes. The sizes are in bytes:

    7502276 australiapleasepleasebecareful.wmv
    236852298 trayvon-martin-sao-girl-interview.wav
    3383125 3105-oops1.wmv
    37412 6182012_64519_0.jpg
    5498880 afghanistan.pps
    5498880 afghanistan1.pps
    89937 anniversary.jpg
    7278 freedom_scale.png
    6074718 socialsecurityreformact.wmv
    4786176 thesearemycredentials.pps
    747199 trayvon-martin-autopsy.pdf
    385354 birth-certificate-long-form.pdf
    8056 image.jpg
    1519 image2.gif
    37538 image3.jpg
    50086 image4.jpg
    38166 image5.gif
    8196 image6.gif
    13327 reagan1.jpeg
    9452 reagan2.jpeg
    4821159 HSFLGL-12-B-00003_Step_1_Technical.pdf
    5828023 audio_interview_0227.mp3
    41894557 audio_interview_0229_1.mp3
    5558858 audio_interview_0229_2.mp3
    20822727 audio_interview_0229_3.mp3
    20822727 audio_interview_0229_31.mp3
    24871092 audio_statement_0226_1.mp3
    7417104 audio_statement_0226_2.mp3
    28485 father_and_son.jpeg
    2010956 george-zimmerman-treyvon-martin-911-call1.mp3
    130567 initial_path_of_tm.jpg
    123411 possible-path-for-tm.jpg
    76398 serino31.pdf
    36112 zimmerman_non-emergency_call.pdf
    38553 zimmerman_non-emergency_call_annotated.pdf
    38581 zimmerman_non-emergency_call_annotated1.pdf
    38583 zimmerman_non-emergency_call_annotated2.pdf
    39578 zimmerman_non-emergency_call_annotated5.pdf
    34816 1961-2012non-farm_employment.xls
    35328 1961-2012non-farm_employment1.xls
    7863 blackandtan.jpg
    9453959 crazygrandmacrazyphotos.wmv
    13252 cropped-American-Eagle-150×150.jpg
    10911 cropped-American-Eagle-300×62.jpg
    93122 cropped-American-Eagle.jpg
    1406 favicon.ico
    1406 favicon1.ico
    1406 favicon2.ico
    69563 screenshot2010-09-29atwednesdayseptember292-00am.png
    3352930 txantimedia.wordpress.2012-09-13.xml_.txt
    3352930 txantimedia.wordpress.2012-09-13.xml_1.txt
    3370312 txantimedia.wordpress.2012-09-15.xml_.txt

    Php size limit is 20MB.

    How large is the .xml export file? And the PHP allocation limit is quite different to the max_upload_size.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Import of attachments fails’ is closed to new replies.