Closed (duplicate)
Project:
Image
Version:
6.x-1.x-dev
Component:
image_attach
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2008 at 04:11 UTC
Updated:
17 Jan 2009 at 22:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commentedi'm not sure about the static $image. shouldn't that data be passed through the node object?
Comment #2
netaustin commentedI didn't think so... wouldn't the node object be the node which we are trying to attach an image to? $image is a node of its own which we need to initialize in validate, to check for errors, and then save in insert/update.
Comment #3
xerexes commentedsubscribing
Comment #4
coltraneNot sure yet about the use of a static but as for testing the patch applies cleanly and images can be attached without errors.
Comment #5
drewish commentedmarked http://drupal.org/node/220723 as a duplicate
Comment #6
ansorg commentedapplied the patch to a "Image 6.x-1.x-dev (2008-Mar-03)" module in my drupal-6.1 and seems to work, upload from a page edit does work. No sideeffects so far
thanks
Jens
Comment #7
xerexes commentedJust curious - any reason this hasn't gotten added to a release yet?
Comment #8
NuZeilen commentedI just always do something wrong, can someone upload the image_attach.module file that is already patched?
Thx,
Gorik.
Comment #9
jhendow commentedHas anyone uploaded a patched file? I'm a windows user and having a miserable time trying to get it to patch correctly.
Comment #10
drewish commentedi'm pretty against the static variable. i think those values should be passed through the forms api.
Comment #11
netaustin commenteddrewish, It seems like there are two ways to get the image node from validate to insert/update intact... 1) static variable, 2) attach the image node to the parent node (I used $node->attached_image)
Anyways, I posted a new patch using the second method; no static $image anymore. Let me know if anything else has to happen to get this working for you.
Comment #12
0000@drupalchina.org commentedSorry but the patch drupal6_node_attach_no_static.patch didn't work for me, mine is 6.x-1.x-dev (2008-4-01)
I tried drupal6_node_attach.patch and this works, both thanks, I got this problem for a very long time, (since the 6.0 released -_- )
Comment #13
drewish commentedmarked #243655: Can't upload new image when creating a post. as a duplicate
Comment #14
dvdbosch commentedHow do i install this patch?
Comment #15
mrgoltra commentedsubscribing
Comment #16
dvdbosch commentedThanks,
And where can i do that? Sorry for the newbisch question.
Comment #17
coltranedvdbosch, http://drupal.org/patch has an overview of patches with information on applying. If you have other questions drupal.org/support and searching often have the answers.
Comment #18
drewish commentedmarked #247457: Image Attach isn't attaching as a patch
Comment #19
nancydruThe patch on #11 did not fix it for me.
Comment #20
CNlQ8o commentedsubscribing
Comment #21
bneijt commentedIt might be better to just drop the current buggy attach and work on a multiple-attach like in this bug: http://drupal.org/node/81102
So anybody who codes on this, consider looking into that other bug.
Comment #22
Hetta commentedmarked http://drupal.org/node/261900 as duplicate - there, they said that netaustin's patch at the top fixed things, not the patch in #11.
Comment #23
audiomason commentedapplied patch. improved but still glitchy.
image attach fails when story is previewed before save.
Comment #24
drewish commentedmarked #265658: image doesn't attach to story or page node as a duplicate
Comment #25
drewish commentedmarked #265791: image will not attach as a duplicate
Comment #26
nicksergeant commentedSubscribing.
Comment #27
vladimir.dolgopolov commentedSee:
Tests for Image Attach module
The 'static' patch works, the 'no static' one fails the test.
Comment #28
sunPatch no longer applies. Also, I think most of the patch's intent is covered in #81102: Attach Multiple Images with image_attach using Drupal upload mechanism already, and the title of this issue is most probably the cause for why this issue never had the attention it deserves. Hence, marking as duplicate.