I've moved my multisite from a local Lighttpd server to a remote Apache. Now all Filefield and Imagefield paths are incorrect:

sites/macintoshgarden.org/files/sites/macintoshgarden/files/screenshots/Taskmaker_screenshot.png

Instead of:
sites/macintoshgarden.org/files/screenshots/Uninvited-Master_Bedroom.png

macintoshgarden was the old local host on lighttpd - macintoshgarden.org being the new domain. $base_url in settings.php reads 'http://macintoshgarden.org' which the new paths do represent. What am I doing wrong?

Comments

maedi’s picture

Status: Active » Fixed

Not an issue of Filefield. Fixed with this SQL command:
UPDATE files SET filepath = REPLACE(filepath,'sites/macintoshgarden/files/screenshots','sites/macintoshgarden.org/files/screenshots')
Though I do wonder why Filefield paths have to be hardcoded?

quicksketch’s picture

It's not filefield, Drupal itself includes the file path in the files table. You'll see this same behavior for all files uploaded through any module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.