Сообщение об ошибке
Deprecated function: Required parameter $bubbleable_metadata follows optional parameter $data in require_once() (line 276 of core/lib/Drupal/Core/Extension/ModuleHandler.php).require_once() (Line: 276) Drupal\Core\Extension\ModuleHandler->loadInclude('profile', 'inc', 'profile.tokens') (Line: 678) Drupal\Core\Extension\ModuleHandler->verifyImplementations(Array, 'tokens') (Line: 595) Drupal\Core\Extension\ModuleHandler->getImplementationInfo('tokens') (Line: 328) Drupal\Core\Extension\ModuleHandler->getImplementations('tokens') (Line: 400) Drupal\Core\Extension\ModuleHandler->invokeAll('tokens', Array) (Line: 304) Drupal\Core\Utility\Token->generate('node', Array, Array, Array, Object) (Line: 196) Drupal\Core\Utility\Token->replace('[node:url]', Array, Array, Object) (Line: 66) Drupal\metatag\MetatagToken->replace('[node:url]', Array, Array, NULL) (Line: 577) Drupal\metatag\MetatagManager->generateRawElements(Array, Object) (Line: 493) Drupal\metatag\MetatagManager->generateElements(Array, Object) (Line: 496) metatag_get_tags_from_route() (Line: 265) _metatag_remove_duplicate_entity_tags(Array) (Line: 234) metatag_entity_view_alter(Array, Object, Object) (Line: 539) Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object, Object) (Line: 305) Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 239) Drupal\Core\Entity\EntityViewBuilder->build(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: 781) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200) Drupal\Core\Render\Renderer->render(Array, ) (Line: 241) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 242) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 132) 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: 163) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80) 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: 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: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 54) Drupal\cache_alter\StackMiddleware\ClearRequest->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)