I've just encountered an issue I haven't seen seen before: after copying the dB/files to a new location on the server, none of the CCK images are working, regardless of if ImageCache is used or not. In other words, even when editing a node, the image preview is missing because the path is obviously wrong.
For one example, the path should be /sites/dev-[site-name]/files/homebanners/[image-name].
Instead it is /sites/dev-[site-name]/files/sites/[original-site]/files/homebanners/[image-name].
What I can't figure out is why.
Here's the steps taken:
- Copy the dB
- Copy the files. I forget why but the new sites/[site-name] mapping changes to sites/dev-[site-name] for the dev site (where the images are broken).
- Adjusted .htaccess RewriteBase & Rewrite Rules, and the base_url for each settings.php file
- Set the new files location at admin/settings/file-system
- Cleared the cache For the imagecache files, and used Drush to flush and re-build the images
For all but one site, the files use the Public setting, but the problem persists regardless of if the files are set to public or private.
Any help would be most appreciated.