The site was working. I then ran composer require drupal/core -W which upgraded drupal/core from 9.5.4 to 10.0.4, as well as all its dependencies.
Full error I see (after adding $config['system.logging']['error_level']='verbose'; to settings.php) 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 /var/www/cycrev/web/core/lib/Drupal/Core/Render/Renderer.php on line 788 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 51 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
Drupal\Core\Render\Renderer->doCallback() (Line: 374) Drupal\Core\Render\Renderer->doRender() (Line: 446) Drupal\Core\Render\Renderer->doRender() (Line: 204) Drupal\Core\Render\Renderer->render() (Line: 160) Drupal\Core\Render\Renderer->Drupal\Core\Render{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 161) Drupal\Core\Render\Renderer->renderPlain() (Line: 346) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->renderHtmlResponseAttachmentPlaceholders() (Line: 203) Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments() (Line: 94) Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments() (Line: 45) Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 196) Symfony\Component\HttpKernel\HttpKernel->filterResponse() (Line: 184) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 686) Drupal\Core\DrupalKernel->handle() (Line: 19)
Are there any ways to revert the upgrade/would you recommend that?
composer install
again. The recommended way is to do this in an isolated copy of the site+database somewhere else first and only commit the updated composer.json+composer-lock.json and config files and then basically only runcomposer install
again on prod (or upload just the updated dist of everything after you've runcomposer install
in some CI)../vendor/bin/drush -y updb && ./vendor/bin/drush cr
.