I am using Drupal 6.13 with Imagebrowser and the FCKeditor.
I recently moved the website to the root directory of my website. It had been in a subdirectory called /drupal.
This move worked fine, except that I no longer had any images on the website. All image links had been broken.
I discovered that the links embedded in the content nodes looked like
src="/drupal/imagebrowser/view/image/627/_original"
This is how they appear in the Image Properties window when you insert or update the images, and this is what is imbedded within the HTML source code.
Unfortunately, if the site is removed to a new directory, as I did yesterday, the links will not be modified to remove the subdirectory leaving the link as it was instead of changing it to src="/imagebrowser/view/image/627/_original"
I was running 6.x-1.0-beta1 when I moved the site. Having upgraded to rc1 it still appears to be an issue.
To correct the problem, I had to export the database contents as SQL and perform a global edit on the contents before reloading the database. (This also corrupted my FrontPage view which I had to rebuild from scratch which was a bit of a pain. I am not sure why or how yet.)
I also have a copy of this site on a test webserver. Having moved the production site to the root of the website, I now need to mirror the same directory structure, but I have other test websites here and I do not want to drop this website into the test webservers root directory. Nor do I want to edit the DB contents each time if possible.
Finally, this issue breaks the Drupal norm in that I should be able to move websites around without breaking the content.
I would be grateful if you could look into this issue. I see it as a fairly critical issue. Thanks.

Comments

jdelaune’s picture

Status: Active » Closed (works as designed)

Sure I understand the frustration this must have caused and I can see the limitation. All I can say is that this is fixed in IBv2. As for v1 my only advise would be to do a SQL query like:

UPDATE node_revisions SET body = replace(body, 'src="/drupal/imagebrowser/', 'src="/imagebrowser/'), teaser = replace(teaser, 'src="/drupal/imagebrowser/', 'src="/imagebrowser/')

Not tested but you get the picture. Hope this helps and sorry again for any inconvenience caused. I didn't take into account that a base directory could change.