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

RobertoGuzman created an issue. See original summary.

agentrickard’s picture

Category: Bug report » Support request
Priority: Critical » Normal

This 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.

agentrickard’s picture

If you can't run a cache reset after upgrading, downgrade, then run cache reset, then upgrade, then cache reset again. That should work.

Londova’s picture

I 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.

agentrickard’s picture

Try following the steps in comment #3.

drush cr
-- update module using composer / drush --
drush updb
RobertoGuzman’s picture

I 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)

RobertoGuzman’s picture

I found the error, the Entity connect 8.x-2.0-alpha1 released 7 February 2017 creates this error

Londova’s picture

@RobertoGuzman

agentrickard’s picture

You 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.

agentrickard’s picture

On 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.

agentrickard’s picture

Moving #6, which I just ran into. Moved to #2927830: Path processing error in some cases

Londova’s picture

@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.

agentrickard’s picture

There is something about how early that module runs that is interfering in the container rebuild. I will note that on the release of alpha10.

agentrickard’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.