I've set up a view listing nodes corresponding to users' profiles- you can see it for yourself at http://mahilab.rice.edu/people . I've configured the picture field to display the "user_pic" imagecache preset, which should be an 80x80px version of users' profile pictures. However, you can clearly see that the View is pointing to and serving the original file (i.e. sites/default/files/pictures/picture-8.jpg) rather than the imagecached version (i.e. sites/default/files/imagecache/user_pic/pictures/picture-8.jpg). If you visit the imagecached version directly, you can see that it is being generated just fine.

Oddly, this view has served me very well for a year or more now- it's only today that I noticed this bizarre behavior, so I figure something must have changed, either with my server configuration or with the installed modules. Unfortunately I haven't checked on this page in a while before today, so it's possible this problem has been going on for a while unnoticed. I've tried clearing all caches, including APC and memcached, and there are no errors associated with retrieving or editing the View.

Comments

danepowell’s picture

Title: Original file (not imagecache version) displayed in Views » Original file displayed instead of ImageCached version

More info- if you look at the view, you can see that there's not even any styling or code being inserted like you'd expect to see if imagecache were active. Also, users' picture on nodes throughout the site are supposed to be imagecached as well, but you can see that they suffer from the same problem.

danepowell’s picture

Interesting- I can verify that the user picture is getting set correctly in imagecache_profiles_preprocess_user_picture ($variables['picture'] is the imagecached version). But that's not what's ultimately getting rendered. Any ideas why? That's about as far as I can troubleshoot on my own- the theme system is a mystery to me.

danepowell’s picture

Status: Active » Closed (duplicate)