I get the following PHP errors, will investigate more tomorrow.
* warning: Invalid argument supplied for foreach() in /usr/local/apache/htdocs/drupal5.vpac.org/modules/node/node.module on line 505.
* warning: implode(): Bad arguments. in /usr/local/apache/htdocs/drupal5.vpac.org/modules/node/node.module on line 509.
* 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 /usr/local/apache/htdocs/drupal5.vpac.org/includes/database.mysql.inc on line 172.
* warning: call_user_func_array(): First argumented is expected to be a valid callback, '_node_form' was given in /usr/local/apache/htdocs/drupal5.vpac.org/includes/form.inc on line 218.
Comments
Comment #1
brian_may commentedStack trace:
It would appear the problem is in audit_process_page, it expects 3 parameters (when $op==form) but only gets 2.
Comment #2
njivy commentedYou're right, an argument was missing.
If you update to at least v1.3 of audit.module, would you check for this error again?
Comment #3
njivy commentedSorry for the confusing version numbers.
The 5.x-1.x-dev download link will update to contain audit.module (CVS file version 1.3).
Comment #4
brian_may commentedThose PHP errors are fixed.
I was able to audit a number of nodes before I get the next PHP error:
As far as I can tell, it determines that the function project_project_node_form ($form_id) does not exist, fails to set $callback, and then tries to call $form_id (which it just determined does not exist).
Comment #5
njivy commentedWould you try uninstalling and re-installing the project module?
It sounds like node_get_types() is not returning a complete list in node_forms(). The $callback in form.inc should be filled with "node_form" by node_forms().
Comment #6
brian_may commentedI don't have a project module installed...
Comment #7
njivy commentedThe
project_project_node_formcallback starts with the node type (i.e.project_project) and ends with_node_form. So it looks like the node that is causing problems was created by the project module. To edit that node, the project module needs to be installed.If you don't want to edit that node, you could:
administer/content/nodeto remove all nodes of typeproject_project, orComment #8
njivy commentedOops; I didn't mean to imply a third option.
Comment #9
njivy commentedI believe the PHP error was caused by other factors, not this module. Unless you have new information, Brian, I am marking this issue as "by design."