I'm getting this error:

Fatal error: Cannot unset string offsets in ... /all/modules/image/contrib/image_attach/image_attach.module on line 397

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

When you do what?

ronsnow’s picture

We just started getting this exact problem too. Our staff went in to edit a standard node page, one with images, and when pressing the Save button they end up now with a white screen. Error Log shows the above error.

I don't think its related to changes - I went in on a different node, brought up the edit, and without making actual changes, and pressed save -- resulting in the same white screen result and a the error in the error log.

This is a fairly stable website. I don't know what we might have changed, maybe a parameter in .htaccess but I don't think we added any modules recently. What conditions exist w/in image that would cause this?

ronsnow’s picture

Title: Fatal error: Cannot unset string offsets in ... /all/modules/image/contrib/image_attach/image_attach.module on line 397 » SOLVED: Fatal error: Cannot unset string offsets in ... /all/modules/image/contrib/image_attach/image_attach.module on line 397
Status: Postponed (maintainer needs more info) » Needs review

At least one aspect of this error may be identified: We use module "Node Form Columns" and had recently checked the option to hide the Attached Images form field. Checking this "hide" option will cause the Image module to fail as noted in this thread. Using (or not using) the "collapsed" option works fine.

We are hiding a lot of unnecessary form fields from the user, as we wanted to present a simplified and clean form for node input. Our users work with images directly in the Body of the node so our thinking was to not show the form field for attached images.... There be the cause....