Hi, I installed your module to test. Upon trying to activate the module I am recieving the following error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/sites/all/modules/cck_field_defs/cck_field_defs.module on line 128

Tried this on a relatively clean install of Drupal 5.12, any ideas?

Thanks.

CommentFileSizeAuthor
#2 cck_field_defs_fieldgroups.patch719 bytesvkareh

Comments

vkareh’s picture

Assigned: Unassigned » vkareh

Was this just as you were activating the module? It seems to be related to a content type that's using fieldgroups. I'll try to reorganize the function call in that line into simpler statements and do some checks between each statement to see if that solves it. I'll post a patch.

In any case, what's the fieldgroup/field structure of the content type you were trying to use it for? It might help me to realize where the error is.

vkareh’s picture

Status: Active » Needs review
StatusFileSize
new719 bytes

Here's a tentative patch. I could not reproduce the error, but the patch uses a more elegant solution in that particular statement that gave you the problem in the first place.

vkareh’s picture

Version: 5.x-1.2 » 5.x-1.4
Status: Needs review » Fixed

I just rolled in the patch into the new release. Please update the module to use the new code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.