'Drupal how i can solve getEntityTypeId() on null on json api boost
Hi, i'am getting this error when Cron starting on drupal... Drupal Version(9.3.6)
The website encountered an unexpected error. Please try again later.
Error: Call to a member function getEntityTypeId() on null in Drupal\jsonapi_boost\Plugin\warmer\ResourceWarmer->Drupal\jsonapi_boost\Plugin\warmer\{closure}() (line 142 of modules/contrib/jsonapi_boost/src/Plugin/warmer/ResourceWarmer.php).
Drupal\jsonapi_boost\Plugin\warmer\ResourceWarmer->Drupal\jsonapi_boost\Plugin\warmer\{closure}()
array_reduce() (Line: 163)
Drupal\jsonapi_boost\Plugin\warmer\ResourceWarmer->buildIdsBatch() (Line: 52)
Drupal\warmer\HookImplementations::singleWarmer() (Line: 38)
Drupal\warmer\HookImplementations::Drupal\warmer\{closure}()
array_map() (Line: 37)
Drupal\warmer\HookImplementations::enqueueWarmers() (Line: 15)
warmer_cron()
call_user_func_array() (Line: 392)
Drupal\Core\Extension\ModuleHandler->invoke() (Line: 250)
Drupal\Core\Cron->invokeCronHandlers() (Line: 136)
Drupal\Core\Cron->run() (Line: 75)
Drupal\Core\ProxyClass\Cron->run() (Line: 46)
Drupal\system\CronController->run()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->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: 49)
Asm89\Stack\Cors->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 708)
Drupal\Core\DrupalKernel->handle() (Line: 19)
On drupal forum i can't find a solution, pls help :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
