Hello,

When posting a comment as an anonymous user I get the following error:

warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\drupal\modules\node.module on line 359.
warning: implode() [function.implode]: Bad arguments. in c:\Inetpub\wwwroot\drupal\modules\node.module on line 363.
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 DISTINCT(n.nid), n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, 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 INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND in c:\Inetpub\wwwroot\drupal\includes\database.mysql.inc on line 120.

If I read this correctly, then the SQL statement is verifying the uid. I would expect the Anonymous user to be uid=0, but maybe I am wrong in that.

I am interested to let anonymous posters make comments, so this is a bit of a problem for me.

Thanks.

Comments

steph’s picture

I just tested it with CVS head and DRUPAL-4-7-0-RC-2. Everything seems ok.

killes@www.drop.org’s picture

Status: Active » Closed (won't fix)

bogus