warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in includes/form.inc on line 378.

Disabling the module = no more warning. Enabling it , warning is back

Comments

ndrosev’s picture

I have almost the same problem with custom module
call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_node_action_bar' was given in /var/www/project/includes/theme.inc on line 668.
Can somebody help me ?

marinex’s picture

I have same issue

marinex’s picture

It seems that this error was returned when I have multiple forms on page, in my case it was search_box. I don't understand, but when I uninstall and again install search module the error was away... I thing this modul must be install before seach module. When I install this module after search module, error was again!

EDIT: It is not true! Error is still present!

marinex’s picture

So I have solution:
If I add new content type the $form['#node_type']->type is empty in the "modalframe_exclude_node_form_node_type_form_alter". Why? Because adding a new type that does not exist yet!
So it is necessary add:

if (!empty($form['#node_type']->type)) {
...
}

After new content type is added I can exclude some fields.