Hello all,

Problem/Motivation

I'm receiving the error below, when I try to do a fresh install:

The website encountered an unexpected error. Try again later.

TypeError: Drupal\cloud\Routing\CloudConfigHtmlRouteProvider::getHistoryRoute(): Return value must be of type ?Serializable, Symfony\Component\Routing\Route returned in Drupal\cloud\Routing\CloudConfigHtmlRouteProvider->getHistoryRoute() (line 77 of modules/contrib/cloud/src/Routing/CloudConfigHtmlRouteProvider.php).

Drupal\cloud\Routing\CloudConfigHtmlRouteProvider->getRoutes() (Line: 47)
Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber->onDynamicRouteEvent() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 196)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 67)
Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider() (Line: 97)
Drupal\Core\Routing\RouteProviderLazyBuilder->getRoutesByNames() (Line: 787)
Drupal\admin_toolbar_tools\Plugin\Derivative\ExtraLinks->routeExists() (Line: 143)
Drupal\admin_toolbar_tools\Plugin\Derivative\ExtraLinks->getDerivativeDefinitions() (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives() (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 127)
Drupal\Core\Menu\MenuLinkManager->getDefinitions() (Line: 152)
Drupal\Core\Menu\MenuLinkManager->rebuild() (Line: 61)
admin_toolbar_tools_entity_insert()
call_user_func_array() (Line: 389)
Drupal\Core\Extension\ModuleHandler->{closure:Drupal\Core\Extension\ModuleHandler::invokeAll():388}() (Line: 340)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 336)
Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook() (Line: 603)
Drupal\Core\Entity\EntityStorageBase->doPostSave() (Line: 528)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 239)
Drupal\Core\Config\Entity\ConfigEntityStorage->save() (Line: 370)
Drupal\Core\Entity\EntityBase->save() (Line: 635)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 429)
Drupal\Core\Config\ConfigInstaller->createConfiguration() (Line: 175)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig() (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig() (Line: 448)
Drupal\Core\Extension\ModuleInstaller->doInstall() (Line: 229)
Drupal\Core\Extension\ModuleInstaller->install() (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() (Line: 186)
Drupal\system\Form\ModulesListConfirmForm->submitForm() (Line: 108)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 45)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 615)
Drupal\Core\Form\FormBuilder->processForm() (Line: 347)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext():121}() (Line: 634)
Drupal\Core\Render\Renderer::{closure:Drupal\Core\Render\Renderer::executeInRenderContext():634}()
Fiber->start() (Line: 635)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->{closure:Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber::onController():96}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 118)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 92)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 745)
Drupal\Core\DrupalKernel->handle() (Line: 19)

- My environment is:

  • Drupal core: 11.3.11
  • PHP: 8.4.20
  • PostgreSQL: 18.4 (Debian 18.4-1.pgdg13+1)
  • nginx: 1.26.3

Steps to reproduce

  • Install Drupal 11's latest version
  • Install Cloud Module via composer
  • Activate the Cloud Module via drush or via UI.

What needs to be done?

Best,
Orkut

Issue fork cloud-3594984

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

orkutmuratyilmaz created an issue. See original summary.

yas made their first commit to this issue’s fork.

yas’s picture

Title: Drupal 11.3.11 incompatibility » Fix incorrect route provider return types from ?\Serializable to ?Route
Version: 8.0.0-beta1 » 8.x-dev
Assigned: Unassigned » yas
Status: Active » Needs review
Related issues: +#3576337: Support Hetzner

@orkutmuratyilmaz

Thank you for the bug report. I've created the MR and the automated tests have been passed successfully so let me merge my MR.

yas’s picture

Status: Needs review » Reviewed & tested by the community

  • yas committed 50ca8b80 on 8.x
    Issue #3594984 by yas: Fix incorrect route provider return types from ?\...
yas’s picture

Status: Reviewed & tested by the community » Fixed

@orkutmuratyilmaz

The patch has been merged, so let us close this issue. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

orkutmuratyilmaz’s picture

@yas, thanks for the fix:)