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!
Comment | File | Size | Author |
---|---|---|---|
#10 | webform_theme_missing.patch | 1.03 KB | quicksketch |
Comments
Comment #1
ImmanuelPhillips CreditAttribution: ImmanuelPhillips commentedI get same errors! Help!
Comment #2
INTERACSS-1 CreditAttribution: INTERACSS-1 commentedI also get the same, please help!!
Apart from that great module!
J
Comment #3
quicksketchThis 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).
Comment #4
ImmanuelPhillips CreditAttribution: ImmanuelPhillips commentedI used webform to create a support desk system. There is no extra coding in there, just using the functions webform gives me.
Comment #5
njcheng CreditAttribution: njcheng commentedI'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...
Comment #6
njcheng CreditAttribution: njcheng commentedHas anyone found a resolution to this outside of disabling page break? Thanks!
-NC
Comment #7
bhagg CreditAttribution: bhagg commentedI 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.
Comment #8
shali.nguyen CreditAttribution: shali.nguyen commentedthis is what i'm getting:
Comment #9
sampeckham CreditAttribution: sampeckham commentedSame 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?
Comment #10
quicksketchI'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.
Comment #11
dmweyer CreditAttribution: dmweyer commentedI 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?
Comment #12
quicksketchI 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.
Comment #13
dmweyer CreditAttribution: dmweyer commentedDoh, dont know why I didnt think of that, thanks quicksketch
Comment #14
sampeckham CreditAttribution: sampeckham commentedThanks 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!
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
ionmedia CreditAttribution: ionmedia commentedwarning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback,