Site dead after upgrade from 9.x to 10.x

Created on 4 December 2023, over 1 year ago
Updated 28 July 2024, 9 months ago

After follow the instruction from this page https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-later/how-to-upgrade-from-drupal-9-to-drupal-10 everything looks all right during the upgrade, but when I am checking the site, all pages are showing this error : ( my hosting php is in 8.1, seems not the php version problem )

The website encountered an unexpected error. Please try again later.

TypeError: Drupal\Core\Render\Renderer::doTrustedCallback(): Argument #1 ($callback) must be of type callable, array given, called in /home/abc/public_html/web/core/lib/Drupal/Core/Render/Renderer.php on line 797 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 57 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 386)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 474)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 72)
__TwigTemplate_6c25f381155707ae15500a19c3358c07->doDisplay(Array, Array) (Line: 394)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367)
Twig\Template->display(Array) (Line: 379)
Twig\Template->render(Array, Array) (Line: 40)
Twig\TemplateWrapper->render(Array) (Line: 53)
twig_render_template('core/themes/olivero/templates/layout/html.html.twig', Array) (Line: 372)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 445)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 158)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 159)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

💬 Support request
Status

Closed: outdated

Version

11.0 🔥

Component
Other 

Last updated about 6 hours ago

Created by

🇬🇧United Kingdom freelylw

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @freelylw
  • 🇬🇧United Kingdom freelylw

    after clear the site cache through mysql, the site is coming back now, but with errors, I can't run the update.php, it give me the message below, ( seems the ckeditor is a problem, what should I do with it ? )

    Database updates
    Out of date
    Some modules have database schema updates to install. You should run the database update script immediately.
    Incompatible modules
    The following modules are installed, but they are incompatible with Drupal 10.1.6:
    Entity Limit
    jQuery UI Accordion
    Simplify

    Review the suggestions for resolving this incompatibility to repair your installation, and then re-run update.php.
    Removed core modules
    You must add the following contributed modules and reload this page.
    CKEditor
    Quick Edit
    RDF
    These modules are installed on your site but are no longer provided by Core.
    For more information read the documentation on deprecated modules.
    Removed core themes
    You must add the following contributed themes and reload this page.
    Seven
    Stable
    Classy
    These themes are installed on your site but are no longer provided by Core.
    For more information read the documentation on deprecated themes.
    Unresolved dependency
    ckeditor (Missing)
    CKEditor Color Button requires this module.
    Unresolved dependency
    ckeditor (Missing)
    Panel Button requires this module.

  • The message on the site report seems clear to me. It looks as though that site was totally unprepared to upgrade to Drupal 10.

  • 🇬🇧United Kingdom freelylw

    before i upgrade to 10, I checked the module/update page, there is nothing there, so what else should I do please?

    one question : for the ckeditor, it's drupal10 now, should I download/upload the ckeditor4 back to the module folder ? or what should I do now please ? thanks

  • You did not follow the directions at https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-... , specifically, "Use Upgrade Status to check their compatibility".

  • 🇬🇧United Kingdom freelylw

    so for those "You must add the following contributed modules and reload this page." and "You must add the following contributed themes and reload this page", do I need to download the 9.x version and upload them now or what should I do with these ? thanks

  • Status changed to Closed: outdated 9 months ago
Production build 0.71.5 2024