Silverstripe Module to set X-Robots-Tag noindex, nofollow, noimageindex, noarchive, and nosnippet for files in folders and sub-folders when ShowInSearch is unchecked.
DB isn't ready when PublicAssetAdapter_HTAccess.ss asks for $list("SilverStripe\Assets\Folder").filter("ShowInSearch", 0) so we get
<[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: SELECT CASE WHEN EXISTS SELECT * FROM "File" WHERE ("File"."ClassName" IN (?))) THEN 1 ELSE 0 END Table 'ss_ssvanilla.file' doesn't exist
Happens on fresh projects with this module installed. The template for assets/.htaccess is generated early in the course of a first/initial request but than, still DB isn't generated and so querying it errors. It's a bit of a chicken egg situation, AssetAdapter should probable be tweaked to completely bail out generating assets/.htaccess if tables aren't generated yet?
Your composer.json autoloads the folder /folderindex mapping it to the App\ namespace, however there are just classes namespaced under Kraftausdruck\Extensions in that folder. I wonder if the composer.json would be more correct by putting Kraftausdruck\ as a PSR-4 autoloading namespace or if everything is right and I didn't get how that works (very possible, indeed, and in that case, that would be an educative moment for me).