Hello,

I'm getting the following error when browsing site activity page
Fatal error: [] operator not supported for strings in /path/to/drupal/sites/all/themes/adaptivetheme/adaptivetheme/at_core/inc/preprocess.inc on line 853

the line related to the error is

function adaptivetheme_preprocess_image(&$vars) {
// Add a class to image elements based on the image style
if (isset($vars['style_name'])) {
$vars['attributes']['class'][] = 'image-style-' . drupal_html_class($vars['style_name']);
}
}

Regards

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lifepillar’s picture

Priority: Major » Critical

The same for me. Raising to critical, since it breaks the site. I get the error when I embed an image using the Media module (say, through the Media button of CKEditor).

lifepillar’s picture

The attached patch fixes the bug for me, but I am not sure whether it is the best approach.

lifepillar’s picture

Status: Active » Needs review

Changing status.

zak_umich’s picture

I tried it with the new adaptive theme update and I think the problem is solved, hurray! But please confirm on your own so that we can make sure before closing the issue.

Stalski’s picture

Status: Needs review » Closed (cannot reproduce)

This must be something with the custom or other implementation. Heartbeat can't be the guilty one imo