Closed (fixed)
Project:
User Points
Version:
7.x-1.x-dev
Component:
Code: userpoints
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 May 2011 at 09:59 UTC
Updated:
26 Jul 2011 at 18:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirIt doesn't wsod for me so your bug report doesn't provide me with much information. Make sure you clear all caches and rebuild the menu (run update.php). If it still fails, try to figure out the actual error, see http://drupal.org/node/158043
Comment #2
kokrull commentedhmmm, me then.? bummer, was hoping i found something, nevermind. lol
ok, the details
error reporting on, machine on same network, running wamp, but edited index.php and added code temporarily anyway.
deleted beta (which i had reverted to), placed rc1 version in its place. Ran update.php and got no pending. Went to devaddy/myuserpoints/1 and got wsod still. I was expecting an error of some kind due to previous edit, but nothing. Then remembered i had left the admin menu module left on, they seem to clash, (the admin menu doesn't appear while userpoints nodes and comments is enabled, but as i only use it for minimizing the modules and permissions page it wasnt a biggie for me, see http://drupal.org/node/442560#comment-4321346) I switched it off and went back to myuserpoints/1 the page was displaying, but no points were displayed, but did get the following notices,
Notice: Undefined index: 1 in userpoints_filter_query() (line 1402 of *snip\sites\all\modules\userpoints\userpoints.module).
Notice: Undefined index: 1 in userpoints_filter_query() (line 1402 of *snip\sites\all\modules\userpoints\userpoints.module).
Notice: Undefined index: localized_options in menu_navigation_links() (line 1780 of *snip\includes\menu.inc). (hmm, looks like i got another unrelated issue aswell, )
soz if i posted in the wrong place, kinda new, but thanks for getting back to me.
cheers, k/g
edit
i also seem to have a extra menu item appear on the myuserpoints/1 page, shows as "My !points" it only appears on that page and no others and links to myuserpoints/%25 which again doesnt show the points, hitting the regular "my points" menu displays all points normally,
Comment #3
berdirYou probably just want to use /myuserpoints. /myuserpoints/1 has a different meaning now, it doesn't show the points of the user 1 but the points of the current user of category id 1. So if you don't have any categories, then you get these errors.
Maybe your menu items are messed up, check them in the menu administration and tell me where they point to.
To access the points of another user, go to his user profile page and then chose the Points local tasks (or user/id/points).
Comment #4
kokrull commentedall the menu items appear to be fine and do what they are supposed to do, can see my points menu and the link displays my points earned, its just the transactions page from the "view point transactions" link on the user profile, not a menu i have come across so not altered it, no idea why it points to the wrong place then,
when i go to edit the "my points" menu it says the path is "My !points" (which is the extra menu item that appears on the page that the transactions link points to) even though the hover text points to "myuserpoints/"
all worked fine with beta including the transactions, apart from the update changed nothing, anyways, my brains fried for the moment so going to go eat and look at it later,
thanks again for the input.
Comment #5
berdirAh, I see. I didn't get from your two previous descriptions that this was about the link displayed on the user profile.
I guess we forgot to convert that link on the user profile. We have too few automated tests:(
I'll fix that soon, trivial stuff.
Comment #6
berdirComment #7
restyler commentedI get the wrong link /myuserpoints/1 on user profile page (user/1), and that causes undefined index errors, too. 7.x-1.0-rc1
Comment #8
anewman1980 commentedEasy solution
Configuration -> Account Settings -> Manage display
then hide it. Do you really need it in the user profile anyway? The formatting of the profile content could also could do with an extra carriage return at the bottom.
Comment #9
berdirTry the attached patch, should fix both the wrong link and move the Points local task behind "Edit".
Comment #10
berdirComment #11
berdirCommited.
Comment #13
jensen9090 commentedthanks a lot. the patch is good.