Hi guys,
today I made an update to composer and easy_breadcrumb went from version 2.0.5 to version 2.0.6, during this update, even if it rebuilds the URLs I have the following problem.
Drupal\redirect\Exception\RedirectLoopException: Redirect loop identified at /servizi for redirect 10 in Drupal\redirect\RedirectRepository->findMatchingRedirect() (line 86 of modules/contrib/redirect/src/RedirectRepository.php).
Drupal\redirect\RedirectRepository->findByRedirect(Object, 'it') (Line: 93)
Drupal\redirect\RedirectRepository->findMatchingRedirect('servizi', Array, 'it') (Line: 911)
Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->getRequestForPath('/servizi', Array) (Line: 505)
Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->build(Object) (Line: 83)
Drupal\Core\Breadcrumb\BreadcrumbManager->build(Object) (Line: 72)
Drupal\system\Plugin\Block\SystemBreadcrumbBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
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: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 111)
__TwigTemplate_4146d1a3fccc334e9c1914145ad6c5e5->block_contentBreadcrumb(Array, Array) (Line: 182)
Twig\Template->displayBlock('contentBreadcrumb', Array, Array) (Line: 62)
__TwigTemplate_4146d1a3fccc334e9c1914145ad6c5e5->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 48)
__TwigTemplate_72345c6c150d1520d70a6a1158aba34d->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/italiagov/templates/layout/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 100)
__TwigTemplate_d20229dd5f1dcbda8e2c9321ca178bf9->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/contrib/bootstrap_italia/templates/layout/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
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: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->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: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Issue fork easy_breadcrumb-3439365
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ruslan piskarovComment #4
ruslan piskarovThe same for us.
Comment #5
spuky commentedi guess this can be closed as duplicate
Comment #6
ruslan piskarovThis is not a duplicate. This issue appeared after this task #3426330 was released.
If we want to close the current task #3439365, we should reopen #3426330.
Comment #7
norman.lolThe report doesn't make clear how exactly the update process was performed. Just
composer update? Nodrush updb? Nodrush cr?Can I reproduce this issue with a fresh Drupal standard install, 2.0.5 Easy Breadcrumb installed, dummy content created and then update to 2.0.6 Easy Breadcrumb (how exactly)?
Comment #8
norman.lolAny patches applied?
Comment #9
spuky commented@ruslan yes the 2.0.6 release is broken with that bug... but the issue was solved in https://www.drupal.org/project/easy_breadcrumb/issues/3426330 it has not made it into a release yet..
try out the Dev Version and report back if it is still broken for you
the code in the issue you are refering to is not even in the 2.0.6 release 2.0.6 it is from february 4 and the commit in https://www.drupal.org/project/easy_breadcrumb/issues/3426330 was on march 7 so it is not in a realase yet but the actual fix for your issue...
Comment #10
spuky commentedComment #11
ruslan piskarovThank you @spuky. Now clear.
Comment #12
norman.lolWe should tag ASAP. Not good to have a stable release out there which is not stable.
Comment #13
spuky commented@leymannx greg made me a maintainer 15 Minutes ago... need to figure out the Process but am working on rolling a new release..
Comment #14
norman.lolAhhh nice!! 👏🏻
You tag, push the tag, and then you can create a new release at the bottom of the project page where you select the tag you just pushed.
Comment #15
spuky commentedNew release is out... closing as Duplicate