Viewing 15 replies - 16 through 30 (of 33 total)
  • Thanks Jan.

    I edited the post to contain a link to my problematic WXR.

    I get a little trigger happy with the edit button sometimes. 🙂

    I’m trying an import on a fresh install now and it’s just hanging.

    [EDIT] The import finally timed out.

    Fatal error: Maximum execution time of 60 seconds exceeded in E:\data\data3\server\test2\wp-includes\class-http.php on line 1106

    I also got a list of duplicate attachments for the (presumably) partial import.:

    Media “WEB-3781.jpg” already exists.
    Media “WEB-4677.jpg” already exists.
    Media “WEB-5065.jpg” already exists.
    Media “WEB-0282.jpg” already exists.
    Media “WEB-0505.jpg” already exists.
    Media “WEB-090.jpg” already exists.
    Media “WEB-0802.jpg” already exists.
    Media “WEB-6011.jpg” already exists.
    Media “WEB-0475.jpg” already exists.
    Media “WEB-115.jpg” already exists.
    Media “WEB-0601.jpg” already exists.
    Media “WEB-0248.jpg” already exists.
    Media “WEB-0273.jpg” already exists.
    Media “WEB-0456.jpg” already exists.
    Media “WEB-00170.jpg” already exists.
    Media “WEB-0255.jpg” already exists.
    Media “WEB-4563.jpg” already exists.
    Media “WEB-0686.jpg” already exists.
    Media “WEB-0277.jpg” already exists.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Edit: Some serious stereo parallel work going on here… 😉

    Me too. The JPEGs are importing as my upload directory is populating, but aside from that it’s just spinning it’s wheels.

    Actually, I just got a time out from my own server! Never saw that before.

    Does it matter that posts are protected meaning you have to log into them to view them…? Not a single post was imported.

    http://test2.kiteassist.org/?p=5 or http://test2.kiteassist.org/2012/01/j-foil-update/ is requiring a login to view.

    On the test2 server disable all of the plugins first and see if that works.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The posts were a no go but I did import 1,129 images and media.

    I managed no posts and 67 attachments.

    OK – that is some insight into the issue.

    Super-doh! I didn’t notice that my first failed import had imported a lot of media, just no posts or pages. At that first test site I imported to, I’ve got 67 images like Esmi, and no posts.

    I tried it on a new fresh WP install on a different server, and got no posts, no pages, and 468 images.

    Jan are you saying I should disable all plugins on test2 during the import process?

    I’m disabling them now. Pw protect was a client request since this dev site is under wraps, but i will disable all that stuff and all plugins now.

    Thanks you guys for the help.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Jan are you saying I should disable all plugins on test2 during the import process?

    It’s a “just in case” measure. Try disabling all plugins and then create a new WXR file and try to import that.

    Change the name of your uploads directory or your media won’t import properly and see if that makes it better.

    Just to confirm – I’ve disabled the plugins, and i’ve now exported a new WXR file.

    whew! my site currently has 17 active plugins (well, until 5 minutes ago) out of 3 times that many inactive, because i’m still testing the site. I had to write down the list of ones I’m using, I cannot possibly remember that much 🙂 maybe it’s a ridiculous amount but the functionality they provide is necessary. what do you think?

    also Jan I don’t understand what you mean by

    Change the name of your uploads directory or your media won’t import properly and see if that makes it better.

    Did you mean to say “change the name of your uploads directory or your media won’t upload properly”? or “…if your media…”

    Also of note: there are only 647 media files in the original site (test2). Jan it looks like your original upload got everything twice.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    When you try to re-import the WXR file, the media gets downloaded again. If the file exists then you get an error message such as what Esmi got.

    Media “WEB-0277.jpg” already exists.

    On the target WordPress installation and not the original server, rename wp-contents/uploads to wp-contents/uploads-old and you avoid those messages.

    ah – got it.

    I’m actually doing a full database reset between uploads, so the upload folder is empty.

    Should I not do that? Sometime in the past I seem to remember a wxr file successfully uploading after multiple partial fails…

    Edit I’m going to try a re-upload of the failed wxr now, without database reset

    If the file exists then you get an error message such as what Esmi got.

    But I only carried out a single import on a fresh db. I didn’t re-run it which is why I originally thought the duplicate image warnings were strange. Then I just grepped the original .xml file and, sure enough, there are duplicate references to a single image – such as WEB-3781.jpg – with different post parents (post ids 3229 & 3501 in this case).

    That makes sense esmi, as there are many images with more than one post-parent. In the future, if I can ever get the galleries set up, there will be way more.

    Is this a problem? Doesn’t seem like it.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    as there are many images with more than one post-parent

    So, you manually created new attachment posts in the database? Because there’s no way to actually do this from within WordPress.

    This generally isn’t a good idea. If you delete one of those attachments, then the files will be deleted as well, even though the other attachment remains. WordPress doesn’t support multiple parenting of attachments at present.

    I think it might be because, digging even further, both attachments reference the same image file:

    <guid isPermaLink="false">http://test2.kiteassist.org/wp-content/uploads/2010/06/MMBG2H1291FC980C0.jpg</guid>
    <guid isPermaLink="false">http://test2.kiteassist.org/wp-content/uploads/2010/06/MMBG2H1291FC980C0.jpg</guid>

    Now, as I understand it, that just shouldn’t happen. One image attachment cannot have 2 parents. If you upload the same image again, WP should add something like 1 onto the base filename to avoid this kind of occurrence – which I’ve just confirmed on one of my installs. Since it seems that something in the attachments part of the import (which is nearer the top of the .xml file) is borking and causing the import to hang, I have to wonder whether this has something to do with it.

    Time to get some more eyes on this, I think…

    Edit: I just read Esmi’s post above, hope this provides some necessary info for your questions about how the attachment got multiple parents.

    Hi otto, no I didn’t manually create the new attachment posts, and I didn’t know there were duplicate attachment posts. I just wasn’t surprised, because I do have images used in more than one place on the site.

    I use File Gallery plugin to pull in attachments from a post and re-use them in other galleries, say the gallery of a static page. I don’t know how that’s accomplished in the database by File Gallery. But it is often necessary to do on this site: for example something about a boat is reported in daily news, and one of the pictures goes into a “boat news” mega-gallery on the “boats” page.

Viewing 15 replies - 16 through 30 (of 33 total)
  • The topic ‘[Plugin: WordPress Importer] Broken, images are not linked to post, not all post are importet’ is closed to new replies.