CC module prevents users from editing profile

Greg Delisle - April 13, 2005 - 13:38
Project:Creative Commons
Version:4.5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:pbull
Status:closed
Description

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.

#1

pbull - April 22, 2005 - 20:41
Assigned to:Anonymous» 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.

#2

ryanlee - December 8, 2005 - 21:03

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.

#3

balleyne - June 16, 2009 - 21:08
Status:active» fixed

#4

System Message - June 30, 2009 - 21:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.