I get this error when i upgrade to version Development version: 8.x-1.x-dev updated 15 Nov 2017 at 21:58 UTC
[error] Drush command terminated abnormally due to an unrecoverable error.
Error: Uncaught TypeError: Argument 1 passed to Drupal\domain_config\DomainConfigOverrider::__construct() must implement interface Drupal\domain\DomainNegotiatorInterface, instance of Drupal\Core\Config\CachedStorage given, called in /home/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and defined in /home/public_html/modules/domain/domain_config/src/DomainConfigOverrider.php:64
Stack trace:
#0 /home/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\domain_config\DomainConfigOverrider->__construct(Object(Drupal\Core\Config\CachedStorage))
#1 /home/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'domain_config.o...')
#2 /home/public_html/core/lib/Drupal/Component/DependencyInjection/Container.php(480): Drupal\Component\DependencyInjection\Container->get('domain_config.o...', 1)
#3 /home/public_html/core/lib/ in /home/public_html/modules/domain/domain_config/src/DomainConfigOverrider.php, line 64
Comments
Comment #2
agentrickardThis isn't really a bug, per se. It's an artifact of how Symfony works.
Is this when trying to run a hard cache rebuild via drush
drush cr
?You'll have to rebuild Symfony's container using that method. Not sure how we handle cases where drush fails to do that.
Comment #3
agentrickardIf you can't run a cache reset after upgrading, downgrade, then run cache reset, then upgrade, then cache reset again. That should work.
Comment #4
Londova CreditAttribution: Londova commentedI have a similar problem when update the module manually on hosting.
The site crashed and running the "/update.php" doesn't have any effect.
As result, I have to return to the previous version.
Comment #5
agentrickardTry following the steps in comment #3.
Comment #6
RobertoGuzman CreditAttribution: RobertoGuzman commentedI have made the step #3, and i get the same error when i run what you said in comment #5 and i get same error, beside this error i get another error when i access the site, the same error repeat several times
Warning: array_flip() expects parameter 1 to be array, null given in Drupal\domain_source\HttpKernel\DomainSourcePathProcessor->getExcludedRoutes() (line 233 of /modules/domain/domain_source/src/HttpKernel/DomainSourcePathProcessor.php).
Drupal\domain_source\HttpKernel\DomainSourcePathProcessor->getExcludedRoutes() (Line: 202)
Drupal\domain_source\HttpKernel\DomainSourcePathProcessor->allowedRoute('') (Line: 132)
Drupal\domain_source\HttpKernel\DomainSourcePathProcessor->processOutbound('/', Array, Object, Object) (Line: 109)
Drupal\Core\PathProcessor\PathProcessorManager->processOutbound('/', Array, Object, Object) (Line: 384)
Drupal\Core\Routing\UrlGenerator->processPath('/', Array, Object) (Line: 298)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('', Array, Array) (Line: 105)
Drupal\redirect\EventSubscriber\RouteNormalizerRequestSubscriber->onKernelRequestRedirect(Object, 'kernel.request', Object) (Line: 108)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 129)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment #7
RobertoGuzman CreditAttribution: RobertoGuzman commentedI found the error, the Entity connect 8.x-2.0-alpha1 released 7 February 2017 creates this error
Comment #8
Londova CreditAttribution: Londova commented@RobertoGuzman
Comment #9
agentrickardYou might try disabling Domain Config before clearing the cache. The problem here is that the service definition has changed. The hard cache rebuild -- which includes rebuilding the symfony service containers -- is supposed to fix that.
It's possible that Domain Config runs too early in the load sequence, which causes the issue.
Comment #10
agentrickardOn the array_flip error, we can account for that. It seems that $config->get() no longer supports a default parameter.
That should really go in a separate issue.
Comment #11
agentrickardMoving #6, which I just ran into. Moved to #2927830: Path processing error in some cases
Comment #12
Londova CreditAttribution: Londova commented@agentrickard
You are right.
I disabled the Domain Config and other depending modules (Domain Site Settings), cleared cache and run the "update.php".
Now is OK.
Thank You.
Comment #13
agentrickardThere is something about how early that module runs that is interfering in the container rebuild. I will note that on the release of alpha10.
Comment #14
agentrickardDocumentation added to https://www.drupal.org/project/domain/releases/8.x-1.0-alpha10