new drupal 8.3.2.

any time i enable a module i see:

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

if i click back button the modules appear installed and site works correctly.

hopefully should be easy to retest.

update: some modules just arent installing so ive set to critical.

Comments

laurencefass created an issue. See original summary.

Syntapse’s picture

Priority: Major » Critical
Issue summary: View changes
cilefen’s picture

Priority: Critical » Normal

Hi! This doesn't qualify as critical until you look at the site logs to determine the real problem. Take a look and let us know.

Syntapse’s picture

log immediately after enabling core modules....

Type 	php
Date 	Thursday, May 25, 2017 - 10:16
User 	user1
Location 	http://chat8.vs/admin/modules
Referrer 	http://chat8.vs/admin/modules
Message 	RuntimeException: Recursive router rebuild detected. in Drupal\Core\Routing\RouteBuilder->rebuild() (line 121 of /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Routing/RouteBuilder.php) #0 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild() #1 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(55): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() #2 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(72): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider() #3 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Routing/UrlGenerator.php(419): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName('entity.user.can...') #4 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Routing/UrlGenerator.php(269): Drupal\Core\Routing\UrlGenerator->getRoute('entity.user.can...') #5 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php(105): Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.user.can...', Array, Array, true) #6 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Url.php(753): Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.user.can...', Array, Array, false) #7 /home/chat8/public_html/drupal-8.3.2/core/modules/user/user.module(524): Drupal\Core\Url->toString() #8 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_username(Array, 'username', Array) #9 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php(435): Drupal\Core\Theme\ThemeManager->render('username', Array) #10 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, true) #11 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\Core\Render\Renderer->render(Array, true) #12 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #13 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #14 /home/chat8/public_html/drupal-8.3.2/modules/nodejs/nodejs_watchdog/src/Logger/NodejsLogger.php(105): Drupal\Core\Render\Renderer->renderRoot(Array) #15 /home/chat8/public_html/drupal-8.3.2/modules/nodejs/nodejs_watchdog/src/Logger/NodejsLogger.php(69): Drupal\nodejs_watchdog\Logger\NodejsLogger->renderRow(Array) #16 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Logger/LoggerChannel.php(136): Drupal\nodejs_watchdog\Logger\NodejsLogger->log(3, 'LogicException:...', Array) #17 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php(65): Drupal\Core\Logger\LoggerChannel->log(3, '%type: @message...', Array) #18 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php(92): Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber->onError(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #19 [internal function]: Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber->onException(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\webprofiler\TraceableEventDispatcher)) #20 /home/chat8/public_html/drupal-8.3.2/vendor/symfony/event-dispatcher/Debug/WrappedListener.php(61): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\webprofiler\TraceableEventDispatcher)) #21 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #22 /home/chat8/public_html/drupal-8.3.2/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php(140): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #23 /home/chat8/public_html/drupal-8.3.2/vendor/symfony/http-kernel/HttpKernel.php(221): Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.exceptio...', Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent)) #24 /home/chat8/public_html/drupal-8.3.2/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\Component\HttpKernel\HttpKernel->handleException(Object(LogicException), Object(Symfony\Component\HttpFoundation\Request), 1) #25 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/chat8/public_html/drupal-8.3.2/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/chat8/public_html/drupal-8.3.2/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /home/chat8/public_html/drupal-8.3.2/modules/devel/webprofiler/src/StackMiddleware/WebprofilerMiddleware.php(38): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /home/chat8/public_html/drupal-8.3.2/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/DrupalKernel.php(656): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 /home/chat8/public_html/drupal-8.3.2/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #35 {main}.
Severity 	Error
Hostname 	192.168.1.200
Operations 	

then this one...

Type 	php
Date 	Thursday, May 25, 2017 - 10:16
User 	user1
Location 	http://chat8.vs/admin/modules
Referrer 	http://chat8.vs/admin/modules
Message 	LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 133 of /home/chat8/public_html/drupal-8.3.2/core/lib/Drupal/Core/Render/Renderer.php).
Severity 	Error
Hostname 	192.168.1.200
Operations 	
Syntapse’s picture

...that first one is not the most user friendly log message I have seen.

cilefen’s picture

Title: module install: The website encountered an unexpected error. » LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break / RuntimeException: Recursive router rebuild detected
Priority: Normal » Major

Which modules? Are there any non-core modules installed?

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

sic’s picture

i have the same issue now. could be a problem with localization maybe? views preview isnt working anymore.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

lendude’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

Cleaning up old bugs.

Is this still an issue after 8.3.2? Obviously this doesn't happen to all Drupal installs whenever a module in enabled, so we need some steps to reproduce this if it is still an issue.

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

The OP looks to possibly be an issue with nodejs_watchdog; it looks like an exception occurred in the router rebuild and then the logger tried to render something which required routing, causing the recursion.

As nobody has replied in 5 months and there have only been two cases of this in 4 years, closing as cannot reproduce.

adriancotter’s picture

This is happening to me today.

I can browser the site anonymously, but when Iog in, I get these errors on the same page:
TypeError: Failed to create closure from callable: function '_field_views_data' not found or invalid function name in Closure::fromCallable() (line 416 of .../web/core/lib/Drupal/Core/Extension/ModuleHandler.php).
Closure::fromCallable('_field_views_data') (Line: 416)

LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 139 of .../web/core/lib/Drupal/Core/Render/Renderer.php).

The site was edited earlier in the day, so I am really confused why this started to happen.

adriancotter’s picture

I think the likely issue is that I copied a database that was in with 9.4 Drupal into whatever the last 9.3.x was

I'm still confused as to why it slowly undid itself.
The sequence of errors in the log:

[Fri Jun 24 12:48:14.331658 2022] Uncaught PHP Exception Drupal\\Core\\Extension\\Exception\\UnknownExtensionException: "The module mysql does not exist." at .../web/core/lib/Drupal/Core/Extension/ExtensionList.php line 522,

[Fri Jun 24 14:14:44.240820 2022] Failed to log error: Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: Unable to determine class for field type 'webform' found in the 'field.field.node.webform_demo_event.webform' configuration in Drupal\\Core\\Field\\FieldConfigStorageBase->mapFromStorageRecords()

[Fri Jun 24 15:11:20.860996 2022] Failed to log error: TypeError: Failed to create closure from callable: function '_field_views_data' not found or invalid function name in Closure::fromCallable()

[Fri Jun 24 15:11:20.861031 2022] TypeError: Failed to create closure from callable: function '_field_views_data' not found or invalid function name in .../web/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 416 #0 .../web/core/lib/Drupal/Core/Extension/ModuleHandler.php(416):

The latter two happen now on login -- and the pages gets redirected to
https://www.sierraclubindependentaction.org/core/install.php

This is on a multi-site -- the other two sites present don't show any issues. I'd moved the database the day prior
The code is now 9.4 and it has not changed the last two errors.

adriancotter’s picture

I resolved my own issue -- although I'm not exactly sure how.

I thought it might have been related to our internet firewall, but I was able to replicate the issue locally.
Locally, it seemed to point to the fact there was stray configuration for non-enabled modules that were still in the DB in various places mainly in cache. But try as I might I could not get rid of it.

Then I ended up thinking of checking to login (on the live site) with a different machine and a different browser, and I was able to -- and then the issue in the original browser resolved. This points to some cache issue on the browser side. Sadly, I really don't understand why the error occurred or why it resolved.

I imagine the mixed code base and configuration was part of it -- although the stray configuration I was finding locally was also very puzzling (not modules that were ever enabled).