complete error is:

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

I get it when trying to edit a page. If I create a new node, tehn I do not get the error. One of my users was messing around with webforms.

I've tried clearing the cache, but no change.

Any ideas?

Tim

Comments

tschenz’s picture

Here's more info on the error (top post):

The error only occurs upon editing an existing page node. It does not occur upon editing a webform node or a newly created page node. I've done the following:

1. Restored the db from an earlier backup.
2. Reinstalled all modules (is this significant: the Updates page shows that the latest Event module - event-6.x-2.x-dev - still needs to be updated even though it's current)
3. reinstalled latest core - D6.9

Tim

joshmiller’s picture

I've experienced the same error... looking into it... maybe it's webform related?

~ eccl

christopherreay’s picture

I created this error by edditting the .info file of my theme, and saving it, and having changed the ownership of the file
(specifically so www-data was no longer the group)

so I changed the ownership back using chown

Keep on reading if this isnt relevant

joshmiller’s picture

Apparently, you need to include node.pages.inc before you can call drupal_get_form($type ...); as the form builder (node_form) and a lot of other important node form functions are in that file.

Why this has happened in a fresh install of a few different modules, not sure...

~ eccl

joshmiller’s picture

I disabled "Vertical Tabs (6.x-1.0-beta1)" and the error disappeared.

~ eccl

joshmiller’s picture

tschenz’s picture

I'm not using Vertical Tabs or CCK.

Tim

joshmiller’s picture

Tim,

Perhaps yours is webform related? Either way, it's throwing the error because it's trying to modify a form BEFORE there are functions that allow this. I recommend you look into finding the module that is causing the problem and then go to the related project page and click "view issue que" and scan the most recent issues for this kind of error.

~ eccl

design.er’s picture

Hi,

I have the same error message:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'stormteammember_delete' was given in C:\xampp\htdocs\mysite.com\includes\form.inc on line 366.

But this happens, when I delete a team member in the storm module. That's not just an error message... I'm not able to delete the team member.
Is it a storm specific problem or something in the drupal core? I'm using Drupal 6.9 for a really big community project - with over 70 modules. maybe are this infos important/relevant.

Thanks a lot in advance and regards,
Stefan

Antinoo’s picture

It's not a storm specific problem, since it's happening to me too, and I never installed storm.

summit’s picture

Hi,
I have this errors:

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 366. 
warning: uasort() [function.uasort]: The argument should be an array in /includes/common.inc on line 2829. 

I also use the hierarchical_select.module.

Hopefully somebody has an solution please.
greetings,
Martijn

mangwills’s picture

I encountered the same problem. For me, the problem occurred because I deleted a content type that is being used by a node. There was already a node of that content type. So when I deleted the content type, the reference error occurred. In the above example, it's possible there was a deleted content type called "vol_sg_ccc".

To resolve the issue, I recreated the content type so that I can edit and thus delete the referencing node. Afterwards, I just deleted the content type again.

laryn’s picture

Thanks for this -- solved my issue as well.

alidang’s picture

I disabled the Blog content type and that error appeared when I was opening a blog to edit it.
Thanks for the great help!

bobbydonohue’s picture

I had this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'webform_node_form'

Turned out I accidentally deleted the webform module when I went to delete a different module. I could not figure out the problem, so I deleted the web form node that wasn't working. I discovered my error when I went to create a new form, and saw there was no webform content type to choose. Oops :(

Bob

t.a. barnhart’s picture

i got this error on the Module page.
i had deleted a menu item (in primary links). i re-created the menu item, disabled it & pointed it to an unpublished page. that worked. i suppose a cleaner solution would be to find out what might be needing that menu item & fix that.

kiwad’s picture

In my case, the warning was coming from Modalframe Exclude from Node -> http://drupal.org/node/1060428

dave_______1’s picture

Anyone solved this?

I switched off then uninstalled the Ubercart Addresses module and some of my content types have gone mad!

When I edit any bido_tv content type I get no edit page but just the error
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'tv_node_form' was given in C:\Users\Dave\Documents\Clients\B\Bido Lito\Website\includes\form.inc on line 377.

This is only happening on my test site on a WAMP setup but I've had it on a real site before when I've taken off the Ubercart Addresses module

Any help to solve this would be great?

dave_______1’s picture

More...
It seems 7 of 11 of my content types have gone after uninstalling Ubercart Addresses module!
Not nice :(