Hello,
I enabled userpoints and all worked fine, but then I logged out and logged in again and now it shows the following error:
Notice: Undefined index: points in userpoints_userpointsapi() (line 551 of ....sites/all/modules/userpoints/userpoints.module).
Can you please help me with this error?

Thank you,
Kirsten

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Sounds like you are using a module that grants points when you log in.

Userpoints itself does never automatically grant points.

What userpoints related modules do you have enabled?

KirstenLangholz’s picture

Hello,
after testing I could figure out that the implementation for userpoint user pictures provokes this error message. Do I have to open an issue over there now?

Berdir’s picture

Project: User Points » User Points User Picture
Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Component: Code: userpoints API » Code
Category: task » bug

We can move this issue over.

Points is a required argument and even if we could improve the check, that module probably still needs to be updated.

Berdir’s picture

Status: Postponed (maintainer needs more info) » Active
SocialNicheGuru’s picture

This is also a problem in d6. should I open up a similar issue for d6?

notice: Undefined index: points in userpoints_userpointsapi() (line 593 of /var/aegir/platforms/Modules_Directory/contrib-core-1/userpoints/userpoints.module)

Berdir’s picture

You could do that (for the Userpoints project). But ultimately, this is a bug in this project and needs to be fixed here.

codesidekick’s picture

Version: 7.x-1.x-dev » 6.x-1.2
FileSize
454 bytes

Hi all,

The following patch fixes this error for the 6.x version by defining points as a part of the param array at the start of hook_user. Same method will probably work with 7.x if somebody wants to upload a patch.

thanks

ezra-g’s picture

Status: Active » Needs review

Marking as "needs review".