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.
I'm getting Fatal error: [] operator not supported for strings in .../sites/all/themes/omega/omega/template.php on line 342, using Get Directions and Omega theme. It turns out that the class attribute is being set to a string when it should be an array. The patch below fixes the problem for me.
Comment | File | Size | Author |
---|---|---|---|
#1 | getdirections-class-attribute-array-2172041-1.patch | 5.49 KB | Peacog |
Comments
Comment #1
Peacog CreditAttribution: Peacog commentedComment #2
Peacog CreditAttribution: Peacog commentedComment #3
hutch CreditAttribution: hutch commentedI've commited this fix to 7.x-3.x dev
Thank you for reporting this, although I'm a bit puzzled as to why I don't get a WSOD, indeed the table theming does not mind a string and nor does the form builder.
Comment #4
hutch CreditAttribution: hutch commentedComment #5
Peacog CreditAttribution: Peacog commentedYes, I thought it was strange that nobody else had reported this before. Maybe there's something in Omega that picked up on the error, or perhaps it's the PHP version - I'm using PHP 5.3.27.
Thanks for committing the fix.