Closed (fixed)
Project:
Image FUpload
Version:
6.x-3.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2009 at 01:00 UTC
Updated:
4 May 2011 at 19:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
tevih commentedcan you please elaborate on your fix? I'm new at this and I'm having the same issue.
Comment #2
grandcat commentedCan't reproduce this error message. Perhaps you added some fields and didn't resave ImageFields settings page.
Comment #3
sinsinapsi commentedHi,
get the same error,
really not expert, I'm sorry
but I cannot understand the solution,
"Solution add is_array check before foreach loop."
I get this error below, just after a fresh installation.
Fatal error: Call to undefined function image_node_type_load() in .../modules/image_fupload/image_fupload_imagefield/image_fupload_imagefield.module on line 60
Can someone explain me how work the solution proposed above?
Comment #4
mattyoung commentedI encountered this same error:
I had one image field using the FUpload widget, then I went and edit content type and change the name and id. That's it. Seems under some condition like this,
form_fields_destroy()is called with$fields_to_remove == NULL?Comment #5
whatdoesitwant commentedThnx Matt. I can confirm that this workaround works with 6.x-3.0-dev (current release is september 2009) as well. I had changed the name of Story to Article with no result. But changing the machine readable type story to article fixed the error, (which is thrown at line 553 in dev).
Comment #6
zoo commentedHello, everybody.
I have just installed image fupload module (6.x-3.0-rc2 along with imagefield/filefield 6.x-3.2) and changed the widget type of an existing CCK field file type to "Image FUpload".
Now when I'm going to create a new page, based on the above content type, have this error at the top of the page:
I didn't quite understand how the solution works, I would appreciate if someone could explain one more time.
Thank You very much
bye
zoo
Comment #7
jcmc commentedHello zoo and co,
here a patch to avoid this simple php error. It is a peculiarity of the function "foreach" in php in case the array is empty.
Regards
Juan Carlos
Comment #8
zoo commentedThank You very much for your help!
zoo
Comment #9
gingic commentedHello,
I got the same error...
How can I install the patch?
Thanks
Comment #10
grandcat commentedComment #11
grandcat commentedCommitted to HEAD, thanks to jcmc and all others.
Comment #13
fxarte commentedHi
In my case it was because there was no image cache preset selected in the field definition. Once I created and selected the preset, the error was gone
Comment #14
ggevalt commentedANOTHER EASY SOLUTION....
This is occurring because of conflicting default settings in your image field (if you created one before you used the FUpload module...) To fix this, go into your Content Type>>Manage Fields>>Image field (or whatever you called it) and click CONFIGURE.... choose "Multiple Images Per Node", scroll down and choose "UNLIMITED" in "Maximum number of values users can enter for this field."
should work. no patches or scary coding needed.
geoff
Comment #15
stephesk8s commented#14 makes sense. And worked for me. Thanks.