Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Just tried logging into D8 core and received this. I was on home and used the sidebar login. This issue does not appear on /user/login
url!
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("A stray drupal_render() invocation with $is_root_call = TRUE is causing bubbling of attached assets to break.") in "core/themes/bartik/templates/page.html.twig" at line 148. in Twig_Template->displayWithErrorHandling() (line 328 of core\vendor\twig\twig\lib\Twig\Template.php).
The url node?destination=/drupal8/node
is the one I see after the submit.
The login form also has a reCAPTCHA attached - just for completeness.
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
star-szrI think we need more information, it sounds like some other code is involved or we're missing some steps to reproduce. Please test with 8.0.x as well. Thanks!
Comment #3
hass CreditAttribution: hass commentedYou only need CAPTCHA 8.x-1.x-dev and reCAPTCHA 8.x-2.x-dev - both latest DEV versions. Assign reCAPTCHA to user_login_form and try to login via the sidebar with an invalid username and password. After you press login you will get the error.
If you need to know anything else, please ask for what.
Comment #4
hass CreditAttribution: hass commentedI found one more example. Just add
drupal_process_attached($page);
with an undefined$page
anywhere you want.Comment #5
bill richardson CreditAttribution: bill richardson commentedDo not have this issue with core install ( beta 10 ) , OR when i add captcha ---- recaptcha was updated on 8 th may, so that may solve the error that you where getting.
If issue not solved - you will need to inform recapcha maintainer.
Comment #6
hass CreditAttribution: hass commentedI'm the recaptcha maintainer.
Comment #7
star-szr@hass I can't reproduce this based on the steps you provided, on either 8.0.0-beta10 or 8.0.x.
Can you please provide a minimal code example/module that demonstrates this reported bug or provide working steps to reproduce?
Thanks.
Comment #8
bird-cage CreditAttribution: bird-cage commentedI get the exact same error,
but only in FireFox!I'm on a windows machine with FF developer edition. In Chrome and IE 11, login works as expected. That is no error. Only in FireFox the error, drupal returns a 403 Forbidden and the login fails.UPDATE: correction:
We have no capture modules installed, in fact other than core and a bunch of custom modules for content types and entities, it's a very clean install.
Here the error copied from the browser:
Comment #9
cparrish817 CreditAttribution: cparrish817 as a volunteer and commentedhttp://drupal8.dev/user/login
I'm getting it even on /usr/login. Was working fine until ran a git pull not I'm not sure if I should go forwards or backwards
Comment #10
pivica CreditAttribution: pivica at MD Systems GmbH commentedJust got a similar error
Not very helpful error but figure it out what I was doing wrong. In custom module I added hook_views_pre_build(ViewExecutable $view) implementation but forgot to add use \Drupal\views\ViewExecutable - after adding use statement error disappeared.
No idea how this is related but maybe it will help somebody.
Comment #11
joelpittet#10 doesn't seem be related because it's not on the user login, neither does #8 because browser specific shouldn't be producing server side errors.
Closing this as we can't reproduce and it's been 6months since we asked for steps to reproduce this.
Triaging theme system.
Comment #12
joelpittet