Make WordPress Core

Opened 12 years ago

Last modified 5 years ago

#21859 new defect (bug)

Import blog and media library is not working

Reported by: don_ousian's profile don_ousian Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Import Keywords: needs-patch
Focuses: Cc:

Description

Hi,
I have problems (due to hosting php timeout) to import all my blog at once.
I tried doing it by months, but it's also not working. Blog posts are imported, but nothing of the media library is imported.

I can describe too what happens when trying to import everything at once. I've just 200 photos and every 90 secs the connection is reseted trying to import them. If you try to retry using browser, photos begin to duplicate, or triplicate, or more...
After all this, then you finish, there is no attachments related to their post.

I've tried importing by months, which would not spend more than 60 secs importing photos, but then the photos are not imported.

Please, fix the import/export by months or by splitting files every 10 post (or configurable).
I would suggest too to allow any mechanism to import photos first, doing it in groups of 20 (or by configuration) and later, after that, importing post and attaching files to each post.

I set it as critical as moving a blog it's impossible without a huge amount of work.

I could try to help debugging if needed.

Version 3.4.1 is also affected.
Thanks and regards

Change History (8)

#1 @don_ousian
12 years ago

  • Cc don_ousian added

#2 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to WordPress.org

Related: #18602

#3 follow-up: @Ipstenu
12 years ago

While this is being worked out, don, I would do an SQL copy.

Export your DB, search/replace the domain name (if needed), import that, then FTP up your images.

I have seen this before, where images/content gets duplicated because the importer doesn't check 'Oh, I have this post/media' already.

#4 @dd32
12 years ago

When using the filtered export options (date range, specific post types, etc) attachments are not included in the export: #17379

Other than fixing the above, I'm not sure if there's any changes described here to work on

#5 in reply to: ↑ 3 @don_ousian
12 years ago

Replying to Ipstenu:

While this is being worked out, don, I would do an SQL copy.

Export your DB, search/replace the domain name (if needed), import that, then FTP up your images.

I have seen this before, where images/content gets duplicated because the importer doesn't check 'Oh, I have this post/media' already.

I think that it's not possible to do that in wordpress.com

#6 @don_ousian
12 years ago

As far as I understand this means there is no planned/proposed solution for this issue to get solved?

The main problem is on importing media library files because it could take a lot of time, and this could be done *just* moving files.
So, at least it would help some improvements in importation, let me explain some ideas of what could be done:

  • Upload media library files "manually" after or before importing the media library metadata?
  • Allowing a selection of what you want to import. Adding an option page with Checkboxes in each post after parsing the importing file would allow to import by pieces. It would be a perfect solution for many people, an *advanced import* I guess.

#7 @Otto42
12 years ago

  • Milestone changed from WordPress.org to Awaiting Review
  • Severity changed from critical to normal

#8 @chriscct7
9 years ago

  • Keywords needs-patch added
  • Version changed from 3.4.2 to 3.4
Note: See TracTickets for help on using tickets.