I enabled the Creative Commons module last night and everything seemed to be working great. Nodes were getting tagged perfectly. Then a user reported that he could not edit his profile, and I verified that editing your user profile throws this error:

Fatal error: Call to undefined function: save() in /home/gdelisle/public_html/modules/creativecommons/creativecommons.module on line 754

Line 754 is this function:
function creativecommons_save($node) {
$node->cc->nid = $node->nid;
$node->cc->save();
}
(specifically, line 754 is $node->cc->save();)

Having the module enabled in any way produces this bug, which discards any changes to user profiles. I assume that it also prevents new users from joining the site, though I haven't tested that. I'm using CivicSpace 0.8.0.3, which may differ slightly from Drupal 4.5.2 in the way it handles profiles; I'll be glad to send you whatever info you need. I think the main difference is in the CS Contact module, though disabling Creative Commons for Contact nodes did not prevent the bug either.

Comments

pbull’s picture

Assigned: Unassigned » pbull

Problem does not exist on Drupal 4.5.x or 4.6. However I am able to reproduce under CivicSpace 0.8.0.3. Not sure why at this time, save() is a method of the creativecommons_license class, defined in creativecommons.class.php.

Will continue to investigate this issue as time permits.

ryanlee’s picture

This is what comes up in Google first, though unfortunately the solution in CVS isn't posted. So here it is. See revision 1.4 of creativecommons.module. Note that the body of the function enclosing the undefined call is now wrapped in an if($node->cc) conditional.

balleyne’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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