Hi,
When I edit a node which is a site and then click on the Preview button, I get these warning messages below. Note that there is nothing shown in the edit tab but the Preview and Submit buttons (I opened another issue for that: http://drupal.org/node/354759).
* warning: Invalid argument supplied for foreach() in /var/hostmaster/drupal-5.x/modules/node/node.module on line 561.
* warning: implode() [function.implode]: Bad arguments. in /var/hostmaster/drupal-5.x/modules/node/node.module on line 565.
* 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 /var/hostmaster/drupal-5.x/includes/database.mysql.inc on line 174.
Comments
Comment #1
anarcat commentedThis, of course, happens only if the user doesn't have full privileges.
Comment #2
anarcat commentedwe want to fix this for the next release.
Comment #3
adrian commentedThe preview was trying to display the client link based on a text field (ie: it's not mapped to an nid yet in the preview).
fixed in HEAD