I set up client, web server, database server, platform and tried to create a site, using those. I got the following error:

Your Site has been created.
warning: Invalid argument supplied for foreach() in /private/var/www/provision/drupal-5.7/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /private/var/www/provision/drupal-5.7/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 /private/var/www/provision/drupal-5.7/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /private/var/www/provision/drupal-5.7/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /private/var/www/provision/drupal-5.7/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 /private/var/www/provision/drupal-5.7/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /private/var/www/provision/drupal-5.7/modules/node/node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in /private/var/www/provision/drupal-5.7/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 /private/var/www/provision/drupal-5.7/includes/database.mysql.inc on line 172.

Comments

anarcat’s picture

Priority: Critical » Minor

This bug is actually a minor one. It's just a warning message from the views hook code, that I traced back to those lines in hosting.module:

function hosting_relation_link_handler($fieldinfo, $fielddata, $value, $data) {
  return _hosting_node_link($data->hosting_action_rid);
}
anarcat’s picture

I actually fixed the main view display (and therefore the handler) in commit 105891, so that's probably not the issue anymore...

anarcat’s picture

Title: Site creation does not work in HEAD » Site display yields awful warnings
Component: Code » User interface

This doesn't actually affect functionality, AFAIK.

adrian’s picture

The insert / update statements were incorrect, therefor the site records weren't created.
this has been fixed now.

adrian’s picture

Status: Active » Fixed

fixed in last commit

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.