Warning: Undefined array key "#markup" in WebformElementProperty->resolve()

Created on 18 September 2024, 7 months ago

Problem/Motivation

Getting the following warning in the logs:

Warning: Undefined array key "#markup" in Drupal\graphql_webform\Plugin\GraphQL\DataProducer\WebformElementProperty->resolve() (line 114 of /home/vcap/app/docroot/modules/contrib/graphql_webform/src/Plugin/GraphQL/DataProducer/WebformElementProperty.php) #0 /home/vcap/app/docroot/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 /home/vcap/app/docroot/modules/contrib/graphql_webform/src/Plugin/GraphQL/DataProducer/WebformElementProperty.php(114): _drupal_error_handler()
#2 [internal function]: Drupal\graphql_webform\Plugin\GraphQL\DataProducer\WebformElementProperty->resolve()
#3 /home/vcap/app/docroot/modules/contrib/graphql/src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php(57): call_user_func_array()
#4 /home/vcap/app/docroot/modules/contrib/graphql/src/Plugin/GraphQL/DataProducer/DataProducerProxy.php(238): Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase->resolveField()
#5 /home/vcap/app/docroot/modules/contrib/graphql/src/Plugin/GraphQL/DataProducer/DataProducerProxy.php(181): Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy->resolveUncached()
#6 /home/vcap/app/docroot/modules/contrib/graphql/src/GraphQL/Utility/DeferredUtility.php(72): Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy->Drupal\graphql\Plugin\GraphQL\DataProducer\@closure()

Not all elements that extend WebformMarkupBase have a #markup element.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024