Posted by budda on April 13, 2008 at 1:25am
| Project: | Outline |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
When selecting to administer a specific outline from the page ?q=
I'm greeted with an error:
* warning: Invalid argument supplied for foreach() in /var/www/html/drupal-5.0/modules/node/node.module on line 521.
* warning: implode() [function.implode]: Bad arguments. in /var/www/html/drupal-5.0/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 /var/www/html/drupal-5.0/includes/database.mysql.inc on line 172.This comes from the function outline_admin_edit() which is doing a DB query which returns a NID = false, and thus kills node_load().
This prevents outlines from being managed at all.
Looking at your code, the problem is due to no nodes being associated with a volume_id in the {outline_nodes} table.
I',m not sure how your error message "There are no child pages for %outline" would ever be printed either, because it';s inside the logic which required that a node->nid was returned in the first place.