Drupal Version: 5.12
CCK version: 5.x-1.10
Server: Windows
CleanURLs: enabled
File System: public

I've created a fresh install of the latest Drupal version 5, CCK and ImageField to test this against the theory that there was a conflict with another module causing my troubles, but I get the same results.

I used CCK to add an image field to Story content types and when I use it to upload an image, I can see the uploaded image in the imageField box, but when I preview or publish the story, the image will not appear in the story.

The image file IS in the uploaded directory
The image WILL appear if I edit the story
The image WILL NOT appear in the published node.

Am I just doing something wrong or is anyone else having this problem?

Thanks in advance

Comments

florian.cathala’s picture

Hi,

I encountered the same problem. I was able to fix it by doing this :
1) edit your content type and go to "Display fields" : the url should be ?q=admin/content/types/story/display
2) for your ImageField field (type "Image"), change the label from "Above" to "Inline"
3) click "Submit"
4) set back the label to "Above"
5) click "Submit"

It should work.

I think there is some cache / database update process when we click "Submit", but I didn't have enough time to verify.

carllcombs’s picture

Priority: Critical » Normal
Status: Active » Needs work

lol, awesome...that did it!

Very strange though. This seems like an issue that still needs to be looked into and resolved.

Thanks again!

mroswell’s picture

Same for me. Thank you flusher, for workable fix!

My system:
Drupal Version: 5.12
CCK version: 5.x-1.9, in a newly created content type
Server: Apache/2.2.3 (Linux/SUSE) PHP/5.1.2 with Suhosin-Patch mod_perl/2.0.2 Perl/v5.8.8
CleanURLs: enabled
File System: public

quicksketch’s picture

Status: Needs work » Closed (fixed)

This was caused by ImageField not using the name "default" for the default formatter (it was imagefield_default). This problem was introduced in 2.1 and finally fixed in 2.6. The problem was fixed in #402200: Restore the "default" Formatter.