I've been getting this error whenever I try to load the "Upcoming Scoops" page:
warning: Invalid argument supplied for foreach() in /wroot/htdocs/drupal/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /wroot/htdocs/drupal/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 /wroot/htdocs/drupal/includes/database.mysqli.inc on line 151.
I'm not quite sure where I went wrong... It is a fresh Drupal install and I'm curious if anyone has run across this before. I'll start systematically turning off my additional modules to see if any one is interfering. Clearly there is no "WHERE" in the statement, but I'm not sure how to even find the code to fix it. I don't think this page was ever working. This is an amazing module and I plan on trying on contributing with actual code soon, not just problems!
Comments
Comment #1
baloneysammitch commentedUhg, I shouldn't post when I'm tired. This error only happens when I'm trying to view this page anonymously. I think I have a lead now so I can track this down and fix it.
Comment #2
mercmobily commentedHi,
This is indeed a strange error. The problem is that it doesn't seem to have much to do with Drigg. The query is in node_load(), which is failing for you...
Bye,
Merc.
Comment #3
mercmobily commentedHi,
Any news on this one?
Also, I noticed that you're using a very old version of Drigg... please let me know if upgrading makes things better.
Bye!
Merc.
Comment #4
mercmobily commentedHi,
Obviously not interested.
I will assume that the user was using an old version of Drigg.
Merc.
Comment #5
mercmobily commented