Closed (fixed)
Project:
Advanced Poll
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2006 at 05:53 UTC
Updated:
29 Dec 2006 at 06:00 UTC
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
Comment #1
ChrisKennedy commentedThanks 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.
Comment #2
(not verified) commented