Updating Drupal from 11.3 to 11.4.1 causes a fatal error when accessing the theme settings.
When attempting to access the settings (photo 1), I receive a fatal error for both the main theme and the sub-theme:
The website encountered an unexpected error. Try again later.
RuntimeException: The autoloader expected class "Drupal\embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase" to be defined in file "/home/pogoria/ftp/PROJECT/project.pingwin/web/modules/contrib/embed/src/Plugin/CKEditor5Plugin/EmbedCKEditor5PluginBase.php". The file was found but the class was not in it, the class name or namespace probably has a typo. in Symfony\Component\ErrorHandler\DebugClassLoader->checkClass() (line 376 of /home/pogoria/ftp/PROJECT/project.pingwin/vendor/symfony/error-handler/DebugClassLoader.php).
Symfony\Component\ErrorHandler\DebugClassLoader->loadClass('Drupal\embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase')
class_exists('Drupal\embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase', 1) (Line: 162)
Drupal\Component\Plugin\Discovery\AttributeClassDiscovery->getDefinitions() (Line: 67)
Drupal\Core\Plugin\Discovery\AttributeDiscoveryWithAnnotations->getDefinitions() (Line: 43)
Drupal\Core\Plugin\Discovery\YamlDiscoveryDecorator->getDefinitions() (Line: 31)
Drupal\Component\Plugin\Discovery\AttributeBridgeDecorator->getDefinitions() (Line: 86)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 340)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 216)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 186)
Drupal\ckeditor5\Plugin\CKEditor5PluginManager->getEnabledDefinitions(Object) (Line: 174)
Drupal\ckeditor5\Plugin\CKEditor5PluginManager->getEnabledLibraries(Object) (Line: 956)
Drupal\ckeditor5\Plugin\Editor\CKEditor5->getLibraries(Object) (Line: 84)
Drupal\editor\Plugin\EditorManager->getAttachments(Array) (Line: 99)
Drupal\editor\Element->preRenderTextFormat(Array)
call_user_func_array(Array, Array) (Line: 107)
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: 914)
Drupal\Core\Render\Renderer->doCallback('#pre_render', 'element.editor:preRenderTextFormat', Array) (Line: 447)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 517)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 230)
Drupal\Core\Render\Renderer->render(Array) (Line: 501)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 43)
__TwigTemplate_20af499da63c2db945a70b5f39bcef2a->doDisplay(Array, Array) (Line: 411)
Twig\Template->yield(Array) (Line: 394)
Twig\Template->render(Array) (Line: 51)
Twig\TemplateWrapper->render(Array) (Line: 35)
Drupal\Core\Template\TwigThemeEngine->renderTemplate('core/modules/system/templates/system-config-form.html.twig', Array) (Line: 428)
Drupal\Core\Theme\ThemeManager->render('system_config_form', Array) (Line: 504)
Drupal\Core\Render\Renderer->doRender(Array, Object) (Line: 230)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->{closure:Drupal\Core\Render\MainContent\HtmlRenderer::prepare():235}() (Line: 638)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():638}()
Fiber->start() (Line: 639)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 235)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 131)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 69)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}(Object, 'kernel.view', Object) (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.view', Object) (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, 'kernel.view') (Line: 188)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 30)
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: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 92)
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: 61)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 753)
Drupal\Core\DrupalKernel->handle(Object) (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require_once('/home/pogoria/ftp/PROJECT/project.pingwin/web/autoload_runtime.php') (Line: 13)
I haven't found a solution to this problem in Drupal patches or CkEditor5.
| Comment | File | Size | Author |
|---|---|---|---|
| solo 1.jpg | 242.37 KB | pingwin_cracow |
Comments
Comment #2
pingwin_cracow commentedI apologize and ask you to delete or close the report.
The issue has been identified and affects the Embed module.
After correcting the error, the SOLO theme is working correctly.
Best regards.
Comment #3
flashwebcenterHello,
Thank you for the update. I am glad to hear you found the root cause in the Embed module and that the Solo theme is working correctly.
I will go ahead and close this issue as requested.
Best regards,
Alaa