Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello
When i want create custom composite after fill fileds i click on save and nothing happen.
And also no error on dblog.
When i click on webform_composite on plugin page i get bellow error:
Drupal\Component\Serialization\Exception\InvalidDataTypeException: Object support when dumping a YAML file has been disabled. in Drupal\Component\Serialization\Yamlsymfony:encode()(line 25 of /var/www/core/lib/Drupal/Component/Serialization/Yamlsymfony.php).
Comment | File | Size | Author |
---|---|---|---|
#10 | Screenshot from 2017-11-25 15-33-58.png | 24.47 KB | arefen |
#5 | 2925213-error-custom-composite-5.patch | 673 bytes | jrockowitz |
| |||
#3 | sc1.jpg | 192.46 KB | arefen |
#3 | sc0.jpg | 98.74 KB | arefen |
#3 | modules.jpg | 149.69 KB | arefen |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedCan you please document that steps and configuration required to reproduce the error?
Maybe you can take a screenshot of the settings.
I am guessing that only one or two specific settings are triggering the error.
Finally, are you able to reproduce this error using https://simplytest.me?
Comment #3
arefen CreditAttribution: arefen commentedHello again
For reproduce i install webform on simplytest: https://simplytest.me/project/webform
then i install all module in webform group
then i go to admin/structure/webform and create a form with name: test
then in admin/structure/webform/manage/test click on add element and select Composite custom
set a name test
and config bellow for options. all other item is default
then click on save and nothing happen and element don't add to form.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe error is being caused by the 'Custom properties' YAML which is invalid and throwing an error in the background.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached patch should now display the error onscreen.
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI committed the patch. Please download the latest dev release to review.
Comment #8
arefen CreditAttribution: arefen commentedHello
I install last dev on simplytest and when i want create custom composite i get bellow error
Are you fix problem or your patch only show error?
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedFor the custom properties which is YAML, you can't enter just a string like 'test'. You can enter 'test: test'.
My patch fixed the problem which was the error was not being captured and displayed.
Comment #10
arefen CreditAttribution: arefen commentedThanks jrockowitz
i still get bellow error on create custom composite
i create it like image bellow. can you help me to find my mistake
Comment #11
arefen CreditAttribution: arefen commentedHello. i solved my problem. i fill empty custom properties field and form generate and properly work.
thanks
Comment #12
arefen CreditAttribution: arefen commented