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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | adaptivetheme-fix-type-error-preprocess-inc-1710516-2.patch | 765 bytes | lifepillar |
Comments
Comment #1
lifepillar commentedThe 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).
Comment #2
lifepillar commentedThe attached patch fixes the bug for me, but I am not sure whether it is the best approach.
Comment #3
lifepillar commentedChanging status.
Comment #4
zak_umich commentedI 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.
Comment #5
Stalski commentedThis must be something with the custom or other implementation. Heartbeat can't be the guilty one imo