Closed (cannot reproduce)
Project:
Webform
Version:
8.x-5.0-rc18
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2018 at 03:47 UTC
Updated:
2 Jun 2019 at 15:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jrockowitz commentedWhat do you mean by "field component"?
Please provide more information.
Until this issue is fully documented the priority should be 'Normal'.
Comment #3
ashishsahu3847 commentedActually i am not able to add or edit field in existing Webform. but i can add new webform and add and edit field successfully.
getting error-
Drupal\webform\WebformException: The webform has overridden settings and/or properties and can not be saved. in Drupal\webform\Entity\Webform->preSave() (line 1905 of docroot/modules/contrib/webform/src/Entity/Webform.php).
Comment #4
ashishsahu3847 commentedComment #5
ashishsahu3847 commentedComment #6
jrockowitz commentedThat error hints that your webform's configuration is out-of-sync.
I am pretty sure if you run
drush webform-repairit will fix the problem.Still, we should properly diagnose the problem.
Can you please export, sanitize, and attach your webform? 8.x-5.0-rc18 now includes an 'Export' tab. (/admin/structure/webform/manage/contact/export)
Comment #7
gbarcellini commentedHi,
we have a similar error ... when I tried to save a new "e-mail/handle" in existing webform (or also to create new handle) this error is generated:
TypeError: Argument 1 passed to Drupal\webform\Entity\WebformSubmission::setData() must be of the type array, string given, called in /www3/drupal-8.5dev/modules/webform/src/WebformSubmissionStorage.php on line 112 in Drupal\webform\Entity\WebformSubmission->setData() (line 382 of /www3/drupal-8.5dev/modules/webform/src/Entity/WebformSubmission.php)
I am able edit a e-mail/handle field in existing Webform, but i can't save it!!
Gian
Comment #8
jrockowitz commentedPlease provide an example webform.
Comment #9
gbarcellini commentedI did a export in format yaml
Comment #10
sam452 commentedYes, customer unable to add image upload and fails silently with this error. FWIW my export is attached, sam
Comment #11
jrockowitz commented@sam452 I think you are having a different issue related to image uploads.
Please create a new ticket and provide more information (ie JS Console Log and Drupal Log Messages)
Comment #12
jrockowitz commented@gbarcellini Your webform contains a Date element called 'data' which is causing the fatal error.
I am pretty sure you wanted to call the element 'date'.
Still, we should prevent this error from happening or stop people from creating elements called data.
Comment #13
jrockowitz commented@see #2994666: Adding element name 'data' cause fatal error when saving email handler.
Comment #14
jrockowitz commented@gbarcellini Since your issue is also different than the original one documented, let's move any further discussion to #2994666: Adding element name 'data' cause fatal error when saving email handler.
Comment #15
gbarcellini commentedWonderful!
Resolved ... thanks a lot!
Comment #16
jrockowitz commentedThe original error still needs to be reproducible and it should be easy to fix.
Comment #17
droprocker commentedIs there a way to do this without drush?
Comment #18
jrockowitz commentedNo
Comment #19
jrockowitz commented@der_wilko Sorry to be so direct but drush is the only way to execute this command.
Keep in mind every webform version update typically runs the repair command.
If you can export and attach your broken webform, we should be able to determine what is wrong with your webform.
Comment #20
droprocker commented@jrockowitz No problem. I fixed it by deleting and re-configuring my Date/Time fields.
Comment #21
jrockowitz commentedI am closing this issue for now.
If you can provide steps on how to reproduce your specific issue. Please reopen this ticket.
Comment #22
afireintheattic commentedHello! Re-opening this, as I have a webform that is still having this issue. Webform was built using 5.0-rc16; however, I updated to 5.2 and even tried running the webform repair, and am still getting this error when trying to add a field to the webform. I'm attaching the .yml file for the form--any help would be appreciated. Thanks!
Comment #23
jrockowitz commentedI was able to open and edit the webform from #22 without any problem.
Are you able to edit the webform using https://simplytest.me?
Comment #24
jrockowitz commentedComment #25
afireintheattic commentedHmm, after importing on simpletest.me if definitely works as expected. There must be some other configuration amiss with my site, unfortunately. I think I may be forced to rebuild the form--thanks for the assistance!
Comment #26
jrockowitz commented@afireintheattic Try repairing your webform configuration via /admin/structure/webform/config/advanced
Comment #27
jrockowitz commented