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

http://drupal.org/node/180529

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!

SomebodySysop - November 19, 2007 - 20:44

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

scottrigby - February 18, 2008 - 20:15

has there been any follow-up to this? I'm getting the same errors.
Thanks!
Scott

If you are using OG User Roles

SomebodySysop - February 18, 2008 - 23:28

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

manoloka - September 25, 2008 - 12:47

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.

 
 

Drupal is a registered trademark of Dries Buytaert.