- Issue created by @natts
Here i m uploading patch to resolve the above issue. Please review it
- @praveen-rani opened merge request.
- π¬π§United Kingdom jaydenpearly
The patch has been tested. The patch could not be applied.
Checking patch src/Entity/EntityExtraField.php... error: while searching for: /** * @var string */ public $name; /** * @var string error: patch failed: src/Entity/EntityExtraField.php:67 error: src/Entity/EntityExtraField.php: patch does not apply
- Status changed to Needs review
8 months ago 10:10pm 25 April 2024 - Status changed to RTBC
8 months ago 10:56pm 25 April 2024 - π³πΏNew Zealand ericgsmith
Tested patch #9 and it resolves this error.
Did not test MR but looks exactly the same - needs to be updated to target 2.1.x branch?
-
droath β
committed 45ee5bda on 2.1.x
Issue #3440363 by praveen rani, Ruichao, ericgsmith: Unable to add an...
-
droath β
committed 45ee5bda on 2.1.x
- πΊπΈUnited States droath
@Vacilando
Could you please provide more details on when you encounter that error? I am unable to replicate it. The patch that has been merged appears to be functioning correctly for me on a fresh Drupal installation.
- π§πͺBelgium Vacilando Brussels
The website encountered an unexpected error. Try again later. Error: Call to a member function getName() on null in Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple() (line 206 of core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php). Drupal\Core\Entity\EntityStorageBase->loadMultiple() (Line: 26) entity_extra_field_entity_extra_field_info() call_user_func_array(Object, Array) (Line: 416) Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'entity_extra_field') (Line: 395) Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_extra_field_info', Object) (Line: 423) Drupal\Core\Extension\ModuleHandler->invokeAll('entity_extra_field_info') (Line: 676) Drupal\Core\Entity\EntityFieldManager->loadExtraFields() (Line: 649) Drupal\Core\Entity\EntityFieldManager->getExtraFields('node', 'problem') (Line: 173) Drupal\Core\Entity\EntityDisplayBase->init() (Line: 155) Drupal\Core\Entity\EntityDisplayBase->__construct(Array, 'entity_view_display') (Line: 181) Drupal\Core\Entity\Entity\EntityViewDisplay->__construct(Array, 'entity_view_display') (Line: 418) Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords(Array) (Line: 186) Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple(Array) (Line: 312) Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 121) Drupal\Core\Entity\Entity\EntityViewDisplay::collectRenderDisplays(Array, 'full') (Line: 281) Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 239) Drupal\Core\Entity\EntityViewBuilder->build(Array) call_user_func_array(Array, Array) (Line: 113) Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 870) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 432) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 248) Drupal\Core\Render\Renderer->render(Array, ) (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Status changed to Fixed
4 months ago 8:05am 13 August 2024 - π©πͺGermany Grevil
What were the exact steps you took @Vacilando?
Did you update the module from "2.0.0-alpha5" to "2.1.x dev"? What extra field type were you using on the node? Are you using the extra field on the form or view display?
Please provide further information, so we can try to reproduce this issue! π
Setting to "Fixed" for now, as the original issue was already merged.
Automatically closed - issue fixed for 2 weeks with no activity.