Hi,
I've upgraded from 2.6 to Vers. 3.1.
When I try to send an email I get the following Errors:
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_date() in /www/htdocs/w0095e17/modules/webform/components/date.inc on line 306.
* warning: Missing argument 2 for _webform_display_date() in /www/htdocs/w0095e17/modules/webform/components/date.inc on line 306.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_email() in /www/htdocs/w0095e17/modules/webform/components/email.inc on line 173.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textarea() in /www/htdocs/w0095e17/modules/webform/components/textarea.inc on line 129.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_date() in /www/htdocs/w0095e17/modules/webform/components/date.inc on line 306.
* warning: Missing argument 2 for _webform_display_date() in /www/htdocs/w0095e17/modules/webform/components/date.inc on line 306.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
* warning: Missing argument 2 for _webform_display_email() in /www/htdocs/w0095e17/modules/webform/components/email.inc on line 173.
* warning: Missing argument 2 for _webform_display_textfield() in /www/htdocs/w0095e17/modules/webform/components/textfield.inc on line 167.
* warning: Missing argument 2 for _webform_display_textarea() in /www/htdocs/w0095e17/modules/webform/components/textarea.inc on line 129.
* warning: Missing argument 2 for _webform_display_select() in /www/htdocs/w0095e17/modules/webform/components/select.inc on line 433.
The email I receive includes no data from the submission.
I uninstalled and reinstalled the module but still having this problem.
I use a webform-form-[nid].tpl.php
I can't solve this problem alone but need the form urgent.
Please help anybody.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | webform.submissions.inc_.txt | 28.23 KB | cmartin3251 |
| #12 | style.css_.txt | 9.16 KB | cmartin3251 |
| #10 | Screen shot 2011-07-01 at 11.10.40 AM.png | 358.02 KB | cmartin3251 |
Comments
Comment #1
quicksketchTry removing all of your custom Webform theming and then submitting the form. I don't think the form structure changed between 2.x and 3.x, so your webform-form-[nid].tpl.php file shouldn't have an effect, but you never know. More likely this problem would be caused by a themed webform-mail.tpl.php file.
Comment #2
tomberlin commentedI tried with template and without and it makes no difference.
It seems for me that it has problems to read the data.
When I view the submission I get this:
Apartment:
Array
Anzahl Personen /
number of persons:
Array
Anreise / arrival:
Array
....
My website: www.koffer-in-berlin.com.
Any idea?
Thanks
Comment #3
jonesmac commentedI receive the same errors.
Here's the log entry:
Missing argument 2 for _webform_display_textarea() in /home/neo3jon3/public_html/drupal/sites/all/modules/webform/components/textarea.inc on line 129.
Comment #4
jonesmac commentedI receive the same errors.
Here's the log entry:
Missing argument 2 for _webform_display_textarea() in /home/neo3jon3/public_html/drupal/sites/all/modules/webform/components/textarea.inc on line 129.
Comment #5
quicksketchI need more information in order to reproduce (and fix) this problem.
Comment #6
jonesmac commentedI have created a new webform and added one field (text area). When I submit the form, the following errors comeback. For some reason it doesn't seem to pass through the textarea.inc file. I am sure you need more, so let me know what questions you would like answered and I will try to help.
warning: Missing argument 2 for _webform_display_textarea() in /home/neo3jon3/public_html/drupal/sites/all/modules/webform/components/textarea.inc on line 129.
warning: Missing argument 2 for _webform_display_textarea() in /home/neo3jon3/public_html/drupal/sites/all/modules/webform/components/textarea.inc on line 129.
It also say "The requested page could not be found."
When I go to view the submission is says message: (the title of my field) and the only data it says came through that field is "array" Meaning its missing the arguement
Comment #7
quicksketchI haven't gotten any similar reports in several months now, I'm guessing this was solved in one of the updates since 3.2.
Comment #8
pepemty commentedSorry to reopen this issue, Nathan.
I also have these warnings, after sending the form and when I open the results:
warning: Missing argument 2 for _webform_display_textfield() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/textfield.inc on line 167.
warning: Missing argument 2 for _webform_display_textfield() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/textfield.inc on line 167.
warning: Missing argument 2 for _webform_display_textfield() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/textfield.inc on line 167.
warning: Missing argument 2 for _webform_display_email() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/email.inc on line 174.
warning: Missing argument 2 for _webform_display_textfield() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/textfield.inc on line 167.
warning: Missing argument 2 for _webform_display_textarea() in /home/thebeerb/acideal.com/sites/all/modules/webform/components/textarea.inc on line 131.
Plus, my posting only sends "Array":
Nombre:
Array
Compañía:
Array
Teléfono:
Array
Correo electrónico:
Array
Asunto:
Array
Mensaje:
Array
I'll appreciate any help here.
Warm regards from sunny México!
: )
Pepe
Comment #9
jonesmac commentedI still have the same issue as well with webform 3.5
Comment #10
cmartin3251 commentedThis issue still persists. I am convinced it is a themeing issue, but am not sure what component of the theme is causing this issue. This issue is NOT fixed, and I would appreciate any insight to what the actual issue may be. I am looking for a SOLUTION because this happens inconsistently and not a workaround.
The errors I received are:
my textfield.inc lines 160-180:
my select.inc lines 477-492
Any help in getting this issue resolved is greatly appreciated.
Comment #11
quicksketchIf you can provide any way to reproduce this issue from a new Drupal install I'd be happy to take a look at it. From the descriptions provided it looks like this is caused by either something in the site's theme or from an add-on to the Webform module.
Comment #12
cmartin3251 commentedWell, I can tell you that I did not test the webforms, nor make the forms until the website was online. As far as replication goes, I made absolutely NO adjustments to the webforms in my theme (ad_novus) or the module itself. The only things I adjusted in the theme, were the style sheets (see attached). The website itself is currently viewable at http://www.cdllicense.com/
I will be glad to give you any information you need in working to resolve this issue.
Comment #13
quicksketchThe extra-mysterious thing about this problem is that those functions (the "display" functions) shouldn't be getting called at all. Those functions are intended to show the contents of a submission that have been completed (such as in the e-mail or when an admin is viewing the submission). Are you getting those errors just by viewing the node or is this after you submit the form?
Comment #14
cmartin3251 commentedI am receiving these errors upon form submission. Additionally, the values that are displayed in the form submission email are displayed as ARRAY instead of the user inputted value:
Comment #15
cmartin3251 commentedI deleted and reinstalled the Webform module completely (including downloading an entirely new copy of the module fresh from the project page) yet, still no resolution. Leaving me to believe that this is not a webform problem so much as it is a conflict with another module or theme. Please see below for the list of installed modules on this website for known conflict reporting.
Comment #16
quicksketchSo I'm still largely at a loss here. As far as I can trace it back with this information I think something is going wrong inside of the webform_submission_send_mail() function (in webform.submissions.inc). The only thing I could see that would cause this would be if the $submission variable were emptied or mangled somewhere in that function (though I have no idea how that would happen).
Comment #17
cmartin3251 commentedI'm baffled as to what the actual problem is as well. I have included the text from my submission function.
EDIT: See attachment.
Comment #18
quicksketchPosting the contents of your code isn't going to help (unless you've modified it in some way). I already know you're using the 3.11 version of the module according to the issue version number.
Comment #19
cmartin3251 commentedDo you have any other suggestions as to the resolution of this problem? I am at a loss as I have reinstalled the theme and the webform module.
Comment #20
quicksketchDid you try changing your theme entirely (say to Garland, which we know won't have any problems)? Then we'd know for sure it's not the theme at least. None of the modules you've listed above look particularly suspicious, but when faced with such an odd problem sometimes the best you can do is start disabling modules until it starts working, then pinpoint the one causing it.
Of course I recommend doing all of this on a backup, as it will cause quite a disruption to your site.
Comment #21
cmartin3251 commentedAlright, I have tried your suggestions and the problem is DEFINITELY the theme (ad_novous). When I submitted the form under the Garland Theme, it submitted fine with no issues. What should I do now?
Comment #22
quicksketchHmm, well I looked through the Ad Novus project's code and it's *very* minimal, I couldn't find anything that would cause this problem.
Worse yet, I thought maybe we'd pinned down the problem anyway so I downloaded ad_novus (1.6) and installed it on my local Drupal 6 site. I enabled the theme and filled out a webform that had e-mail configured. The e-mail came through perfectly fine, no errors on the front-end, and all values coming through into my inbox perfectly. So the mystery continues. :(
Comment #23
jonesmac commentedThanks for picking this up again. I can confirm none of the stock drupal themes produce the issue for me. It is only when I make my own sub theme of garland or acquia that the same "array" errors occur for me as well. Unfortunately, all my sites that are live use webform 2.x to avoid the problem. Something changed in the 3.x branch that broke webform for me when using sub-themes. cmartin, can you confirm that you get the errors when using a sub-theme as well? Does webform 2.x still work for you? Perhaps we could at least narrow the scope of the affected code and modules.
Comment #24
vernond commented@ jonesmac and cmartin3251 - A total shot in the dark here: Do both your themes have something along the lines of
if ($submitted) {(or at least the $submitted variable) as used in the ad_novus theme node.tpl.php file? If so, are you doing anything to, with, or because of, that variable in your theme coding anywhere? I'm speculating that perhaps that variable and/or the submitted css class that gets assigned there is causing some kind of nonsense with the Webform submitted array.The irritating thing is that my tests with ad_novous worked just fine (D6.22 + Webform 3.11), hence this is just a shot in the dark.
Comment #25
quicksketchOooo, a nice suggestion @vernond! Perhaps our variable is getting clobbered by template_preprocess_node(). But I have no idea exactly how that would be happening. Those variables should be safely scoped. Still, this is the best guess so far!
Comment #26
cmartin3251 commentedYes, I do have the submitted variable in my node.tpl.php.
Do you think this is the issue? I have not modified this file from the original as far as I can remember.
edit: removing or commenting out this line does NOT solve the issue.
Comment #27
vernond commentedCan you confirm which version of Drupal core you're running please. I really would like to be able to replicate this issue, mostly 'cos it just doesn't make proper sense.
In #10 you mention that the problem is intermittent (the *worst* kind of bug!). Have you been able to identify any possible trends at all? For example, is Devel active when the issue crops up, was theme registry refreshed just before... something, anything, anything at all. Even a wild guess would do :-)
Comment #28
jonesmac commentedWell I have effectively solved the issue for me. Here it goes:
1) The problem resided in the base theme declaration in the .info file of my sub-theme. In my case, I was using Acquia Marina as my base theme listed in my .info like so
base theme = Acquia MarinaSeemed right since that was how it was listed labeled inside the .info file.
However, the .info file for the Acquia Marina Theme was labeled "acquia_marina.info" Once I changed the declaration within my sub-theme to
base theme = acquia_marinaall my webform submissions were viewable and my missing argument errors were gone upon submitting through the webform!
FYI - I think the documentation in http://drupal.org/node/171205#base-theme isn't clear whether it wants the name of the base theme as it is declared in the .info file or the filename of the .info file itself.
2) So is it a webform issue or not? Well, as best as I understand it, something changed in the way webform 3.x processes through the theme. All my live sites that are running webform 2.x still work with the declaration as
base theme = Acquia MarinaHowever, once I upgrade them to 3.x I believe I know I will return to the missing argument errors.
quicksketch, does this make any sense to you? cmartin, check your setup and see if anything I just wrote can help you. Thanks for all your help. Again, I have reproduced this back and forth with webform 3.11 and changing the base theme declaration clearly brings up the missing argument errors.
Comment #29
quicksketchWow, thanks @jonesmac. No, that doesn't make any sense to me, though. ;)
If I get a chance I'll try out this situation and see if I can reproduce. In @cmartin3251's situation though, there isn't a base theme involved at all, the ad_novus theme is self-standing.
Comment #30
hanskuiters commented@jonesmac: you made my day. I too had a problem with webform on one specific theme. I removed 'base theme' from the .info file and all works great.
Comment #31
jonesmac commentedGlad it worked :) I was using 2.x for way too long
Comment #32
magicmarkker commentedThis is what fixed it for me:
If you have no base theme, completely take out the base theme = part in your .info file.
Having it just blank is what caused the Array errors for me... Hope that helps, it took me forever to figure this out and forever to find other people with the same problem
Comment #33
quicksketchGreat, well sounds like we have the culprit here. I've updated the title to reflect what actually caused the problem.