Download & Extend

Fatal Error: Undefined Function: userpoints_role_userpoints()

Project:User Referral
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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], '');

Comments

#1

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

Title:Fatal Error: Undefined Function - I am confused» Fatal Error: Undefined Functionuserpoints_role_userpoints()

#3

Title:Fatal Error: Undefined Functionuserpoints_role_userpoints()» Fatal Error: Undefined Function: userpoints_role_userpoints()

#4

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

Status:fixed» closed (fixed)

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

nobody click here