Object of class Drupal\system\Entity\Menu could not be converted to string

Created on 27 September 2023, about 1 year ago
Updated 3 October 2023, 12 months ago

Problem/Motivation

I just updated from v2.0.0 to v2.0.1 and now am receiving an error when attempting to edit a product. I downgraded back to 2.0.0 and all is working again. Here is the error:

The website encountered an unexpected error. Please try again later.
Error: Object of class Drupal\system\Entity\Menu could not be converted to string in Drupal\Core\Menu\MenuParentFormSelector->getParentSelectOptions() (line 60 of core/lib/Drupal/Core/Menu/MenuParentFormSelector.php).
Drupal\Core\Menu\MenuParentFormSelector->getParentSelectOptions() (Line: 81)
Drupal\Core\Menu\MenuParentFormSelector->parentSelectElement() (Line: 172)
commerce_product_menu_ui_form_commerce_product_form_alter() (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 840)
Drupal\Core\Form\FormBuilder->prepareForm() (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult() (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 270)
Drupal\shield\ShieldMiddleware->bypass() (Line: 161)
Drupal\shield\ShieldMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 718)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Thanks!
-=Delty

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States Delty

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

Comments & Activities

Production build 0.71.5 2024