I get a white screen and this error appears in my apache error logs.
PHP Fatal error: [] operator not supported for strings in /home/drupal/drupal7/sites/example.com/themes/omega/omega/template.php on line 337
This only happens when skinr (7.x-2.x-dev) is enabled and I click the link "Edit skin" in the blocks contextual links drop-down:
The current parent theme I'm using is omega-7.x-4.2+2-dev.
If I comment out template.php line 337 mentioned in that error message, then all seems to work well.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | skinr-class_not_array-2204221-5.patch | 577 bytes | moonray |
Comments
Comment #1
kendouglass commentedComment #2
fubhy commentedThat's a bug in Skinr module then (using a string in 'class' in the #attributes array). That's supposed to be an array. Always.
Comment #3
fubhy commentedThe bug is in skinr_ui.edit.inc on line 85.
should be:
Comment #4
fubhy commentedI commited http://drupalcode.org/project/omega.git/commit/d4a3d1d to Omega. We now check if the 'class' property is (incorrectly) set to a string and explode it into an array if that's the case. This prevents the notices/fatals from occurring but it should still be fixed in Skinr too.
Comment #5
moonray commentedGood catch, thanks.
Comment #7
moonray commented