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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arefen created an issue. See original summary.

jrockowitz’s picture

Can 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?

arefen’s picture

FileSize
149.69 KB
98.74 KB
192.46 KB

Hello again
For reproduce i install webform on simplytest: https://simplytest.me/project/webform
then i install all module in webform group
webform module

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
add element

and config bellow for options. all other item is default
set options

then click on save and nothing happen and element don't add to form.

jrockowitz’s picture

The error is being caused by the 'Custom properties' YAML which is invalid and throwing an error in the background.

jrockowitz’s picture

Status: Active » Needs review
FileSize
673 bytes

The attached patch should now display the error onscreen.

  • jrockowitz committed c01a0a2 on 8.x-5.x
    Issue #2925213 by jrockowitz, arefen: Error on create custom composite
    
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

arefen’s picture

Hello
I install last dev on simplytest and when i want create custom composite i get bellow error

Custom properties is not valid.

    YAML must contain an associative array of elements.

Are you fix problem or your patch only show error?

jrockowitz’s picture

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

arefen’s picture

Thanks jrockowitz

i still get bellow error on create custom composite

Custom properties is not valid.

    YAML must contain an associative array of elements.

i create it like image bellow. can you help me to find my mistake
create custom composite

arefen’s picture

Hello. i solved my problem. i fill empty custom properties field and form generate and properly work.
thanks

arefen’s picture

Status: Fixed » Closed (fixed)