When viewing the theme configuration page of a theme that invokes the color module, one gets an fatal error (only PHP 5.0.5+ I think):
Fatal error: Only variables can be passed by reference in [...]\drupal\\modules\color\color.module on line 75
This is a common problem in newer PHP versions. PHP now accepts only variables to be passed by reference, if return values are passed by reference, it results in a fatal error.
The attached patch solves this issues.
| Comment | File | Size | Author |
|---|---|---|---|
| color.module.patch | 739 bytes | Frando |
Comments
Comment #1
neclimdulConcept is sound(seconded by chx). You can see the reference argument in the php docsarray_shift.
Tested in php 5.1.6 and color module performed as expected.
Comment #2
drummCommitted to HEAD.
Comment #3
(not verified) commented