Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I'm seeing the following error on the user/login page with this code change:
The website encountered an unexpected error. Please try again later.
Recoverable fatal error: Object of class Drupal\Core\Link could not be converted to string in Drupal\Component\Utility\Xss::filter() (line 67 of core/lib/Drupal/Component/Utility/Xss.php).
This looks like a genuine bug and a regression, not the result of your theming setup. The API usage in this snippet is wrong. I've opened a separate issue for this: #2861948: Incorrect usage of #markup and the Link object, will roll a patch soon.
Comments
Comment #2
bkhandruk commentedReplaced all deprecated uses in module.
Comment #4
snufkin commentedAwesome, thanks for taking the time for this!
Comment #5
SimonPhillips commentedI'm seeing the following error on the user/login page with this code change:
This appears to be due to this change:
I'm not sure if this is because we've got something wrong in our theming setup or if this is a genuine bug.
Comment #6
snufkin commentedThis looks like a genuine bug and a regression, not the result of your theming setup. The API usage in this snippet is wrong. I've opened a separate issue for this: #2861948: Incorrect usage of #markup and the Link object, will roll a patch soon.
Comment #7
snufkin commented@SimonPhillips could you check the issue mentioned in #6 please? Does it fix your theme issues, does it result in code you can theme properly?