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.
Greetings,
Avid user of the 7.x version of this theme. I'm working on D8 site and was trying to generate a subtheme. I received the following error:
Fatal error: Class 'Drupal\at_core\Helpers\FileSavePrepare' not found in /var/www/2014/id/dist/www/themes/adaptivetheme/at_core/lib/Drupal/at_core/Theme/ThemeGeneratorSubmit.php on line 29
This is because the autoloading is broken for FileSavePrepare as the file is named fileSavePrepare.php and not FileSavePrepare.php
Upon renaming the file to the correct case the subtheme generator form works correctly.
Thanks for this great theme!
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedCheers, I was not aware the case of the file name mattered very much, its been working for me locally (obviously), so I wonder if something changed in core with regards to autoloading, or I messed something up somewhere along the lines and committed it.
Thanks for the bug report, really happy to get bug reports like this for the D8 version (seriously, I really helps a lot).
This seems rather critical :)
Comment #2
mbrett5062 CreditAttribution: mbrett5062 commentedThis should be closed as duplicate of issue #2354761.
Which has a fix and is RTBC.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedHmmm, somehow I forgot about this issue and overlooked it. Closing since the other issue has a patch and I'll be committing that today.