Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: lifepillar commentedThe attached patch fixes the bug for me, but I am not sure whether it is the best approach.
Comment #3
lifepillar CreditAttribution: lifepillar commentedChanging status.
Comment #4
zak_umich CreditAttribution: 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 CreditAttribution: Stalski commentedThis must be something with the custom or other implementation. Heartbeat can't be the guilty one imo