Warning: call_user_func_array Error on form submission

backdrifting - July 9, 2008 - 12:50
Project:Webform
Version:6.x-2.1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm running Drupal 6.2 with Webform 6.x-2.1.1 and I'm getting the following error messages when submitting a form that I just designed:

# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in /home/variantc/public_html/essl/includes/theme.inc on line 591.
# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_select' was given in /home/variantc/public_html/essl/includes/theme.inc on line 591.
# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_select' was given in /home/variantc/public_html/essl/includes/theme.inc on line 591.
# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_select' was given in /home/variantc/public_html/essl/includes/theme.inc on line 591.
# warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_pagebreak' was given in /home/variantc/public_html/essl/includes/theme.inc on line 591.

The form data submits both to the database and I can view the results in the Webform interface. I also get the e-mail submission copy. So why is this error happening. Please help!

Thanks!

#1

ImmanuelPhillips - July 9, 2008 - 19:57

I get same errors! Help!

#2

INTERACSS - July 10, 2008 - 15:31

I also get the same, please help!!

Apart from that great module!

J

#3

quicksketch - July 10, 2008 - 16:38

This is a bit strange, these functions should be loaded when Webform creates the form. Is there anything special about the configuration of your form? (Any additional validation or submit code, is the form displayed in a custom way, etc).

#4

ImmanuelPhillips - July 10, 2008 - 20:42

I used webform to create a support desk system. There is no extra coding in there, just using the functions webform gives me.

#5

njcheng - July 11, 2008 - 18:36

I'm also getting the same errors, but only get errors when making a multi-page form with "pagebreak". I can't seem to find a correlation between the theme_webform_mail_[component] and the actual components I have in the form though...

#6

njcheng - July 14, 2008 - 16:56

Has anyone found a resolution to this outside of disabling page break? Thanks!

-NC

#7

bhagg - July 15, 2008 - 23:32

I am receiving similar warnings when I try to edit a node. Viewings the node is fine but now I don't have the ability to even delete it. Running version 5.3. Any ideas on how to remove this?

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

#8

shali.nguyen - July 16, 2008 - 22:39

this is what i'm getting:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_date' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_date' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_select' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_select' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_textfield' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_webform_mail_pagebreak' was given in C:\Apache22\htdocs\ucsf\includes\theme.inc on line 597.
warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Apache22\htdocs\ucsf\includes\mail.inc on line 193.
Unable to send e-mail. Please contact the site admin, if the problem persists.

#9

sampeckham - July 22, 2008 - 11:13

Same here with Drupal 6.3. Everything worked fine when I had the form on one page, but got the error as soon as I added a 'Pagebreak'

I do have some additional processing, but this still worked when the error showed, and didn't cause a problem before I used Pagebreak anyway.

Solutions?

#10

quicksketch - July 24, 2008 - 00:47
Title:Warning: call_user_func_array Error on form submission in Drupal 6.2» Warning: call_user_func_array Error on form submission
Version:6.x-2.1.1» 6.x-2.1.2
Component:Miscellaneous» Code
Category:support request» bug report
Priority:critical» normal
Assigned to:backdrifting» Anonymous
Status:active» needs review

I've never actually seen the errors, but I think I've discovered where this problem is occuring. My e-mails have come through but they don't have the proper default theming. Some of the components are also out of order: elements on the last page start the e-mail, followed by the ones from other pages. This patch should correct both problems.

Since I can't seem to reproduce the exact error, I'd appreciate confirmation that this patch will solve the problem.

AttachmentSize
webform_theme_missing.patch 1.03 KB

#11

dmweyer - July 30, 2008 - 11:02

I don't have command line access to the server my site is hosted on. Is there a manually way to apply this patch? i.e. to manually edit the relevant pages?

#12

quicksketch - July 31, 2008 - 03:48
Status:needs review» fixed

I went ahead and committed this fix because I feel like it's likely to fix the problem. Please reopen if this patch does not indeed solve the problem.

dmweyer: you can manually apply the patch by adding the lines to the webform.module that start with a "+" and remove lines that begin with a "-". Since this patch only adds lines, you just have to add in the two lines from the patch. Of course, you can also run patch locally then upload the new file to the server.

#13

dmweyer - July 31, 2008 - 09:41

Doh, dont know why I didnt think of that, thanks quicksketch

#14

sampeckham - July 31, 2008 - 10:23

Thanks for that tip on patching. I've not done any patches before, so being a small change it was easy just to add the lines of code to the file.

It all seems to work too, not getting those errors on multi-page forms. Thanks!

#15

Anonymous (not verified) - August 14, 2008 - 10:34
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#16

ionmedia - April 6, 2009 - 13:21

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

 
 

Drupal is a registered trademark of Dries Buytaert.