Reported screen error:
Fatal error: [] operator not supported for strings in
on line 2426

Installed Modules: Views, Colorbox, Date, Calendar

Steps to recreate:
1) Create a View of "any content type that includes dates" for the purposes of displaying "upcoming events" on a page. On my website, I created a content type called "Performance Event" that has a Date field.

1a) Set the View "Format" to HTML List that shows "fields". Add a "Colorbox trigger" to the field list.

2) Attempt to view a content node that is supported by the view created in step #1, and would appear in the block of "upcoming events/nodes/etc".

The aforementioned error occurs.

At line 2426 in /includes/common.inc, in function l(), it reads:
$options['attributes']['class'][] = 'active'

I traced the error all the way to line 182 in colorbox/views/colorbox_handler_field_colorbox.inc:

'attributes' => array(
  'class' => 'colorbox-inline',
  'rel' => $gallery_id
)

To fix it locally, I modified the 'class' line to read:
'class' => array('colorbox-inline')

Comments

frjo’s picture

Status: Active » Closed (duplicate)
derrekc’s picture

Thanks -- that was the fix.