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
Did a new clone of D8 and got the latest dev of adaptive theme. Enabled at_core then clicked on settings button. Got error msg:
Fatal error: Class 'Xss' not found in /Users/rocks/Sites/drupal8/themes/adaptivetheme/at_core/forms/help_core.php on line 21
Haven't any old versions of adaptive theme so can't check what may have changed since I couldn't find this error in your issue queue.
Proposed resolution
Added
use Drupal\Component\Utility\Xss;
to ../forms/help.core.php and error went away.
Comments
Comment #1
dcrocks CreditAttribution: dcrocks commentedComment #2
Jeff Burnz CreditAttribution: Jeff Burnz commentedYep, I have fixed this in head, but I have to check if I pushed the commit or not, if not I'll see if I can push in the next day or so - its been hard to chase Drupal 8 head with all the changes and that one caught me out to be honest, I got stung by it also, lol, I mean with the change to use Xss::filterAdmin(), I may have searched replaced and forgot to add the use statement in some files, so better check again before pushing because there are other same sanity checks in different extensions and files etc.
Comment #3
mbrett5062 CreditAttribution: mbrett5062 commentedYes, this is still not in help.core.php as of 8.x-1.x-dev 2014-May-07. I guess Jeff is very, very busy at the moment. A simple enough fix for now. On the look out for any more.
By the way, Jeff, thanks for all your hard work in getting this as far as you have, it looks great so far.
Comment #4
Jeff Burnz CreditAttribution: Jeff Burnz commentedOK, I'll try to find some time to push the changes, yes I have been really busy with family commitments, sorry, very little time these past three weeks or so for much else at all.
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedThis is now fixed, AT Core now has no settings and I have abstracted out the theme generator into a separate theme (may become a module in the future).