Page 1 of 1

Incorrect image paths after moving the blog

Posted: Mon Apr 10, 2006 8:12 pm
by ksr
I can't tell if it really is a bug, but it sure makes my life as a blog administrator harder:

I closed the domain that I used for installation of a blog. Now I use a different Domain which points to the same webspace. I changed paths in order to fit to the new home of the blog. Text and everything works fine - yet all images in postings still point to the old path - containing the old domain. That means they are not displayed.

Is there a way to change paths of images in Postings to relatively?

Or:

How can I update all the paths to images in old postings to fit to the new domain?

Cheers,
Karsten

Posted: Tue Apr 11, 2006 7:12 am
by SHRIKEE
try the option:

rebuild thumbs in the admin panel.

This will update image paths of all images found in the uploads folder and subfolders within

Posted: Tue Apr 11, 2006 10:03 am
by garvinhicking
BTW; usually full paths (with http://...) should not find their way into entries! IF they do, it would be a WYSIWYG editor messing things up). Serendipity itself only emits path structures.

As RobA mentioned, there is no feature for this yes. But I'm actually working on that for 1.1 right now on this!

Regards,
Garvin

Posted: Tue Apr 11, 2006 11:44 am
by ksr
RobA wrote: Or, perhaps the easiest, export the full entries table with a sql admin tool (and static pages if required) and then do a search and replace with your favourite text editor/command line tool then delete the table contents and input the data back in.

-Rob A>
This is what worked for me. 5 Minutes Time and all images were visible again. Thanks a lot!

Posted: Tue Apr 11, 2006 12:06 pm
by SHRIKEE
you do have deleted the old content then right? or is everything double now :)

Posted: Tue Apr 11, 2006 12:11 pm
by ksr
SHRIKEE wrote:you do have deleted the old content then right? or is everything double now :)
Right.
  • 1 export entries table
    2 save it for backup
    3 edit paths. Paths were absolute, not relative which I don't quite understand since I run another blog with the same version of serendipity which uses relative paths
    4. import altered table
    5. Ta-daaah

Posted: Tue Apr 11, 2006 12:22 pm
by SHRIKEE
im jus asking...

because in phpmyadmin an export does not delete your content (atleast not for me) :) so when you export it. and then import the altered data it actually adds it to the existend posts. resulting in having everything double.