recently updated to D6.15
I have a content type that includes an attached image field. No problems uploading images or creating content using the content type.
When defining a block display for a view, I tried to add the field Image attach: Attached images
In configuring the field, I left all of the attributes at their default values.
Received this warning: Illegal offset type in isset or empty in /usr4/drupal/drupal-6.15/sites/cals.arizona.edu.arizonawet.teachersupport/modules/image/image.module on line 635.
'Haven't the foggiest idea what to do. When investigating other "illegal offset" issues, the problem is typically related to module interactions.
Any suggestions?
Comment | File | Size | Author |
---|---|---|---|
#4 | 681108_2.gif | 48.8 KB | Jim Bacon |
#2 | 681108_1.gif | 41.72 KB | Jim Bacon |
Comments
Comment #1
joachim CreditAttribution: joachim commentedCan you try with the latest beta please?
I think I've seen this before, but I can't find the issue. Another thing to try would be to explicitly set the derivative size on the field and save the view.
If you can debug, try to find out what image_attach_views_handler_field_attached_images is trying to call$image_img = image_display($node, $derivative) with.
Comment #2
Jim Bacon CreditAttribution: Jim Bacon commentedI have encountered the same error in beta5
Attached is a screenshot from my debugger.
You can see $label is an array but it is used in line 635 without a subscript...
$node->images[$label] is null
Comment #3
joachim CreditAttribution: joachim commentedCan you backtrace to find where that is coming from? $label should be a string!
Comment #4
Jim Bacon CreditAttribution: Jim Bacon commentedimage_display is being called from render_html.
Attached is another screen shot showing $label is getting its value from options['image_derivative'] which is an array.
Comment #5
joachim CreditAttribution: joachim commentedimage_attach_views_handler_field_attached_images doesn't have a render_html().
Your bug is possibly not the same as the OPs. You're in image_handler_field_image_node_image, not image attach.
And when I debug that I get a string for options['image_derivative'].
Try clearing views cache and then re-visiting that field's options and saving them.
Comment #6
Jim Bacon CreditAttribution: Jim Bacon commentedQuite right, the field in my view was for an image, not an image attach.
I used the Devel module Empty Cache but saw that this left entries in the cache_views table so I deleted these directly from the database.
The problem has now gone away.
Thank you very much for your assistance.
Comment #7
Lloyd CreditAttribution: Lloyd commentedHas there been any update on this issue. I'm experiencing the same warning message.
Comment #8
Lloyd CreditAttribution: Lloyd commentedFYI when I changed the display in Views from a thumbnail to the original everything worked as expected.
Comment #9
grasmash CreditAttribution: grasmash commentedsubscribe.
Comment #10
joachim CreditAttribution: joachim commentedPlease note that there will only be progress on this issue when the people who experience the bug provide enough information so I figure out what the problem is.
Comment #11
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.
Comment #12
jcamfield CreditAttribution: jcamfield commentedJust a note; I came across this, Views+Image was expecting an alt field, and had forgotten my imagecache selections; adding an alt field and resetting that cleared the error (for me)