Non-existent service "views.field_data_provider" on D10.5.1

Created on 8 August 2025, about 2 months ago

Problem/Motivation

Since a fortnight I cannot get linkchecker 2.0.2 working on D10.5.1, meanwhile it seems to me it is a DER problem. Linkchecker up to DER 4.0-alpha4 kept reporting

"Drupal\Core\Entity\EntityStorageException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_id__target_id' in 'NEW': INSERT INTO "linkchecker_link" ("status", [... etc., see issue #3533235, comment #12 and following).

This looks similar to the then in 2019 resolved DER issue #3056416 (1054/column missing). Besides, I installed another module and when the db was updated for it I for the first time received " [warning] Schema information for module dynamic_entity_reference was missing from the database. You should manually review the module updates and your database to check if any updates have been skipped up to, and including, dynamic_entity_reference_update_8000()." but couldn't figure out how to solve it; I am pretty sure I did not miss any DB update.

I do know that the DER dependency for linkchecker has been dropped in D11 but as for the time being I'm confined to D10 I tried yesterday's 7 August update of DER 4.0-dev. When emptying the link list and trying to build a new one in the "maintenance" section of /admin/config/content/linkchecker I now get this new WSOD that may not be only an issue for linkchecker, at least on the latest D10.* version DER claims to cover:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "views.field_data_provider". in Drupal\Component\DependencyInjection\Container->get() (line 159 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Drupal::service('views.field_data_provider') (Line: 17)
dynamic_entity_reference_field_views_data(Object)
call_user_func_array(Object, Array) (Line: 407)
Drupal\Core\Extension\ModuleHandler->invoke('dynamic_entity_reference', 'field_views_data', Array) (Line: 193)
views_views_data() (Line: 228)
Drupal\views\ViewsData->Drupal\views\{closure}(Object, 'views') (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('views_data', Object) (Line: 227)
Drupal\views\ViewsData->getData() (Line: 151)
Drupal\views\ViewsData->get('linkchecker_link') (Line: 89)
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 896)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('field') (Line: 1100)
Drupal\views\ViewExecutable->_initHandler('field', Array) (Line: 958)
Drupal\views\ViewExecutable->initHandlers() (Line: 2326)
Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1752)
Drupal\views\ViewExecutable->preExecute(Array) (Line: 1687)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 81)
Drupal\views\Element\View::preRenderViewElement(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: 886)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 431)
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: 637)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 231)
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: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 263)
Drupal\shield\ShieldMiddleware->bypass(Object, 1, 1) (Line: 219)
Drupal\shield\ShieldMiddleware->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)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dgwolf
  • πŸ‡§πŸ‡ͺBelgium f2boot

    It looks like commit 6a5d3a9f (Fixing issue #2283919) on dynamic_entity_reference.views.inc is calling for that service that is only available
    in D11.
    I hope we can get back to former
    $data = views_field_default_views_data($field_storage); instead of already needing D11.

  • πŸ‡¨πŸ‡¦Canada jibran Toronto, Canada

    Please don't use the dev version. Use the last release. We are getting ready to drop d10 support and we committed some d11 code to the dev branches.

  • Thanks for the work and the responses. Nevertheless, would it still make sense to report separately the problem that I seem to have with the last release summarized in the first part of my bug report? I.o.w., does it look like a probable DER problem or even regression to you (1054 column not found when working with linkchecker)? And, if so, would it already be β€žwontfixβ€œ because of D11?

  • πŸ‡¨πŸ‡¦Canada jibran Toronto, Canada

    @dgwolf, sorry for the late reply. To fix your problem, you can use the last stable release of DER 3.x instead of updating to 4.x-dev or 3.x-dev.

    I hope this is helpful.

Production build 0.71.5 2024