Fatal Error: Undefined Function: userpoints_role_userpoints()

Lozenge - June 24, 2008 - 21:26
Project:User Referral
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am new to Drupal and this is my first support request, so please forgive me if I am not doing this right. Here is my issue:

I am using Drupal 5.7 I installed the UserPoints module, and it works great, I then installed the Referral Contributed Module, and everything works up until the point where I try to create a new account, I get the following error message

Fatal error: Call to undefined function: userpoints_role_userpoints() in /home/xxxxxxxx/public_html/xxxxxxxxxxx/sites/all/modules/referral/referral.module on line 217

When I uninstall the referral module I am then able to create new accounts. I am totally unsure what to do. I am not sure if this is a UserPoints issue, a Referral Module issue or I am missing something very obvious. Line 216 and 217 of the referral.module are listed below. PLEASE HELP!

// Check to see if the role needs to be elevated
userpoints_role_userpoints('points after', 0, $cookie[$uid], '');

#1

kbahey - June 24, 2008 - 22:37
Project:User Points» User Referral
Version:5.x-3.7» 5.x-1.x-dev
Component:User interface» Code
Priority:critical» normal

The problem is in user referral, not user points.

#2

kbahey - June 24, 2008 - 22:37
Title:Fatal Error: Undefined Function - I am confused» Fatal Error: Undefined Functionuserpoints_role_userpoints()

#3

kbahey - June 24, 2008 - 22:40
Title:Fatal Error: Undefined Functionuserpoints_role_userpoints()» Fatal Error: Undefined Function: userpoints_role_userpoints()

#4

kbahey - June 24, 2008 - 22:43
Status:active» fixed

This is now committed to 5.x-1.x-dev.

Wait for 24 hours, then download the module, which should have a fix.

#5

Anonymous (not verified) - July 8, 2008 - 22:53
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.