Tengo un error en mi Drupal desde hace varios días que no comprendo porqué ha salido,
y no soy capaz de quitarlo.
El error es:
Cita:
Hace 5 días no estaba este error, y ahora si está.The website encountered an unexpected error. Please try again later.
Recoverable fatal error: Argument 1 passed to Drupal\Core\Entity\EntityViewBuilder::view() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /Users/team1/workspace/ga_p/modules/field_collection/src/Plugin/Field/FieldFormatter/FieldCollectionItemsFormatter.php on line 33 and defined in Drupal\Core\Entity\EntityViewBuilder->view() (line 110 of core/lib/Drupal/Core/Entity/EntityViewBuilder.php).
Drupal\Core\Entity\EntityViewBuilder->view(NULL) (Line: 33)
Drupal\field_collection\Plugin\Field\FieldFormatte r\FieldCollectionItemsFormatter->viewElements(Object, 'es') (Line: 80)
Drupal\Core\Field\FormatterBase->view(Object, 'es') (Line: 259)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Array) (Line: 320)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'search_index') (Line: 24)
Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'search_index') (Line: 263)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 220)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func(Array, Array) (Line: 376)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 151)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 152)
Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 480)
Drupal\node\Plugin\Search\NodeSearch->indexNode(Object) (Line: 452)
Drupal\node\Plugin\Search\NodeSearch->updateIndex() (Line: 195)
search_cron()
call_user_func_array('search_cron', Array) (Line: 391)
Drupal\Core\Extension\ModuleHandler->invoke('search', 'cron') (Line: 223)
Drupal\Core\Cron->invokeCronHandlers() (Line: 122)
Drupal\Core\Cron->run() (Line: 75)
Drupal\Core\ProxyClass\Cron->run() (Line: 65)
Drupal\automated_cron\EventSubscriber\AutomatedCro n->onTerminate(Object, 'kernel.terminate', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEve ntDispatcher->dispatch('kernel.terminate', Object) (Line: 84)
Symfony\Component\HttpKernel\HttpKernel->terminate(Object, Object) (Line: 32)
Stack\StackedHttpKernel->terminate(Object, Object) (Line: 634)
Drupal\Core\DrupalKernel->terminate(Object, Object) (Line: 22)
Recoverable fatal error: Argument 1 passed to Drupal\Core\Entity\EntityViewBuilder::view() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /Users/team1/workspace/ga_p/modules/field_collection/src/Plugin/Field/FieldFormatter/FieldCollectionItemsFormatter.php on line 33 and defined in Drupal\Core\Entity\EntityViewBuilder->view() (line 110 of core/lib/Drupal/Core/Entity/EntityViewBuilder.php).
Drupal\Core\Entity\EntityViewBuilder->view(NULL) (Line: 33)
Drupal\field_collection\Plugin\Field\FieldFormatte r\FieldCollectionItemsFormatter->viewElements(Object, 'es') (Line: 80)
Drupal\Core\Field\FormatterBase->view(Object, 'es') (Line: 259)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Array) (Line: 320)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'search_index') (Line: 24)
Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'search_index') (Line: 263)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 220)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func(Array, Array) (Line: 376)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 151)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 152)
Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 480)
Drupal\node\Plugin\Search\NodeSearch->indexNode(Object) (Line: 452)
Drupal\node\Plugin\Search\NodeSearch->updateIndex() (Line: 195)
search_cron()
call_user_func_array('search_cron', Array) (Line: 391)
Drupal\Core\Extension\ModuleHandler->invoke('search', 'cron') (Line: 223)
Drupal\Core\Cron->invokeCronHandlers() (Line: 122)
Drupal\Core\Cron->run() (Line: 75)
Drupal\Core\ProxyClass\Cron->run() (Line: 65)
Drupal\automated_cron\EventSubscriber\AutomatedCro n->onTerminate(Object, 'kernel.terminate', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEve ntDispatcher->dispatch('kernel.terminate', Object) (Line: 84)
Symfony\Component\HttpKernel\HttpKernel->terminate(Object, Object) (Line: 32)
Stack\StackedHttpKernel->terminate(Object, Object) (Line: 634)
Drupal\Core\DrupalKernel->terminate(Object, Object) (Line: 22)
Este error me hace que cada vez que en el Admin intento abrir una propiedad de un campo, o cualquier cosa que se abre en un popup (mediante ajax) ninguna de estas ventanas/popups se abren.
El admin no funciona bien y no puedo gestionar las cosas.
Espero vuestra ayuda urgentemente.
Gracias y un saludo.