I get this error when clicking on links to nodes or comments, but only when logged in as an Administrator.

I'm using the Zen theme.

Lines 546-554, with the offending line bolded:

// Automatically add a class to each link and also to each LI
if (isset($link['attributes']) && isset($link['attributes']['class'])) {
$link['attributes']['class'] .= ' ' . $key;
$class = $key;
}
else {
$link['attributes']['class'] = $key;
$class = $key;
}

Comments

gordyhulten’s picture

Title: Fatal error: Cannot use string offset as an array in /home/.nika/gordyhulten/illinipundit.com/includes/theme.inc on line 552 » Fatal error: Cannot use string offset as an array in .../includes/theme.inc on line 552

I'm not using any e-commerce modules.

My non-core module list is: advpoll, akismet, audio, commentrss, fckeditor, livediscussions, pathauto, scheduler, spam & votingapi.

I'm on Dreamhost, PHP 5.1.2. Drupal path is webroot.

Thanks.

gordyhulten’s picture

Due to this post, I turned off the spam module, and the problem is resolved. If anyone wants me to test anything else to address this for fixing in a future release, I'd be happy to.

RobRoy’s picture

Status: Active » Closed (fixed)

Please mark the issue closed if it was due to another module.

matze_1’s picture

I got the same Problem.
This Link solved it: http://drupal.org/node/118742
My Spammodule is still running.