Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#7 | userpoints_user_picture_undefined_index_fix_1075668_7.patch | 454 bytes | codesidekick |
Comments
Comment #1
BerdirSounds 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?
Comment #2
KirstenLangholz CreditAttribution: KirstenLangholz commentedHello,
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?
Comment #3
BerdirWe 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.
Comment #4
BerdirComment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis 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)
Comment #6
BerdirYou could do that (for the Userpoints project). But ultimately, this is a bug in this project and needs to be fixed here.
Comment #7
codesidekick CreditAttribution: codesidekick commentedHi 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
Comment #8
ezra-g CreditAttribution: ezra-g commentedMarking as "needs review".