Error listing releases

dantina - September 5, 2007 - 13:49
Project:OG Project
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

I am not sure if this error should be logged against project but...

I am getting the following error when I try to list releases:

warning: Invalid argument supplied for foreach() in \modules\node\node.module on line 521.
warning: implode() [function.implode]: Bad arguments. in \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 \includes\database.mysql.inc on line 172.

Using this code (thanks to Greggles - http://drupal.org/node/63500)

<?php
  
if (!is_array($param)) {
     
ob_start();
     
var_dump(debug_backtrace());
     
$output = ob_get_clean();
     
watchdog('node_debug','backtrace is:'. $output);
    }
?>

It seemed the problem is with these lines:

project_release_project_nodeapi($node, $op, $arg); (function project_release_nodeapi(&$node, $op, $arg) {)
$output = project_release_list($node); (function project_release_project_releases()

I've originally logged it against OG here: http://drupal.org/node/173238. Is there a way to resolve this problem?

dantina.

#1

hunmonk - September 21, 2007 - 11:15
Status:active» postponed (maintainer needs more info)

i'm not seeing where there could be a problem with those lines. the error is in function node_load() in the array case, but the node_load() that is called from function project_release_project_releases() is using a verified numeric arg. try disabling OG, and if the problem goes away, it is most likely an OG bug.

#2

hunmonk - September 29, 2007 - 12:28
Project:Project» Organic groups
Version:5.x-1.0» 5.x-1.0
Component:Releases» og.module

#3

hunmonk - September 29, 2007 - 12:31
Project:Organic groups» OG Project
Version:5.x-1.0» 5.x-1.x-dev
Component:og.module» Code

should go here instead.

 
 

Drupal is a registered trademark of Dries Buytaert.