Bug in og's tokem implementation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #180961. -->
Reported by: [pshadow](https://www.drupal.org/user/85371)
>>>
<p>Hey, I tried searching aroudn but could not find a solution. I'm getting the following error when adding a node after installing og:</p>
<p>warning: Invalid argument supplied for foreach() in /home/site/public_html/drupal/modules/node/node.module on line 504.<br>
warning: implode() [function.implode]: Bad arguments. in /home/site/public_html/drupal/modules/node/node.module on line 508.<br>
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 /home/site/public_html/drupal/includes/database.mysql.inc on line 172.</p>
<p>The node content type uses autonodetitles module and so the token module as well. Other content types not using autonodetitle seem o.k.</p>
<p>tried 5.4 and 5x.3.xdev and running php4.</p>
<p>any ideas on a fix? thanks for any pointers.</p>
issue