CCK: 5.x-1.7
Imagefield: 5.x-2.1
tmp Permissions: 755
files Permissions: 777
Download Method: Public
Imagefield Configuration: All size settings are 0 (no restriction), optional path is 'logo' which exists and has a CHMOD of 777, permitted extensions are jpg, jpeg, png, and gif (the file I'm having a problem with is a .png), no group, and it's not a required field. It has no default image.
Expected results: It should show the game's logo at the top of the page, right under the title.
Actual results: Nothing shows, but the logo shows when editing the page, but not when I'm viewing or previewing it. Devel shows '[view] =>' as having nothing in it.
The attached file is a screenshot of what Devel shows.
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield.png | 8 KB | Sanehouse |
Comments
Comment #1
Brian.Harris commentedI'm having the same problem. This wasn't hte case until i tried out "image" module. i have since completly uninstalled image and imagefield modules and then re installed imagefield. I am however still experiencing no 'view' for the images...
Comment #2
Sanehouse commentedMy file permissions are now 755.
Comment #3
Brian.Harris commenteddid that help??
Comment #4
Sanehouse commentedNo. =[
Comment #5
dopry commentedhave you updated the display settings for the content_type lately?
Comment #6
benjamenjohnson commentedI evaluating upgrading to the 2.x branch on a test site and running Drupal 5.10 and am running into the same problem with imagefield 5.x-2.1 -- my images aren't showing when I use the ['view'] element. It worked fine in the 1.x branch
Here's what devel module shows for the image array
Array
(
[0] => Array
(
[fid] => 31
[title] => and_test.jpg
[alt] =>
[nid] => 121
[filename] => and_test.jpg
[filepath] => files/image/and_test.jpg
[filemime] => image/jpeg
[filesize] => 15997
[view] =>
)
)
I'd be happy to provide any more information, but I'm not sure what you'd need.
Comment #7
benstallings commentedI had the same experience when upgrading from Imagefield 1.x to 2. Looking at the code of the module, [view] is set on line 393, using the function content_format, which is defined in content.module. That's as far as I was able to trace it, but I bypassed the function call by replacing line 393 with
$items[$delta]['view'] = theme_image($item['filepath'], $item['alt'], $item['title']);
and that fixed it (until the next upgrade). I hope others will find this patch useful.
Comment #8
quicksketchClosing after several months without update. Please open a new issue if this problem is occurring in the latest release.