5 posts / 0 new
Last post
Andi L
Offline
Last seen: 5 months 2 weeks ago
Joined: 03/27/2019
Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults()

Hi, anybody can help? (D8/Opigno 2.3)

I got this Error message:

Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 184 of core/modules/views/src/Plugin/views/PluginBase.php). Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138) Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 102) Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 42) Drupal\views\Plugin\views\area\AreaPluginBase->init(Object, Object, Array) (Line: 895) Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('empty') (Line: 1040) Drupal\views\ViewExecutable->_initHandler('empty', Array) (Line: 898) Drupal\views\ViewExecutable->initHandlers() (Line: 2267) Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1692) Drupal\views\ViewExecutable->preExecute(Array) (Line: 1627) Drupal\views\ViewExecutable->executeDisplay('dashboard_notavaluated_modules', Array) (Line: 77) Drupal\views\Element\View::preRenderViewElement(Array) (Line: 59) Drupal\views\Plugin\Block\ViewsBlock->build() (Line: 203) Drupal\block\BlockViewBuilder::preRender(Array) call_user_func('Drupal\block\BlockViewBuilder::preRender', Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 111) __TwigTemplate_03f5fe5bb77a0f37b1985278b8749138254197f5c718109af8cb49872c44ad53->doDisplay(Array, Array) (Line: 427) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 398) Twig\Template->display(Array) (Line: 406) Twig\Template->render(Array) (Line: 64) twig_render_template('profiles/opigno_lms/themes/contrib/platon/templates/page/page.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 100) __TwigTemplate_7eab85e1e66b6635d3d6ef27c333fc3ca6fb5a1f29ae4aed67574f569eb4e27b->doDisplay(Array, Array) (Line: 427) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 398) Twig\Template->display(Array) (Line: 406) Twig\Template->render(Array) (Line: 64) twig_render_template('profiles/opigno_lms/themes/contrib/platon/templates/system/html.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 147) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 148) 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: 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: 693) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)Notice: Undefined index: default in Drupal\views\Plugin\views\PluginBase->setOptionDefaults() (line 184 of core/modules/views/src/Plugin/views/PluginBase.php). Drupal\views\Plugin\views\PluginBase->setOptionDefaults(Array, Array) (Line: 138) Drupal\views\Plugin\views\PluginBase->init(Object, Object, Array) (Line: 102) Drupal\views\Plugin\views\HandlerBase->init(Object, Object, Array) (Line: 42) Drupal\views\Plugin\views\area\AreaPluginBase->init(Object, Object, Array) (Line: 895) Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('empty') (Line: 1040) Drupal\views\ViewExecutable->_initHandler('empty', Array) (Line: 898) Drupal\views\ViewExecutable->initHandlers() (Line: 2267) Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1692) Drupal\views\ViewExecutable->preExecute(Array) (Line: 1627) Drupal\views\ViewExecutable->executeDisplay('dashboard_notavaluated_modules', Array) (Line: 77) Drupal\views\Element\View::preRenderViewElement(Array) (Line: 59) Drupal\views\Plugin\Block\ViewsBlock->build() (Line: 203) Drupal\block\BlockViewBuilder::preRender(Array) call_user_func('Drupal\block\BlockViewBuilder::preRender', Array) (Line: 378) Drupal\Core\Render\Renderer->doRender(Array) (Line: 450) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 111) __TwigTemplate_03f5fe5bb77a0f37b1985278b8749138254197f5c718109af8cb49872c44ad53->doDisplay(Array, Array) (Line: 427) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 398) Twig\Template->display(Array) (Line: 406) Twig\Template->render(Array) (Line: 64) twig_render_template('profiles/opigno_lms/themes/contrib/platon/templates/page/page.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 490) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 100) __TwigTemplate_7eab85e1e66b6635d3d6ef27c333fc3ca6fb5a1f29ae4aed67574f569eb4e27b->doDisplay(Array, Array) (Line: 427) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 398) Twig\Template->display(Array) (Line: 406) Twig\Template->render(Array) (Line: 64) twig_render_template('profiles/opigno_lms/themes/contrib/platon/templates/system/html.html.twig', Array) (Line: 384) Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 437) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195) Drupal\Core\Render\Renderer->render(Array) (Line: 147) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 148) 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: 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: 693) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

thanks

pat
Offline
Last seen: 4 months 2 weeks ago
Joined: 11/06/2018
Could you say where and when

Could you say where and when you get that message?

Andi L
Offline
Last seen: 5 months 2 weeks ago
Joined: 03/27/2019
hi pat,

hi pat,

i get this message when i do a activity (H5P Presentation) an go back to frontpage.

thanks

gbonamie
Offline
Last seen: 2 months 2 weeks ago
Joined: 06/01/2019
Hi Andi,

Hi Andi,

Is it possible you updated H5P manually?

axel
Offline
Last seen: 3 days 9 hours ago
Staff
Joined: 09/25/2013
Hi

Hi

This is not an error message, this is a notice.

You should simply change your PHP setting to not display notices.

And btw you are using an old version of Opigno, it's highly advised to upgrade