Opened 11 years ago
Closed 9 years ago
#26718 closed defect (bug) (invalid)
Links to some files are broken into pages when importing a wordpress .xml
Reported by: | satourne | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8 |
Component: | Import | Keywords: | |
Focuses: | Cc: |
Description
Hello,
I have a Wordpress hosted blog that I had installed (zip install)... So I export it into a .xml file.
When I go to wordpress.com (3.8 I think...) to a blank blog and if I import that file, links to some files (.pdf) are broken into pages.
Files are really imported but links into pages are broken.
I'm not sure but it's perhaps some links are relatives (/wordpress/...) and not absolute (http://...) .
Great job and thanks again.
Change History (5)
#2
in reply to:
↑ 1
@
11 years ago
Replying to Ipstenu:
Does this happen importing into WordPress.org (i.e. another self hosting site?)
Are all the links that are broken all 'non' WordPress links? That is to files not imported via the media uploader?
(WordPress.com is on 3.9-trunk, so it's a little ahead of 3.8 right now I think...)
- I don't know.
- Those broken links are all in my wordpress upload path ...
- Those files were imported via the media uploader but I remove http prefixes to save some bytes ;), so absolute urls (http://hostname/wordpress/) became relative urls (/wordpress/) ...
- I can't find a text with wordpress version at wordpress.com ...
Thanks
#3
@
11 years ago
It's LIKELY the fact that you removed the http prefixes. I'll have to test that.
The other high possibility is that they're not attached to the post. If you go into Media Uploader, are the images attached to a post? Basically WP can't import it them if they're not attached because it doesn't know the image 'belongs' :/
Does this happen importing into WordPress.org (i.e. another self hosting site?)
Are all the links that are broken all 'non' WordPress links? That is to files not imported via the media uploader?
(WordPress.com is on 3.9-trunk, so it's a little ahead of 3.8 right now I think...)