Created on 27 April 2024, 8 months ago
Updated 4 May 2024, 8 months ago

Problem/Motivation

After upgrading to php8.3 on clicking edit and after loading the edit form of a node:


Deprecated function: Use of "static" in callables is deprecated in Drupal\ckeditor_templates_ui\Entity\CkeditorTemplates::postLoad() (line 102 of /web/modules/contrib/ckeditor_templates_ui/src/Entity/CkeditorTemplates.php)

#0 /web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /web/modules/contrib/ckeditor_templates_ui/src/Entity/CkeditorTemplates.php(102): uasort()
#3 /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(389): Drupal\ckeditor_templates_ui\Entity\CkeditorTemplates::postLoad()
#4 /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(319): Drupal\Core\Entity\EntityStorageBase->postLoad()
#5 /web/modules/contrib/ckeditor_templates_ui/src/CkeditorTemplatesUi.php(31): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#6 /web/core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php(316): Drupal\ckeditor_templates_ui\CkeditorTemplatesUi->getDynamicPluginConfig()
#7 /web/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php(934): Drupal\ckeditor5\Plugin\CKEditor5PluginManager->getCKEditor5PluginConfig()
#8 /web/core/modules/editor/src/Plugin/EditorManager.php(81): Drupal\ckeditor5\Plugin\Editor\CKEditor5->getJSSettings()
#9 /web/core/modules/editor/src/Element.php(100): Drupal\editor\Plugin\EditorManager->getAttachments()
#10 [internal function]: Drupal\editor\Element->preRenderTextFormat()
#11 /web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array()
#12 /web/core/lib/Drupal/Core/Render/Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback()
#13 /web/core/lib/Drupal/Core/Render/Renderer.php(421): Drupal\Core\Render\Renderer->doCallback()
#14 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#15 /web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render()
#16 /web/sites/default/files/php/twig/662cd145d59ad_field-multiple-value-form_Y0pb5Rm_4NsvI1TT_skZVo9ZJ/w2JjLLohB605Baf9zuqJX2GnElFPcDC3QgOdezo68xE.php(83): Drupal\Core\Template\TwigExtension->escapeFilter()
#17 /vendor/twig/twig/src/Template.php(394): __TwigTemplate_b20f9013c8acc71000ac16ae32b503e9->doDisplay()
#18 /vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#19 /vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#20 /vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render()
#21 /web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render()
#22 /web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#23 /web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#24 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#25 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#26 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#27 /web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render()
#28 /web/sites/default/files/php/twig/662cd145d59ad_layout--fourcol-section.h_l1E5BpUNTD49WRSfG7-UNTMZN/FJCldXbOEHRbY1nZuNJ1VY876HLw-ixfh8WSvMeGdXE.php(72): Drupal\Core\Template\TwigExtension->escapeFilter()
#29 /vendor/twig/twig/src/Template.php(394): __TwigTemplate_e6e8fb98948c81e9a7401f76b17e307f->doDisplay()
#30 /vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#31 /vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#32 /vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render()
#33 /web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render()
#34 /web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#35 /web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#36 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#37 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#38 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render()
#39 /web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#40 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext()
#41 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#42 /web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#43 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#44 /web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#45 /vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#46 /vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#47 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#48 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#49 /web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#50 /web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#51 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#52 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#53 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#54 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#55 /web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#56 /web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#57 /web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#58 /web/index.php(19): Drupal\Core\DrupalKernel->handle()
#59 {main}

also when adding media objects into a node create form (yet unsaved).

Deprecated function: Use of "static" in callables is deprecated in Drupal\ckeditor_templates_ui\Entity\CkeditorTemplates::postLoad() (line 102 of /web/modules/contrib/ckeditor_templates_ui/src/Entity/CkeditorTemplates.php)

#0 /web/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /web/modules/contrib/ckeditor_templates_ui/src/Entity/CkeditorTemplates.php(102): uasort()
#3 /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(389): Drupal\ckeditor_templates_ui\Entity\CkeditorTemplates::postLoad()
#4 /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(319): Drupal\Core\Entity\EntityStorageBase->postLoad()
#5 /web/modules/contrib/ckeditor_templates_ui/src/CkeditorTemplatesUi.php(31): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#6 /web/core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php(316): Drupal\ckeditor_templates_ui\CkeditorTemplatesUi->getDynamicPluginConfig()
#7 /web/core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php(934): Drupal\ckeditor5\Plugin\CKEditor5PluginManager->getCKEditor5PluginConfig()
#8 /web/core/modules/editor/src/Plugin/EditorManager.php(81): Drupal\ckeditor5\Plugin\Editor\CKEditor5->getJSSettings()
#9 /web/core/modules/editor/src/Element.php(100): Drupal\editor\Plugin\EditorManager->getAttachments()
#10 [internal function]: Drupal\editor\Element->preRenderTextFormat()
#11 /web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array()
#12 /web/core/lib/Drupal/Core/Render/Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback()
#13 /web/core/lib/Drupal/Core/Render/Renderer.php(421): Drupal\Core\Render\Renderer->doCallback()
#14 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#15 /web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render()
#16 /web/sites/default/files/php/twig/662cd145d59ad_field-multiple-value-form_Y0pb5Rm_4NsvI1TT_skZVo9ZJ/w2JjLLohB605Baf9zuqJX2GnElFPcDC3QgOdezo68xE.php(83): Drupal\Core\Template\TwigExtension->escapeFilter()
#17 /vendor/twig/twig/src/Template.php(394): __TwigTemplate_b20f32b503e9->doDisplay()
#18 /vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#19 /vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#20 /vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render()
#21 /web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render()
#22 /web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#23 /web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#24 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#25 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#26 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#27 /web/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render()
#28 /web/sites/default/files/php/twig/662cd145d59ad_layout--fourcol-section.h_l1E5Bp76HLw-ixfh8WSvMeGdXE.php(72): Drupal\Core\Template\TwigExtension->escapeFilter()
#29 /vendor/twig/twig/src/Template.php(394): __TwigTemplate_e6e8f9a7401f76b17e307f->doDisplay()
#30 /vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling()
#31 /vendor/twig/twig/src/Template.php(379): Twig\Template->display()
#32 /vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render()
#33 /web/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render()
#34 /web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#35 /web/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
#36 /web/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender()
#37 /web/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
#38 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render()
#39 /web/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#40 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext()
#41 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#42 /web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#43 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#44 /web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#45 /vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#46 /vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#47 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#48 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#49 /web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#50 /web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#51 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#52 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#53 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#54 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#55 /web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#56 /web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#57 /web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#58 /web/index.php(19): Drupal\Core\DrupalKernel->handle()
#59 {main}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇦🇹Austria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024