- Issue created by @oasweb
- First commit to issue fork.
- 🇩🇪Germany marco.b
I habe similag log entries in zhe drupal watchdog.
And I also have 6 times the same error message at the translation-add-for (/de/node/280/translations/add/pt-br/de). I assume this is an expression of the same issue. Here is the error message:
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Url::fromUri() (line 281 of core/lib/Drupal/Core/Url.php).
Drupal\Core\Url::fromUri() (Line: 37)
Drupal\feeds\Plugin\Field\FieldType\FeedsItem->getUrl() (Line: 95)
Drupal\feeds\Plugin\Field\FieldFormatter\FeedsItemUrlFormatter->buildUrl() (Line: 73)
Drupal\feeds\Plugin\Field\FieldFormatter\FeedsItemUrlFormatter->viewElements() (Line: 91)
Drupal\Core\Field\FormatterBase->view() (Line: 83)
Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase->view() (Line: 275)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple() (Line: 233)
Drupal\Core\Entity\Entity\EntityViewDisplay->build() (Line: 462)
Drupal\Core\Entity\EntityViewBuilder->viewField() (Line: 121)
Drupal\readonly_field_widget\Plugin\Field\FieldWidget\ReadonlyFieldWidget->formElement() (Line: 464)
Drupal\Core\Field\WidgetBase->formSingleElement() (Line: 86)
Drupal\readonly_field_widget\Plugin\Field\FieldWidget\ReadonlyFieldWidget->formMultipleElements() (Line: 120)
Drupal\Core\Field\WidgetBase->form() (Line: 197)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm() (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form() (Line: 138)
Drupal\node\Form\NodeForm->form() (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm()
call_user_func_array() (Line: 528)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 279)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 414)
Drupal\content_translation\Controller\ContentTranslationController->add()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 263)
Drupal\shield\ShieldMiddleware->bypass() (Line: 130)
Drupal\shield\ShieldMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19) - First commit to issue fork.
- 🇳🇱Netherlands megachriz
I see this is still an issue. It looks like that can only experience this issue when you configured the "Feeds item" to be displayed on an imported entity with the formatter set to "URL of the feed item" (the default formatter). By default, the "Feeds item" field is hidden, so that's why I did not noticed this issue myself before.
I expect that the provided MR fixes the issue. Hopefully all tests pass.