I set up Advanced Poll for the 1st time, and enabled the "Advanced Poll - Newest" block before creating any polls. I get:

* warning: Invalid argument supplied for foreach() in C:\xampp\drupal-site\modules\node\node.module on line 488.

* warning: implode() [function.implode]: Bad arguments. in C:\xampp\drupal-site\modules\node\node.module on line 492.

* user warning: 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 '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in C:\xampp\drupal-site\includes\database.mysqli.inc on line 151.

* No type specified for node

* No type specified for node

Either creating a poll or removing the block fixes the issue.

Running Drupal 5.0 beta 2, VotingAPI HEAD.

BTW, overall the module looks great.

Comments

ChrisKennedy’s picture

Status: Active » Fixed

Thanks for the bug report. I actually stumbled upon this bug yesterday and already fixed it: http://drupal.org/cvs?commit=47933

So if you get the latest build it should be fixed. Let me know if it's still broken though.

Anonymous’s picture

Status: Fixed » Closed (fixed)