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

brian_may’s picture

Stack trace:

Array
(
    [0] => Array
        (
            [file] => /usr/local/apache/htdocs/drupal5.vpac.org/modules/audit/audit.module
            [line] => 424
            [function] => node_load
            [args] => Array
                (
                    [0] => 
                )

        )

    [1] => Array
        (
            [file] => /usr/local/apache/htdocs/drupal5.vpac.org/modules/audit/audit.module
            [line] => 88
            [function] => _audit_process_form
            [args] => Array
                (
                    [0] => stdClass Object
                        (
                            [nid] => 58
                            [vid] => 58
                            [type] => audit_process
                            [status] => 1
                            [created] => 1172463817
                            [changed] => 1172463817
                            [comment] => 0
                            [promote] => 0
                            [sticky] => 0
                            [revision_timestamp] => 1172463817
                            [title] => Audit Process
                            [body] => This is an audit process with a description that is completely useless.
                            [teaser] => This is an audit process with a description that is completely useless.
                            [log] => 
                            [format] => 1
                            [uid] => 5
                            [name] => brian
                            [picture] => 
                            [data] => a:6:{s:6:"notify";i:0;s:6:"submit";s:18:"Create new account";s:7:"form_id";s:13:"user_register";s:14:"tinymce_status";s:4:"true";s:5:"block";a:1:{s:6:"search";a:1:{i:0;i:0;}}s:14:"picture_delete";s:0:"";}
                            [path] => audit.html
                            [taxonomy] => Array
                                (
                                )

                        )

                    [1] => 
                )

        )

    [2] => Array
        (
            [function] => audit_process_page
            [args] => Array
                (
                    [0] => 58
                    [1] => form
                )

        )

    [3] => Array
        (
            [file] => /usr/local/apache/htdocs/drupal5.vpac.org/includes/menu.inc
            [line] => 418
            [function] => call_user_func_array
            [args] => Array
                (
                    [0] => audit_process_page
                    [1] => Array
                        (
                            [0] => 58
                            [1] => form
                        )

                )

        )

    [4] => Array
        (
            [file] => /usr/local/apache/htdocs/drupal5.vpac.org/index.php
            [line] => 15
            [function] => menu_execute_active_handler
            [args] => Array
                (
                )

        )

)

It would appear the problem is in audit_process_page, it expects 3 parameters (when $op==form) but only gets 2.

njivy’s picture

You're right, an argument was missing.

If you update to at least v1.3 of audit.module, would you check for this error again?

njivy’s picture

Sorry for the confusing version numbers.

The 5.x-1.x-dev download link will update to contain audit.module (CVS file version 1.3).

brian_may’s picture

Those PHP errors are fixed.

I was able to audit a number of nodes before I get the next PHP error:

warning: call_user_func_array(): First argumented is expected to be a valid callback, 'project_project_node_form' was given in /usr/local/apache/htdocs/drupal5.vpac.org/includes/form.inc on line 219.

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).

njivy’s picture

Would 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().

brian_may’s picture

I don't have a project module installed...

njivy’s picture

Category: bug » support

The project_project_node_form callback 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:

  • Edit your view to exclude nodes of that type or
  • Go to administer/content/node to remove all nodes of type project_project, or
njivy’s picture

Oops; I didn't mean to imply a third option.

njivy’s picture

Status: Active » Closed (works as designed)

I 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."