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

michellezeedru’s picture

Title: Status update » Http 500 error with comment flags

Sorry for the bad titling - this one's better.

kreynen’s picture

Title: Http 500 error with comment flags » Status update
Assigned: Unassigned » kreynen

I never tested comments. The client I upgraded with for only needed node. Taking a look at the _userpoints_flag_get_comment_author function now.

kreynen’s picture

Status: Active » Needs review

This 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 214

In 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.

michellezeedru’s picture

Category: support » bug
Status: Needs review » Closed (fixed)

Thank you so much - your fix resolved the error and comment flags are now issuing points as expected!