I cloned a version of a Drupal 8.9.20 site to a local installation (MAMP PRO). That seemed to word, but when I call the site I get an error:
The website encountered an unexpected error. Please try again later.
With verbose error mode I get further:
Error: Call to a member function id() on bool in DrupalCoreEntityEntityStorageBase->setStaticCache() (line 188 of core/lib/Drupal/Core/Entity/EntityStorageBase.php). DrupalCoreEntityEntityStorageBase->setStaticCache(Array) (Line: 311) DrupalCoreEntityEntityStorageBase->loadMultiple(Array) (Line: 188) DrupalCoreEntityEntityRepository->getCanonicalMultiple('node', Array, Array) (Line: 180) DrupalCoreEntityEntityRepository->getCanonical('node', '236', Array) (Line: 149) DrupalCoreParamConverterEntityConverter->convert('236', Array, 'node', Array) (Line: 100) DrupalCoreParamConverterParamConverterManager->convert(Array) (Line: 89) DrupalCoreAccessAccessManager->checkNamedRoute('entity.node.canonical', Array, Object, 1) (Line: 212) DrupalCoreMenuDefaultMenuLinkTreeManipulators->menuLinkCheckAccess(Object) (Line: 92) DrupalCoreMenuDefaultMenuLinkTreeManipulators->checkAccess(Array) (Line: 96) DrupalCoreMenuDefaultMenuLinkTreeManipulators->checkAccess(Array) (Line: 96) DrupalCoreMenuDefaultMenuLinkTreeManipulators->checkAccess(Array) call_user_func(Array, Array) (Line: 148) DrupalCoreMenuMenuLinkTree->transform(Array, Array) (Line: 56) Drupalpg_helperBreadcrumbBuilder->build(Object) (Line: 47) Drupalpg_fe_usersThemeThemeswitcherNegotiator::is_internal() (Line: 23) Drupalpg_fe_usersThemeThemeswitcherNegotiator->applies(Object) (Line: 67) DrupalCoreThemeThemeNegotiator->determineActiveTheme(Object) (Line: 405) DrupalCoreThemeThemeManager->initTheme(Object) (Line: 96) DrupalCoreThemeThemeManager->getActiveTheme() (Line: 43) DrupalCoreCacheContextThemeCacheContext->getContext(NULL) (Line: 118) DrupalCoreCacheContextCacheContextsManager->convertTokensToKeys(Array) (Line: 307) DrupalCoreRenderRenderCache->createCacheID(Array) (Line: 66) DrupalCoreRenderRenderCache->get(Array) (Line: 109) DrupalCoreRenderPlaceholderingRenderCache->get(Array) (Line: 77) DrupalCoreRenderRenderCache->get(Array) (Line: 109) DrupalCoreRenderPlaceholderingRenderCache->get(Array) (Line: 137) Drupaldynamic_page_cacheEventSubscriberDynamicPageCacheSubscriber->onRequest(Object, 'kernel.request', Object) call_user_func(Array, Object, 'kernel.request', Object) (Line: 111) DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 127) SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68) SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57) DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 191) Drupalpage_cacheStackMiddlewarePageCache->fetch(Object, 1, 1) (Line: 128) Drupalpage_cacheStackMiddlewarePageCache->lookup(Object, 1, 1) (Line: 82) Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 70) Drupalpg_fe_usersStackMiddlewarePgPageCache->handle(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23) StackStackedHttpKernel->handle(Object, 1, 1) (Line: 708) DrupalCoreDrupalKernel->handle(Object) (Line: 19)
What could be the reason? Any hints how to resolve this?
For your advice many thanks in advance!