TypeError in commerce_product if enable admin_toolbar_extra

Created on 27 January 2023, almost 2 years ago
Updated 16 August 2024, 4 months ago

If I enable admin_toolbar_tools, I get this error:

TypeError: Drupal\commerce_product\Entity\ProductType::getDescription(): Return value must be of type string, null returned in Drupal\commerce_product\Entity\ProductType->getDescription()

on some admin menu page, as /admin/structure/menu/manage/admin

If the module is uninstalled, the pages work well.

Error log:

Message TypeError: Drupal\commerce_product\Entity\ProductType::getDescription(): Return value must be of type string, null returned in Drupal\commerce_product\Entity\ProductType->getDescription() (line 105 of /home/customer/www/app.limes.farm/public_html/modules/contrib/commerce/modules/product/src/Entity/ProductType.php)
#0 /home/customer/www/app.limes.farm/public_html/modules/contrib/admin_toolbar/admin_toolbar_tools/src/Plugin/Menu/MenuLinkEntity.php(72): Drupal\commerce_product\Entity\ProductType->getDescription()
#1 /home/customer/www/app.limes.farm/public_html/core/lib/Drupal/Core/Menu/MenuLinkBase.php(124): Drupal\admin_toolbar_tools\Plugin\Menu\MenuLinkEntity->getDescription()

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇹Italy sepa_cleversoft

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024