When I checkmark the "Use replacement function for menu_item_link theme" option, I get the following error.

Fatal Error: [] operator not supported for strings in /drupal/sites/all/modules/activemenu/activemenu.module on line 70

Comments

tonytharp.com’s picture

I'm also getting this: FULL MESSAGE: An error occurred. http://www.pamlicotoday.com/update.php?id=127&op=do
Fatal error: [] operator not supported for strings in /home1/pamlicot/public_html/includes/database.inc on line 555

site is pamlicotoday.com and I believe I am running the save version of Drupal

imiksu’s picture

I can confirm this. I'm just having it on line 69.

Fatal error: [] operator not supported for strings in /var/www/html/sites/all/modules/activemenu/activemenu.module on line 69

jrb’s picture

Status: Active » Needs work

You can get rid of this bug by changing line 68 from this:

$classes = ! empty($options['attributes']['class']) ? $options['attributes']['class'] : array();

To this:

$classes = (! empty($options['attributes']['class']) && is_array($options['attributes']['class'])) ? $options['attributes']['class'] : array();