# warning: Invalid argument supplied for foreach() in modules/node/node.module on line 521.
# warning: implode() [function.implode]: Bad arguments. in modules/node/node.module on line 525.
# 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 includes/database.mysql.inc on line 172.
Problem seems to be in fivestar_comment.inc, function fivestar_comment().
There is a node_load($comment->nid) but 'nid' is not set, therefore above error messages is printed.
Workaround: check if $comment->nid is set before node_load() is called.
Comments
Comment #1
quicksketchCould you elaborate where this error is caused? I'm not seeing it in admin/content/comments or elsewhere.
Comment #2
quicksketchOkay I found a few places where this was cropping up. I've added some extensive checking on the incoming $comment values to ensure we don't get a bogus node_load().
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.