Using PHP 5.2.6.
On attempting to create a custom content field I got:
Fatal error: Cannot use object of type stdClass as array in cck/includes/content.crud.inc on line 377
After researching this I was able to fix this with the attached patch.
- unset($field['db_columns']);
+ unset($field->db_columns);
I have no way of testing whether this works for PHP4 though.
| Comment | File | Size | Author |
|---|---|---|---|
| php5-object-SP20080511-00.patch | 466 bytes | samirnassar |
Comments
Comment #1
dropcube commented$fieldis an array. not an object.I can not reproduce the bug. Could you please provide more information, what kind of field you were adding, etc..
Comment #2
samirnassar commentedI cannot reproduce the bug myself anymore. Therefore I am closing this as there is nothing that needs fixing.