move to different path, embeded image issue

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

move to different path, embeded image issue

Post by CapriSkye »

Hello guys, I've moved my installation from /blog to /live, and after the move, other than the places mentioned in the FAQ, there were several other places where I have to manually change the path. everything seems to be working correctly, except in entries where I have embedded media, they are still pointing to the old path.

example can be seen here,
http://capriskye.com/live/archives/P2.html
The 300 entry is still pointing to blog/uploads/pix/300.jpg if you look at the location of the image.
I've tried updating last_modified field in the sql, still no luck. Then I found out if I modify the entry and save it, it will point to the new path.

The reason why images still show up is because I haven't remove /blog directory yet. Anyone know where I've missed a step? Or if there's way to update all entries with embedded images to the new path? [/url]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: move to different path, embeded image issue

Post by garvinhicking »

Hi!

Sadly you have to manually search+replace the media references in your entries. This is easiest done if you create a SQL dump and use search+replace in it, and then re-upload the dump.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

You could always just leave the old upload directory in place.

When I moved from wordpress to s9y I came across the same problem, the static images in posts. What I did was left my wordpress directory with just the image directory in place. This allows for the images to work with the least amount of work.

This is not the pretties solution, but it did work for me.

example post: http://zacgarrett.com/permalink/Windows ... eview.html
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

great thanks guys, just thought i missed a step or something.
Post Reply