After I create a content type that uses an ImageField field type, Imagefield Import fails to see the new field, crapping out with the message:
"In order to import images into an imagefield, you must first have a node type that has an imagefield associated with it. "
I haven't used previous versions of either, but it appears that changes in the way the imagefield CCK type is defined causes the beta1 code to fail. I'm enclosing a patch that works to fix this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | imagefield_import_patched.tar_.gz | 12.33 KB | droolpal |
| #2 | imagefield_import-patch-407974-1.patch | 1.42 KB | Torenware |
| #1 | imagefield_import-patch-407974.patch | 857 bytes | Torenware |
Comments
Comment #1
Torenware commentedComment #2
Torenware commentedUpdated patch, since I found a related bug once I fixed the first one: the function imagefield_widget_upload_validators no longer exists, and this was crashing imagefield_import during the actual import. The revised patch fixes this as well.
Comment #3
droolpal commentedThis patch (imagefield_import-patch-407974-1.patch) works with Imagefield 6.x-3.0-beta3.
Comment #4
awry commentedpatch in #2 works for me.
Comment #5
Wuekkie commentedI tried applying the patch in #2 using gnuwin32 patch-2.5.9 and using this command:
patch imagefield_import.module imagefield_import-patch-407974-1.patch
I got this error:
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
Can anyone help? I really need this module.
Thanks,
Wuekkie
Comment #6
messenger commentedpatch in #2 works for me as well.
Comment #7
droolpal commented@ #5 Wuekkie
Here is the patched version. This worked for me with imagefield-6.x-3.0-beta3 (and filefield-6.x-3.0-beta3). Update to both (make sure you read the instructions). Then update imagefield_import using the attached patch. It's the same file that worked for me.
Back up before doing anything.
Comment #8
quicksketchSubscribing. Just trying to keep tabs on all the FileField/ImageField projects out there. As others have noted, the imagefield_widget_upload_validators() function was removed in beta1 but restored in beta3. It's there to stay in the RC version and I expect to get out the final release this week.
Comment #9
decipheredPatch works, code is a little sloppy, but so is modules current code.
Would nearly be worth marking this issue as critical.
Cheers,
Deciphered.
Comment #10
andyboutte commentedsubscribing
Comment #11
dirksonii commentedSubscribe. Marking critical. (Can't use imagefield import at all. If that's not a critical problem for a package, I'm a lemur.) (Don't make me sing the "I like to move it move it" song.)
Comment #12
vordude commentedPatch committed. New release coming later today.
Thanks, Torenware
Comment #13
vordude commented