Cannot view images

Joined: 07/21/2009

I've migrated a site between servers. And in the process can no longer view images. I have configured the file system and verified the image files reside there, however, when navigating to the node the images do not appear. Any ideas?

Joined: 05/13/2008
Perhaps it's related to

Perhaps it's related to permissions on the folder?

Joined: 09/09/2008
Post a link

Can you post a link so that we can see the problem?

Curt

Joined: 10/18/2008
Check the permissions on your

Check the permissions on your files folder, it probably got set to read only. Change that and you should be good to go.

/ * Begin Signature */
It's a strange thing about determined seekers-after-wisdom that, no matter where they happen to be, they'll always seek that wisdom which is a long way off. Wisdom is one of the few things that looks bigger the further away it is.

Joined: 07/21/2009
My image gallery was set up

My image gallery was set up per O'Reilly's "Using Drupal" book.

Directory Permissions are 755.
File Permissions are 664.

The same as on the previous server.

The file system has been configured in drupal. The content type field path has been set in drupal.

I can confirm that new imagecache presets are created in /files/imagecache.

I can create new content and see the image while in the gallery or editing the node but can do neither for previously created nodes.

During the course of this migration I went from a single code base/site to a single code base/multi-site. So what used to be sites/all/files is now sites/example.com/files

Joined: 09/09/2008
Location of the "files" directory

Personally, I always put the "files" directory in the root directory for the site and usually incorporate some form of the individual site name in the directory name. E.g., if the site was MySite.com the files directory would be in the root directory and named something like "files-ms." This configuration breaks the tie between the actual site name and the file location.

I suspect that your file references are to their old location in /sites/all/files. You might be able to create a symlink for /sites/all/files and have it point to their new location. The other alternative is to manually update the references.

Hope this helps, good luck,
Curt

Joined: 07/21/2009
Resolved

I had to execute the following sql statement in phpmyadmin

update files set filepath = replace (filepath, "old path", "new path");