Closed (fixed)
Project:
Userpoints Flag [D7]
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Apr 2012 at 16:13 UTC
Updated:
17 Apr 2012 at 21:57 UTC
Hi - I would love to incorporate this module into a site I'm building. I've given the latest dev version a try and it seems to work for flags of type "node", but I'm getting a strange HTTP Error 500 for flags of type "comment". The error message is something like this:
An HTTP error 500 occurred.
http://mysite.com/flag/flag/plus1_comment/9?destination=node/52&token=KH...
"plus1_comment" is the name of the flag I'm using, but there's no such location on my server as flag/flag/plus1_comment.
Any suggestions how I could help to Userpoints working for comment flags?
Comments
Comment #1
michellezeedru commentedSorry for the bad titling - this one's better.
Comment #2
kreynen commentedI never tested comments. The client I upgraded with for only needed node. Taking a look at the _userpoints_flag_get_comment_author function now.
Comment #3
kreynen commentedThis was a REALLY easy fix. If you checked you Recent Log Messages, you would have seen something like...
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'comments' doesn't exist: SELECT uid FROM {comments} WHERE cid = :cid; Array ( [:cid] => 2 ) in _userpoints_flag_get_comment_author() (line 214In D6 the table was named comments. In D7 the table was renamed to just comment.
#1022800: D7: Table {comments} renamed to {comment}
Committed a fix...
http://drupalcode.org/project/userpoints_flag.git/commit/0e41677
I haven't thoroughly test the rest of the comment related functionality, so please close this issue if it works or follow up if there is something else that isn't working.
Comment #4
michellezeedru commentedThank you so much - your fix resolved the error and comment flags are now issuing points as expected!