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.

CommentFileSizeAuthor
imagefield.png8 KBSanehouse

Comments

Brian.Harris’s picture

I'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...

Sanehouse’s picture

My file permissions are now 755.

Brian.Harris’s picture

did that help??

Sanehouse’s picture

No. =[

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

have you updated the display settings for the content_type lately?

benjamenjohnson’s picture

I 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.

benstallings’s picture

I 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.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing after several months without update. Please open a new issue if this problem is occurring in the latest release.