warning: Invalid argument supplied for foreach() in node.module on line 521
SomebodySysop - November 18, 2007 - 21:23
Running 5.3 patched code. Just noticed that whenever I go to a forum, I get these errors:
* warning: Invalid argument supplied for foreach() in /modules/node/node.module on line 521.
* warning: 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.I looked at these two issues:
http://drupal.org/node/164499
But, then don't seem to relate to me as I don't have the book, subscriptions or privatemsg modules installed. I get the error every time I click on a forum, and it appears no other time. Any suggestions?
Thanks!

5.2 Patch!
This occured after the 5.2 patch. Also, I notice I don't get the error when going to og forum forums, just regular forums. Help!
has there been any follow-up
has there been any follow-up to this? I'm getting the same errors.
Thanks!
Scott
If you are using OG User Roles
If you are using OGR, the problem may have been caused by it. Solution is here in that case: http://drupal.org/node/194214
I'm also getting the same
I'm also getting the same errors every time I view a content type node
As SomebodySysop I don't use "Book", "Subscriptions" or "privatemsg" but I don't use forum either.