I have such an error and don't see the form to voote

user error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND nid = 14' at line 1
query: SELECT * FROM nodevote WHERE uid =  AND nid = 14 in /drupal46/includes/database.mysql.inc on line 66.

Can you help?

Andrzej

Comments

kbahey’s picture

I am not sure why this is happening.

Can you post the exact URL where this is happening? I mean http://example.com/node/???

Is the user logged in?

Are the permissions set up correctly ("view notevotes")?

moggy’s picture

Version: master » 4.6.x-1.x-dev

Just downloaded the 4.6 version and I'm getting the same.

Installed mysql table, enabled module, enabled voting on all node types, set access to voting for unregisted and authenticated users.

when logged in as root I get that error. When I'm not logged in I get no error, but no sign of voting either.

kbahey’s picture

Moggy,

Thanks for the detailed description of how to get to the error message.

I can now reproduce this issue, and will have a fix in a few days, as time permits.

kbahey’s picture

Assigned: Unassigned » kbahey

Well, that was faster that I thought.

I commited a fix, and it should go into tomorrow's download.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)