Deprecated function: strpos() in layout_builder_entity_view_alter

Created on 30 November 2022, about 2 years ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

After open page not found page i get this error.

I don't use layout_builder on this page.

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in layout_builder_entity_view_alter() (line 161 of core/modules/layout_builder/layout_builder.module).

layout_builder_entity_view_alter(Array, Object, Object) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('menu_link_content_view', Array, Object, Object) (Line: 305)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build(Array) (Line: 92)
Drupal\menu_item_extras\Service\MenuLinkTreeHandler->getMenuLinkItemContent(Object, 0, ) (Line: 148)
Drupal\menu_item_extras\Service\MenuLinkTreeHandler->processMenuLinkTree(Array, 'megamenu') (Line: 242)
menu_item_extras_preprocess_menu(Array, 'menu', Array)
call_user_func_array('menu_item_extras_preprocess_menu', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('menu', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 90)
__TwigTemplate_116be1b805e42c1ecaf085d5ca382058->block_content(Array, Array) (Line: 182)
Twig\Template->displayBlock('content', Array, Array) (Line: 78)
__TwigTemplate_116be1b805e42c1ecaf085d5ca382058->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/oto_frontend/templates/block/block--system-menu-block.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('block', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 201)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 157)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 158)
Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 172)
Drupal\Core\Render\Renderer->renderPlaceholder('', Array) (Line: 693)
Drupal\big_pipe\Render\BigPipe->renderPlaceholder('', Array) (Line: 434)
Drupal\big_pipe\Render\BigPipe->sendNoJsPlaceholders('form.antibot * :not(.antibot-message) { display: none !important; }Pagina non 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

9.5

Component
Layout builder 

Last updated 4 days ago

Created by

🇮🇹Italy trickfun

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024