Trying to setup Image FUpload to work with Views Gallery, running into an issue that can't find any information on.

After uploading my images, I am prompted to go to the "next step" to edit the fields I want to on my new image nodes. I have removed the node body and the node title is being generated via Auto Nodetitles. The only field that I want to be able to edit is the CCK node reference field that links my new images to a gallery node.

However, at the moment I'm getting a white screen with the following message:

Fatal error: Unsupported operand types in (...)sites/all/modules/imagecache/imagecache.module on line 902

Probably more related to the Image FUpload module, but has anybody else come across this before?

Comments

broncomania’s picture

Priority: Normal » Critical

Subscribe same error here

sandrewj’s picture

The dev version needs to receive $attributes as an array instead of a string in theme_imagecache.
You could try changing line 902 from:

return '<img' . drupal_attributes($ours + $attributes) . '/>';

to:

return '<img' . drupal_attributes($ours) . $attributes . '/>';
sandrewj’s picture

Status: Active » Closed (works as designed)

Since the function description says it accepts an array, I am closing this issue. FUpload should change it if it isn't corrected yet.

mvc’s picture

For reference, here's the same problem in the image fupload issue queue: #1173408: Error when moving to next step

2ndmile’s picture

I was getting the same error and I do not have fupload installed. Made the change from #2 and all is well.

rogerfm’s picture

I do have FUpload installed. Step 2 worked for me too.

vigoncas’s picture

In that case we are not processing $attributes in drupal_attributes and you can see a wrong 'array' attribute in your HTML.

It's better to do:

return 'Only local images are allowed.';

gngn’s picture

Like mvc posted in #4 this is also handled in the image fupload issue queue.

There's a patch for Image FUpload 6.x-3.x-dev (https://drupal.org/node/1173408#comment-6137190) and for 6.x-3.0-rc2 (https://drupal.org/node/1173408#comment-7498424)