I get the following error when I try to enable both userpoints Basic and userpoints Invite module. things were working at version 2.3 of user points but 2.4 and 2.5 both bring down my whole site and display the following error:

Fatal error: Cannot redeclare userpoints_basic_help() in modules/userpoints/contrib/userpoints_invite/userpoints_invite.module on line 10

any ideas?

CommentFileSizeAuthor
#2 userpoints_invite_0.patch1.04 KBjondoesdrupal

Comments

jondoesdrupal’s picture

Yep, it looks like where this was moved off into a separate module it was left out to rename this function to userpoints_invite_help. Same goes for the second function of userpoints_basic_userpoints which needs to be userpoints_invite_userpoints.

After that though, it still didn't work as the options weren't showing up in the config page, for which I resolved by changing the assignment of $group on line 22 to something else (I used 'invite).

Appears to work now.

I've never produced a patch before so I'll look that up later on and submit one.

jondoesdrupal’s picture

StatusFileSize
new1.04 KB

OK, here goes, I produced this following the instructions at http://drupal.org/patch/create

Hope it works for you!

yched’s picture

Priority: Normal » Critical

+1 , plus bumping to critical (stops the userpoint_invite module from working)

kbahey’s picture

Status: Active » Fixed

Fixed in 5.x-2.6.

Anonymous’s picture

Status: Fixed » Closed (fixed)