Hi,

When a user tries to vote again for the same node, it produces the following error:

user error: Duplicate entry '3-90' for key 1
query: INSERT INTO nodevote VALUES (3, 90, 10) in /home/mysite/public_html/includes/database.mysql.inc on line 66.

Comments

noid’s picture

Just found out that I was able to vote again because I was presented the cached page (with the Score this node pulldown).

At any rate, though the error is not critical, perhaps this could be addressed in the code just in case the aforementioned situation (cached page is served) is replicated? :)

kbahey’s picture

Priority: Normal » Minor

Lowering priority to minor, since this is a caching issue and apart from the unsightly message, it is not important.

kbahey’s picture

This is now implemented in 4.6 and 4.7. Users can change their vote anytime.

kbahey’s picture

Assigned: Unassigned » kbahey
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)