after upgrade webform 8.x-5.0-rc16 to 8.x-5.0-rc18 Unable to edit field component on the existing webform

Comments

aksjnp created an issue. See original summary.

jrockowitz’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

What do you mean by "field component"?

Please provide more information.

Until this issue is fully documented the priority should be 'Normal'.

ashishsahu3847’s picture

Actually 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).

ashishsahu3847’s picture

Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active
ashishsahu3847’s picture

Version: 8.x-5.x-dev » 8.x-5.0-rc18
jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

That error hints that your webform's configuration is out-of-sync.

I am pretty sure if you run drush webform-repair it 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)

gbarcellini’s picture

Hi,

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

jrockowitz’s picture

Please provide an example webform.

gbarcellini’s picture

I did a export in format yaml

sam452’s picture

StatusFileSize
new5.19 KB

Yes, customer unable to add image upload and fails silently with this error. FWIW my export is attached, sam

jrockowitz’s picture

@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)

jrockowitz’s picture

@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.

jrockowitz’s picture

@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.

gbarcellini’s picture

Wonderful!
Resolved ... thanks a lot!

jrockowitz’s picture

Priority: Major » Normal

The original error still needs to be reproducible and it should be easy to fix.

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).

droprocker’s picture

I am pretty sure if you run drush webform-repair it will fix the problem.

Is there a way to do this without drush?

jrockowitz’s picture

No

jrockowitz’s picture

@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.

droprocker’s picture

@jrockowitz No problem. I fixed it by deleting and re-configuring my Date/Time fields.

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I am closing this issue for now.

If you can provide steps on how to reproduce your specific issue. Please reopen this ticket.

afireintheattic’s picture

Status: Closed (cannot reproduce) » Active
StatusFileSize
new7.14 KB

Hello! 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!

jrockowitz’s picture

I was able to open and edit the webform from #22 without any problem.

Are you able to edit the webform using https://simplytest.me?

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
afireintheattic’s picture

Hmm, 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!

jrockowitz’s picture

@afireintheattic Try repairing your webform configuration via /admin/structure/webform/config/advanced

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)