Error when translating the Workflow element within the webform

Created on 31 July 2024, 5 months ago

Problem/Motivation

Webform element cannot be translated due to error, therefore the field doesn't appear in the translated form.

Steps to reproduce

Create a webform element, click on translate the webform, you will get the below error:
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 201 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
Drupal\Core\Routing\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'webform_workflows_element.workflows_summary') (Line: 250)
Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute('webform_workflows_element.workflows_summary', Object, Array, Array) (Line: 291)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('webform_workflows_element.workflows_summary', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('webform_workflows_element.workflows_summary', Array, Array, ) (Line: 765)
Drupal\Core\Url->toString() (Line: 55)
Drupal\webform_workflows_element\Plugin\WebformElement\WebformWorkflowsElement->form(Array, Object) (Line: 3373)
Drupal\webform\Plugin\WebformElementBase->buildConfigurationForm(Array, Object) (Line: 848)
Drupal\webform\Plugin\WebformElement\WebformCompositeBase->buildConfigurationForm(Array, Object) (Line: 164)
Drupal\webform_ui\Form\WebformUiElementFormBase->buildForm(Array, Object, Object, NULL, NULL) (Line: 46)
Drupal\webform_ui\Form\WebformUiElementAddForm->buildForm(Array, Object, Object, NULL, NULL, 'webform_workflows_element')
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('webform_ui_element_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm('\Drupal\webform_ui\Form\WebformUiElementAddForm', Object) (Line: 224)
Drupal\Core\Form\FormBuilder->getForm('\Drupal\webform_ui\Form\WebformUiElementAddForm', Object, NULL, NULL, 'webform_workflows_element') (Line: 1027)
Drupal\webform\WebformTranslationConfigManager->getWebformElementProperties('webform_workflows_element') (Line: 432)
Drupal\webform\WebformTranslationConfigManager->buildConfigWebformFormElements(Array, Array, Array, Array) (Line: 411)
Drupal\webform\WebformTranslationConfigManager->alterConfigWebformFormElements('webform.webform.{{webform_id}}', Array, Array, Object) (Line: 241)
Drupal\webform\WebformTranslationConfigManager->alterConfigWebformForm('webform.webform.{{webform_id}}', Array, Array, Object) (Line: 129)
Drupal\webform\WebformTranslationConfigManager->alterForm(Array, Object) (Line: 65)
webform_form_config_translation_add_form_alter(Array, Object, 'config_translation_add_form') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'config_translation_add_form') (Line: 840)
Drupal\Core\Form\FormBuilder->prepareForm('config_translation_add_form', Array, Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇱🇧Lebanon khalil.bsaibes

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

Comments & Activities

Production build 0.71.5 2024