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()
Issue fork admin_toolbar-3336787
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sepa_cleversoft commentedComment #3
sahilgidwani commentedNot able to reproduce the issue on my local D10 commerce environment. Can you please add the details of which version of commerce module you are using and also drupal core version.
Comment #4
sepa_cleversoft commentedThank you sahilgidwani for the quick answer. The stack is:
- PHP version 8.1.14
- drupal 9.5.2
- commerce and commerce_product 2.33.0
Let me know if you need more infos.
Comment #5
avpadernoComment #9
japerry