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?

CommentFileSizeAuthor
#4 681108_2.gif48.8 KBJim Bacon
#2 681108_1.gif41.72 KBJim Bacon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Category: support » bug
Status: Needs work » Postponed (maintainer needs more info)

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

Jim Bacon’s picture

Title: Illegal offset type in isset or empgy » Illegal offset type in isset or empty
Version: 6.x-1.0-beta3 » 6.x-1.0-beta5
FileSize
41.72 KB

I 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

joachim’s picture

Can you backtrace to find where that is coming from? $label should be a string!

Jim Bacon’s picture

FileSize
48.8 KB

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

joachim’s picture

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

Jim Bacon’s picture

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

Lloyd’s picture

Has there been any update on this issue. I'm experiencing the same warning message.

Lloyd’s picture

FYI when I changed the display in Views from a thumbnail to the original everything worked as expected.

grasmash’s picture

subscribe.

joachim’s picture

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

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Sorry, 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.

jcamfield’s picture

Just 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)