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.

Comments

Torenware’s picture

StatusFileSize
new857 bytes
Torenware’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new1.42 KB

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

droolpal’s picture

This patch (imagefield_import-patch-407974-1.patch) works with Imagefield 6.x-3.0-beta3.

awry’s picture

patch in #2 works for me.

Wuekkie’s picture

I 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

messenger’s picture

patch in #2 works for me as well.

droolpal’s picture

StatusFileSize
new12.33 KB

@ #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.

quicksketch’s picture

Category: bug » task
Status: Patch (to be ported) » Needs review

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

deciphered’s picture

Patch works, code is a little sloppy, but so is modules current code.

Would nearly be worth marking this issue as critical.

Cheers,
Deciphered.

andyboutte’s picture

subscribing

dirksonii’s picture

Priority: Normal » Critical

Subscribe. 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.)

vordude’s picture

Priority: Critical » Normal
Status: Needs review » Closed (fixed)

Patch committed. New release coming later today.

Thanks, Torenware

vordude’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.