Fatal error: [] operator not supported for strings in /home/loandesk/public_html/includes/common.inc on line 2313

I receive this error when I view a page I've linked to from a block title. The system is trying to set the "active" class on the link that block_titlelink has added.

I'm no good with making patches, but I figured out the solution and figured I'd post it.

On line 101 of the block_titlelink.module file, just add array around the 'block-title-link' class in the array.

        $attributes = array(
          'attributes' => array(
            'class' => array('block-title-link'),
          ),
          'html' => TRUE,
        );

This will allow the menu system to add "active" as an ordinal to the item automatically and keeps both classes in place.

Hope this helps someone.

Comments

ngmaloney’s picture

Assigned: Unassigned » ngmaloney

@jaymallison - Thanks for the info. I"ll try and push out an update ASAP.

ngmaloney’s picture

Latest dev release has patch applied.

ngmaloney’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.