Problem/Motivation
Drupal adviced to rebuild permission. Soon after starting rebuild permissions an ajax error shows up:
Ein AJAX-HTTP-Fehler ist aufgetreten.
HTTP-Rückgabe-Code: 200
Im Folgenden finden Sie Debugging-Informationen.
Pfad: /de/batch?id=62&op=do_nojs&op=do
Statustext: OK
Antworttext:
After that error occurred, several errors to node access and to views in frontend appeared.
Same error appeared if i tried to update multiple node on /admin/content,
after the error occured, the admin/content page is no more available.
Error log:
\Component\HttpFoundation\Request))
#10 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
#11 /html/drupal_9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#12 /html/drupal_9/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /html/drupal_9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /html/drupal_9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#15 /html/drupal_9/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /html/drupal_9/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /html/drupal_9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /html/drupal_9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /html/drupal_9/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /html/drupal_9/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /html/drupal_9/web/core/lib/Drupal/Core/DrupalKernel.php(706): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /html/drupal_9/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#27 {main}
Second-Log:
Error: Call to a member function isTranslatable() on null in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (Zeile 1241 in /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)
#0 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(502): Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables(Array, false)
#1 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(427): Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapFromStorageRecords(Array)
#2 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(393): Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array)
#3 /html/drupal_9/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(295): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array)
#4 /html/drupal_9/web/core/lib/Drupal/Core/Entity/EntityBase.php(498): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array)
#5 /html/drupal_9/web/core/modules/node/node.module(1129): Drupal\Core\Entity\EntityBase::loadMultiple(Array)
#6 /html/drupal_9/web/core/includes/batch.inc(295): _node_access_rebuild_batch_operation(Array)
#7 /html/drupal_9/web/core/includes/batch.inc(137): _batch_process()
#8 /html/drupal_9/web/core/includes/batch.inc(93): _batch_do()
#9 /html/drupal_9/web/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(SymfonyError: Call to a member function isTranslatable() on null in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (Zeile 1241 in /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)
#0 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(502): Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables(Array, false)
#1 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(427): Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapFromStorageRecords(Array)
#2 /html/drupal_9/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(393): Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array)
#3 /html/drupal_9/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(295): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array)
#4 /html/drupal_9/web/core/modules/views/src/Plugin/views/query/Sql.php(1615): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array)
#5 /html/drupal_9/web/core/modules/views/src/Plugin/views/query/Sql.php(1540): Drupal\views\Plugin\views\query\Sql->loadEntities(Array)
#6 /html/drupal_9/web/core/modules/views/src/ViewExecutable.php(1426): Drupal\views\Plugin\views\query\Sql->execute(Object(Drupal\views\ViewExecutable))
#7 /html/drupal_9/web/core/modules/views/src/ViewExecutable.php(1454): Drupal\views\ViewExecutable->execute(NULL)
#8 /html/drupal_9/web/core/modules/views/src/Plugin/views/display/Page.php(183): Drupal\views\ViewExecutable->render()
#9 /html/drupal_9/web/core/modules/views/src/ViewExecutable.php(1630): Drupal\views\Plugin\views\display\Page->execute()
#10 /html/drupal_9/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('page_1', Array)
#11 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array)
#12 /html/drupal_9/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#13 /html/drupal_9/web/core/lib/Drupal/Core/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#14 /html/drupal_9/web/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#15 /html/drupal_9/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false)
#16 /html/drupal_9/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(241): Drupal\Core\Render\Renderer->render(Array, false)
#17 /html/drupal_9/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#18 /html/drupal_9/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#19 /html/drupal_9/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#20 /html/drupal_9/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#21 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#22 /html/drupal_9/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#23 /html/drupal_9/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#24 /html/drupal_9/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#25 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /html/drupal_9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /html/drupal_9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /html/drupal_9/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /html/drupal_9/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /html/drupal_9/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /html/drupal_9/web/core/lib/Drupal/Core/DrupalKernel.php(706): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /html/drupal_9/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#35 {main}
Steps to reproduce
Drupal 9 and modules are up to date.
Rebuild permissions frorm status page or upate multiple nodes on admin/content.
Proposed resolution
I can´t see any solution at this time.
First of all i thougth that causes of some wrong assignement of node translations.
Node access i can correct on saving node by node manualy, but /admin/content is not working til now.
Is there someone how has an hint zu go further to solve this error?
Thank a lot
Markus