I exported everything from the wp dashboard, and imported in my localhost WP setup. Even though single posts are displayed correctly, all images in Media Library are unattached. This results in that I can not extract thumbnails for homepage since no image is attached to any post. How do I reattach it and have functional mirror of my page locally?
All localhost pages drag images from online version
-i tried replacing all “mypage.com” to “localhost/wordpress” and reimporting the sql file but nothing changes
-“scan for lost attachments” button does not do anything
Any other ideas?
I have the same problem. Imported the posts, checked the “import media” box, but all it does is link to the old site for all the images.
I have, I guess the same problem. I exported from wordpress.com and imported to my self-hosted site.
(1) All the images display, but the media are all links to wordpress.com.
(2) All the media appear to be there, but they are all “unattached.”
Is there a solution for this?
You can open database file in notepad and use search&replace function
to change “wordpress.com” to “yourdomain.com”
This works if you don’t have functions that extract thumbnails from the posts.
I have looked through all migration, mirroring, backup tools, and unless there is something new in the last 3 months, you are out of luck. None of these plugins do the job right.
I don’t know what it is, but out of 800 some-odd media files, 696 are unattached.
Looking at the posts for those, I don’t see any way of doing a search-and-replace. It’s not just the domain names which are different. 🙁
I have another longer thread on this that explains more in detail at http://wordpress.org/support/topic/export-from-wordpresscom-then-import-to-self-hosted-leaves-media-there?replies=7.
I think my only choice is to maintain my wordpress.com site as a “media repository.” I hope wordpress.com isn’t going anywhere…
In control panel you have exported an XML file to import in your self hosted website… Open that file in notepad or wordpad and press ctrl+h and just substitute domains. The media will still not be attached, but the files will be drawn from you domain.
The problem is that the format of the URLs is too different. I don’t think it’s just a matter of global replacing the domains.
Here is a post at my self-hosted site:
The image there is linked to:
The unattached media file which got imported has a URL of:
So even if I change all instances of douglerner.files.wordpress.com to douglerner.net it wouldn’t help. Unless I’m missing something.
Here’s maybe a better example.
Here is a post with a picture in it:
The link for that picture goes to:
In the Media library there are TWO edo-scaled10001.jpg pictures for some reason. I don’t know why:
The first one says “attached” but it’s not the image that appears in the post. I don’t know why not.
The second one says “unattached.”
Confusing! The whole thing is confusing.
Originally many of these were imported to WordPress.com from Posterous back in March. I think those are the ones experiencing this problem.
I also wonder if part of the problem is that I needed to run the importer like 4 or 5 times, each import times out and the next import skips over “existing” media and then imports the next ones.
Could this be creating duplicates?
If so, how can I avoid the problem?
Still, the media count at wordpress.com and my self-hosted blog are the same.
Agh. The whole thing’s held together with rubber bands. I’m seeing some photos which link to Posterous also (which I imported from to wordpress.com).
Since these are all older posts, I think what I’m going to have to do is just live with it and slowly, over half a year or so, go through each post and change the links, adding new media as needed.
Or maybe somebody will come up with a reliable Posterous importer (where these all came from) and I can re-import the whole blog directly from Posterous without going via wordpress.com.
When an import fails, I download reset plugin and reset the whole wp installation which deletes everything, then I reimport it again. Be aware it erases also files, posts, setting, themes…
WP is a great platform, but some really BASIC features are missing.
The problem is the import always stops mid-way through. I just keep on starting it over and over again until it finally finishes.
If I reset the site each time the import doesn’t finish I will never finish. Literally. It seems to grab some stuff, then time out. Then the next time through it skips over the stuff it got before and gets some more stuff and then times out.
Doing that 4 or 5 times it will eventually finish and you’ll get your “have fun” message.
But each time I try this I get most or all of the media files “unattached.”
I just tried with a completely new wordpress instance in another domain and 100% of the images were unattached and all the links in the posts went back to wordpress.com.
I think it’s just the state of the technology.
- The topic ‘Images in Media Library not attached after importing to another wp setup’ is closed to new replies.