I would really appreciate any help on this, as I'm now relying heavily on Ubercart's webform ( 7.x-2.2 ) integration to finish a project.
Due to other issues getting conditional statements to work with webform and ubercart I got desperate and upgraded to Webform 4 ( 7.x-4.0-alpha8 ) as it sounds great.
When first upgrading webform and webform conditionals to 4, I had a couple of errors when editing the components of existing forms:
Cannot redeclare _webform_components_form_rows()
and
Undefined index: required in webform_components_form()
After doing a full uninstall and reinstall of webform and ubercart webform, I now am unable to add any components to a webform as the add component area is blank - see screenshot. Please help!
| Comment | File | Size | Author |
|---|---|---|---|
| blank-components.png | 25.45 KB | khakistocracy |
Comments
Comment #1
alpaez commentedHi, for the problem with Undefined index: required in webform_components_form(), you need to change in the DATABESE in the table webform_component the name of the the value "mandatory" to "required".
Maybe its a problem in the UPDATE funtion of the module (not working the alter table for the Data Base)...
Comment #2
khakistocracy commentedThanks for the reply. Just checked and the field is now set to 'required' already - which I assume means that index issue was fixed in the fresh install of webform and uc_webform.
I still now just have the blank components area as the last image. It's no longer reporting any error, just not allowing the creation of components. Any ideas about that?
Comment #3
zooter626 commentedsame. looks like it's not displaying components when enabled with webform 4.x.
Comment #4
glynster commentedAny progression on this?
Comment #5
Collins405 commentedI'm getting the same error on line 635 of uc_webform.module "Cannot redeclare _webform_components_form_rows()".
Subscribing!
Comment #6
tobscure commentedSubscribing.
Comment #7
tobscure commentedI did a bit of digging and worked out that this error occurs because the module overrides all of the theme code that outputs the webform components table. This code is not compatible with Webform 4. It can simply be disabled by removing the following function (around line 570 of uc_webform.module) and clearing the cache:
Comment #8
Joel MMCC commented#7 worked for me. I had a different visual effect, though.
Comment #9
cartagena commentedThanks so much--#7 worked!
Comment #10
hockey2112 commented#7 worked for me, too! Thanks!
Comment #11
elvin - albania drupal developerhaha, #7 worked for me, too! Thanks a lot guys!!!!
Comment #12
elvin - albania drupal developerShouldnt this be applied to the module as #7 was submitted 5 months ago :)
Comment #13
cycilmpembe commented#7 Hi guys i removed this code but still my webform still does not show components am using uc webform 7x-2.3
Comment #14
dieuweAttempting to consolidate all open Webform 4.x integration issues into one.
#2416877: Webform 4.x Compatibility (patch)