I have the following installed as tagged for 4.7:

content.module,v 1.56.2.17
imagefield.module,v 1.9.2.1

The imagefield appears in my CCK nodes, I can upload an image and preview it on the node edit form by using the 'update' button. The additional 2 textfields appear to enter a title and alternative text in.

Upon submitting the node, the imagefield does not appear in the standard node.tpl.php $content layout.
Editing the node does not display the image I originally uploaded.

Creating a new node and selecting a picture without using the 'update' button still fails to work.

Previewing the node before submitting it does show the imagefield displayed inline with the node content as expected.

Files: 
CommentFileSizeAuthor
#19 ImageFieldIssue.jpg77.36 KBchandika

Comments

budda’s picture

Also tried with the CVS of imagefield.module imagefield.module,v 1.10 and the same problem continues.

It is worth noting that the image files are actually being uploaded in to the sites files/ directory fine.

brst t’s picture

Hm, I wonder if your problem is the same as the one I just had and resolved.

I tested it in a couple browsers and noticed that I could get an image in Firefox, but not in IE. I also noticed that the path of the image was calling on 'system/files/'.

It turned out that the solution was in changing the 'Download method' in the 'File system settings' section under 'Settings' from private to public.

Zippity whoosh, images displaying.

budda’s picture

The site i'm working on already has public files enabled so it's not that :(

marcoBauli’s picture

and of course you did change those required settings in .htaccess file in /files folder yes?

vse.berlin’s picture

Had the same. Update of entire cck resolved it.

budda’s picture

@kiteatlas

THere was nothing in the files/.htaccess file except:

SetHandler This_is_a_Drupal_security_line_do_not_remove
dopry’s picture

Status:Active» Fixed

This should be fixed in DRUPAL-4-7 update imagefield, cck, and clear cache.

budda’s picture

Status:Fixed» Active

Using both 4-7 branches. I've cleared the cache after installing the updates.

CCK 1.56.2.20
Imagefield 1.9.2.4

When selecting an image and then previewing the node, nothing appears.

The HTML for the imagefield partially appears, <div class="field_photo"></div>.

Also: using the 'update' button, once i've selected the image, refreshes the node edit page but displays nothing. There is no errors in the Watchdog log either.

nofue’s picture

Servus.

The phenomenon hit me as well, but the circumstances may shed some light on the issue (which I suppose is _not_ CCK / imagefield reladted):
I had everything set up nicely, but after installing some mor modules, the published images had gone. So far I haven't got them back to display, and the page source shows nothing between the div's...
The modules I suspect are either event, simplenews, captcha, video or audio, with quite some emphasis on event, as I'm pretty sure things worked fine after installing audio and video module (but hey, it got late and I'm not sure I checked this properly). I also messed around with categories for that matter, but only after installing above modules and fuzzing with categories the images had gone. Well, hope it helps to track the bug down -- I'm still trying to get the site back to normal...

Norbert

dopry’s picture

budda can you fill me in on details of how the generic file handling is set up for you drupal? Are the images being uploaded to the files directory? How is the field configured? etc.

budda’s picture

The file handling was standard public files.

Sadly I can't provide any further info as it was a Drupal site set up by somebody else, and since we had so much trouble they have re-built it form scratch now. I've not had time to check if the Imagefield problem has been fixed with the rebuild - yet.

dopry’s picture

could you please check. I'd like to close out most of my 4.7 issue queue before moving on to the 5.0 upgrades I need to do.

sKanD’s picture

Just my two cents to budda on comment #6.
Did you change the htaccess info into something like :

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
# Options None
<IfModule mod_rewrite.c>
    RewriteEngine on
Options +FollowSymLinks
</IfModule>
iandickson’s picture

I'd like to report the same issue.

In my case I actually did get the images to upload in one load of data, then a few days later did some more and no dice. They upload, and appear as previews (due to editing of htaccess), but when you hit the PREVIEW or PUBLISH button to progress, they vanish.

The ONLY thing I changed in the meantime was the theme, so I tested and in Chameleon it doesn't work. In Box Grey it does.

So If I upload in BG and then switch to Ch, I can view the results.

tweaker’s picture

after upload - could not see any image - but file name was there and the iamge.gif was in /files

changed the .htacess in /files - then went to node and did an edit - image appeared

saved - no image on saved page

both CCK and Image mods current as of this post

tweaker’s picture

didn't test the 2 themes above ... but did test Bluemarine and still no image

tweaker’s picture

got image to appear!

used ConTemplate module

I just started to click everything that had the var image on it - still very messy

will have to go back and do it step by step - to see vars I actually need

chandika’s picture

Have the same problem.

It seems that when I first publish the node with the image, it gets created and shows. But if you go back and edit the node (and not upload the image files again), it clears off the images.

In the subsequent edits if you upload the image again, it will stick.

I think the module is re-setting the image fields when you resubmit. It works fine for me on the first time.

chandika’s picture

StatusFileSize
new77.36 KB

Still having the problem. Some more insight into it may help?

When you edit a node, imagefield replaces the actual imagefield of the node with the last uploaded image for that specific field. This is shown as an empty image in the same node edit form for no apparent reason! When you finally submit the form, the imagefield is replaced with the "empty" image causing the image to disappear.

Please check the attached screenshot. This is before the image disappears off the node.

Can someone please help? this is a Critical bug thats holding up my site from going live. :(

RobRoy’s picture

Ah, I've experienced the behavior chandika reports too (although it may deserve it's own issue) and meant to post an issue about it. I think if you click delete on that blank picture and hit submit it will go away. I'll look into the steps to reproduce this and see if we can't find the cause. IIRC, it had to do with upload multiple images then trying to delete one. I'll report back later.

@chandika, if you can post the EXACT steps to reproduce this on a fresh CCK/imagefield install that would help us track it down.

dopry’s picture

@chandika, can you test after the scalar on delete issue was resolved?

@others, please provide versions of CCK and Imagefield you are using. I have no issues on a stock drupal 4.7 + cck + imagefield. Try emptying your cache if you've made any changes.

If I don't get any additional feedback over the next week I am likely to close this issue.

chandika’s picture

dropy,

I tested with the latest release (13/11/2006) and the issue is still there. :(

It drops off the data from the imagefield when you have an image in its internal cache I believe. Say you did a fresh log-in, and you have not uploaded any images through imagefield, then the behaviour is not there. Otherwise, whenever you edit a node with a image in the imagefield cache it drops off values from all the imagefields of that node.

dopry’s picture

Can you tell me the exact versions you are working with imagefield and cck are under pretty heavy development at the moment.

quicksketch’s picture

A bunch of changes went in today for handling uploads and displaying the form (part of multiple directory support). You might try the latest for your version of Drupal and see if the problem has been corrected.

dopry’s picture

Status:Active» Fixed

I can't reproduce and it has the issue has been inactive. I'm assuming fixed.

Anonymous’s picture

Status:Fixed» Closed (fixed)