Mensaje de error
Warning: Undefined array key "ref" in eval() (line 2 of modules/contrib/php/php.module(81) : eval()'d code).
eval() (Line: 81) php_eval('<?php if($_GET["ref"]!=null) { $difunto = \Drupal::entityTypeManager()->getStorage('node')->load($_GET["ref"]); if($volver==null) { $volver=$_SERVER["HTTP_REFERER"]; } ?> <?php echo $difunto->get("field_display_nombre")->getValue()[0]["value"]." ".$difunto->get("field_apellido_1")->getValue()[0]["value"]." ".$difunto->get("field_apellido_2")->getValue()[0]["value"]; ?> <a>"> <?php echo t("Volver"); ?></a> document.addEventListener("DOMContentLoaded", function(event) { document.getElementById('edit-difunto').value="<?php echo $difunto->getTitle(); ?> (<?php echo $_GET["ref"]; ?>)"; }); <?php } ?> .form-item-difunto { display: none; } ') (Line: 26) Drupal\php\Plugin\Filter\Php->process('<?php if($_GET["ref"]!=null) { $difunto = \Drupal::entityTypeManager()->getStorage('node')->load($_GET["ref"]); if($volver==null) { $volver=$_SERVER["HTTP_REFERER"]; } ?> <?php echo $difunto->get("field_display_nombre")->getValue()[0]["value"]." ".$difunto->get("field_apellido_1")->getValue()[0]["value"]." ".$difunto->get("field_apellido_2")->getValue()[0]["value"]; ?> <a>"> <?php echo t("Volver"); ?></a> document.addEventListener("DOMContentLoaded", function(event) { document.getElementById('edit-difunto').value="<?php echo $difunto->getTitle(); ?> (<?php echo $_GET["ref"]; ?>)"; }); <?php } ?> .form-item-difunto { display: none; } ', 'es') (Line: 118) Drupal\filter\Element\ProcessedText::preRenderText(Array) call_user_func_array(Array, Array) (Line: 111) 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: 859) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 421) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 87) __TwigTemplate_58f996884000f92b53a5d003324049b4->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array, Array) (Line: 46) __TwigTemplate_f2dd8d881172a83c1d3d7051e1949867->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array, Array) (Line: 43) __TwigTemplate_99e40d72e261367ea6d12a5cf1e1e809->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array) (Line: 38) Twig\TemplateWrapper->render(Array) (Line: 39) twig_render_template('themes/contrib/bootstrap_barrio/templates/field/field--text-with-summary.html.twig', Array) (Line: 348) Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 480) Drupal\Core\Render\Renderer->doRender(Array) (Line: 493) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 77) __TwigTemplate_27ca3b517375ae745687d2393480cbee->block_content(Array, Array) (Line: 171) Twig\Template->displayBlock('content', Array, Array) (Line: 64) __TwigTemplate_27ca3b517375ae745687d2393480cbee->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array) (Line: 38) Twig\TemplateWrapper->render(Array) (Line: 39) twig_render_template('modules/contrib/layoutcomponents/templates/layoutcomponents-block-content.html.twig', Array) (Line: 348) Drupal\Core\Theme\ThemeManager->render('layoutcomponents_block_content', Array) (Line: 480) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 85) __TwigTemplate_8ed6c53aa86151598afc2ff9c53f8932->block_content(Array, Array) (Line: 171) Twig\Template->displayBlock('content', Array, Array) (Line: 68) __TwigTemplate_8ed6c53aa86151598afc2ff9c53f8932->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array) (Line: 38) Twig\TemplateWrapper->render(Array) (Line: 39) twig_render_template('themes/contrib/bootstrap_barrio/templates/block/block.html.twig', Array) (Line: 348) Drupal\Core\Theme\ThemeManager->render('block', Array) (Line: 480) Drupal\Core\Render\Renderer->doRender(Array) (Line: 493) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 274) __TwigTemplate_4afde763e19e1a5d16bf8f01e84beb10->block_content(Array, Array) (Line: 171) Twig\Template->displayBlock('content', Array, Array) (Line: 84) __TwigTemplate_4afde763e19e1a5d16bf8f01e84beb10->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array) (Line: 38) Twig\TemplateWrapper->render(Array) (Line: 39) twig_render_template('themes/custom/subtheme/templates/content/page.html.twig', Array) (Line: 348) Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 480) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 98) __TwigTemplate_c926db9487ffb7a4963db5f503fd5e3f->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array) (Line: 38) Twig\TemplateWrapper->render(Array) (Line: 39) twig_render_template('themes/custom/subtheme/templates/layout/html.html.twig', Array) (Line: 348) Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 480) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240) Drupal\Core\Render\Renderer->render(Array) (Line: 158) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 153) 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: 58) 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: 191) Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128) Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82) 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: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)