Opened 2 years ago
Last modified 9 months ago
#16404 new defect (bug)
WordPress Importer fails to import images
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | Import | Version: | 3.0.4 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | kpayne@…, justin@… |
Description
WordPress Importer fails to import images and update image src urls when download and import file attachments is checked.
WordPress MS with images in a post via Media using WP image mapping, e.g. image url: http://site.domainname.com/files/2011/01/myimage.jpg
Fails to download, import and update image src url. All image src urls remain intact from the old domain name.
If you change the image source to specific directory rather than the WP uploads directory: e.g. image url:
http://site.domainname.com/images/myimage.jpg
Images are downloaded and imported to media but it fails to update image src url in posts. All image src urls in posts remain intact from the old domain name.
I tested this on clean install of WP 3.0.4 MultiSite with TwentyTen theme and no other plugins activated.
Change History (6)
- Component changed from General to Import
- Keywords reporter-feedback added
- Summary changed from WordPress Importer to WordPress Importer fails to import images
Yes, the images are still available on the old site. When imported to the new site (without changing the image urls) the image urls are not changed and the images are not imported. When you view the site the images are viewable because they are still available on the old site.
If I move the image files to a static location in the install and update the urls in the .xml export file - then when I import the images are imported but the urls to the images are not updated.
I experienced this will 3 different 3.0.4 installs that had varied themes and plugins. So, for testing purposes I created a clean install configured as below and got the same results.
Import site:
WordPress 3.0.4 MS subdirectories setup
WordPress Importer 0.2
Theme: TwentyTen
Plugins: No other plugins activated
Could this be a bug with 3.0.4 that has been addressed with 3.1 as I see you have tested it with 3.1?
- Cc kpayne@… added
Is this still happening? The WordPress importer plugin has been updated to 0.5 and specifically mentions fixes for attachments. WordPress Importer changelog
comment:4
greenshady — 9 months ago
- Cc justin@… added
Yes, it's still happening for me. I'm running into trouble importing attachments from one MS blog to another MS blog on the same install (using it to set up theme demos).
comment:5
greenshady — 9 months ago
I also just tested the theme unit test data into the same MS blog. Most of the attachments were imported (all but 2).
comment:6
SergeyBiryukov — 9 months ago
- Milestone changed from Awaiting Review to WordPress.org

Cannot reproduce with the following set up:
Import site:
Translates images from http://wpthemetestdata.files.wordpress.com/2008/06/canola2.jpg to http://local.domain/testsite/files/2011/01/canola2.jpg.
The images on the old site are still accessible, right? Can you give any further details about your set up?