Notice: Undefined index: id in Drupal\views\Plugin\ViewsHandlerManager->getHandler() (line 104 of core/modules/views/src/Plugin/ViewsHandlerManager.php).
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 889)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1040)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 898)
Drupal\views\ViewExecutable->initHandlers() (Line: 2268)
Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1692)
Drupal\views\ViewExecutable->preExecute(Array) (Line: 1627)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 77)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func(Array, Array) (Line: 378)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
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('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 99)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
aexchecker commentedTiny fix.
Comment #3
aexchecker commentedComment #4
podarok#2 looks good, can be merged
Comment #5
abrammI'm not sure about this, it looks like those handlers data was originally there. The $data = parent::getViewsData(); should have returned an array with those entries, but they are invalid or unexpected (naming change?).
Comment #6
abrammCould be related.
http://cgit.drupalcode.org/drupal/commit/core/modules/views/src/EntityVi...
Comment #7
aexchecker commented@abramm thank you
it looks like a real problem.
Comment #8
abrammI think the solution would be walking the $data supplied by parent and checking the field metadata to find our handlers (is there some reliable way to do this?).
Or just check for both field names ;).
Comment #9
manojapare commented@AexChecker
It would be great if you can give step to reproduce or the scenario for the same.
Comment #10
abramm@manojapare
Simply install the module with Drupal 8.5. You should see errors after clearing the cache.
This is why this is happening: http://cgit.drupalcode.org/drupal/commit/core/modules/views/src/EntityVi... .
The array key was changed in core. The module should try both old and new keys.
Comment #11
manojapare commented@abramm
Not able to reproduce the issue. Did the following to reproduce the issue:
For now, I am closing the issue. Please feel free to re-open.
Comment #12
icurk commentedI was able to reproduce the issue using the Drupal version 8.5.4. The patch helped and hides the error, but when trying to edit the view of broken links I got an error
Comment #13
abrammThat is because the patch is incorrect. I've explained what is happening and why, referenced to corresponding Drupal core change which caused this error, proposed a solution but the module maintainer closed the issue.
I didn't provide a patch since I never used this module, I'm only here because @AexChecker asked me to review the patch.
@icurk, could you please your steps to reproduce?
Comment #14
icurk commentedI just installed the module, cleared cache and visited the broken links list page (/admin/config/broken_link)
Comment #15
tjtj commentedThis raised its head again in Drupal 8.7.2 after I installed Broken Link.
Undefined index: id in Drupal\views\Plugin\ViewsHandlerManager->getHandler() (line 104 of core/modules/views/src/Plugin/ViewsHandlerManager.php).
Comment #16
aexchecker commented@tjtj thank you for the actualization.
I'll try to re-investigate and fix this in the nearest future.
Comment #17
nanabrownee commentedsame issue here, any luck with a fix?
Comment #18
afagiolinote: having this in the local enviroment, that disappears once the setting.local.php is removed
Comment #19
manojapare commentedFixed the undefined index id notice. Please review the patch.
Comment #20
harika gujjula commentedThis occurs on hitting the configuration page of broken link.
Patch looks good and i don't see the notice after applying the patch.
Comment #22
manojapare commented