-
jsacksick →
committed e79c3fee on 8.x-2.x authored by
dzhebrak →
Issue #3409495 by dzhebrak: TypeError: Drupal\Core\Field\...
-
jsacksick →
committed e79c3fee on 8.x-2.x authored by
dzhebrak →
-
jsacksick →
committed ff6c0d44 on 3.0.x authored by
dzhebrak →
Issue #3409495 by dzhebrak: TypeError: Drupal\Core\Field\...
-
jsacksick →
committed ff6c0d44 on 3.0.x authored by
dzhebrak →
- Status changed to Fixed
11 months ago 4:00pm 18 December 2023 - Status changed to Active
11 months ago 6:34pm 30 December 2023 - 🇹🇭Thailand Nick Hope
I'm seeing a nearly-identical error on my local development site in Drupal 10.2.0 / Commerce 8.x-2.36 / Commerce File 8.x-2.1 / PHP 8.3.0 if I click "+ Create a new field" at either...
/admin/commerce/config/product-types/default/edit/fields
or
/admin/commerce/config/product-variation-types/default/edit/fieldsI'm using Commerce License and Commerce File because I want to sell downloads.
I guess another field type is missing a description, but I'm not sure how to determine which one. I searched \modules\contrib for *item.php and I can't find any missing a description.
There is a fix 🐛 Error TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription() if a FieldType has 'description' missing in its annotation RTBC in Drupal Core 10.2.x-dev that works around the problem.
Happy for this to be re-tagged as "Fixed" to open a new issue if preferred.
The full error message is below. Everything is the same as the error in the OP except Drupal\field_ui\Form\FieldStorageAddForm->buildForm() is empty.
TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup, string returned in Drupal\Core\Field\FieldTypeCategory->getDescription() (line 26 of core/lib/Drupal/Core/Field/FieldTypeCategory.php).
Drupal\field_ui\Form\FieldStorageAddForm->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
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: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19) - Status changed to Fixed
11 months ago 8:40pm 30 December 2023 - 🇮🇱Israel jsacksick
You mentioned you're using Commerce 2.36, how would expect it to be fixed there? Since the fix is in dev?
- 🇹🇭Thailand Nick Hope
@jsacksick Ah, sorry. I'm used to seeing the dev version in issue metadata, not a specific version, so I got confused. Thanks for putting me right. The patch applies to 8.x-2.36 and solves the issue for me.
Automatically closed - issue fixed for 2 weeks with no activity.