Closed strarsis closed 2 years ago
I have temporary solved deleting the ./cache folder entirely
Delete app/cache/acorn
. That's the solution.
We'll make sure to add this to the release notes as a migration step.
@retlehs; @encodia; @QWp6t: So when the theme runtime (acorn
library) detects that no app/cache/acorn
directory is present,
it will automatically create the whole directory structure, including app/cache/acorn
/framework
and app/cache/acorn
/framework/cache
?
But when just the app/cache/acorn
directory is present, it will not automatically create these, but rather throw an exception.
Though *nix philosophy is to fail early and loud and such, IMHO the theme should try to be more "self-healing"/robust here and
just ensure automatically that all those required directories are created. – Or would this have unintended consequences?
@retlehs Thanks for the great work.
I am installing a new project on the latest main branch.
I found you added a commit regarding zero-configuration which removes the config directory entirely.
Is there a way to override the configurations which are under the /vendor/roots/acorn/config/*.php
?
I tried to do the old way like creating the /config
folder under the theme, it throws an error.
Fatal error: Uncaught Exception: Unable to load the "app" configuration file. in /Users/.../wp-content/themes/sage/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 67
@purplefeel https://github.com/roots/acorn/issues/161
I've got the same issue... I would like to have these config files in my theme root as well, otherwise they will get lost on each deploy
yep we'll get that fixed :+1: but let's keep things on topic so that this issue stays related to the original one reported
the config bug can be discussed over at the acorn bug linked above, please add your comments over there
Sorry about that! 🤭
I have the same problem , do anyone has a solution , I want to change the cache location
Description
What's wrong?
After installing the latest Sage 10 commit using
composer create-project roots/sage sage10 dev-main
an error occurs in backend and frontend after activating that theme:What have you tried?
I ensured that all theme dev dependencies were installed and
yarn build
successfully ran in order to initialize the theme.What insights have you gained?
The directory
web/app/cache/acorn/framework
andweb/app/cache/acorn/framework/cache
indeed don't exist yet for that site (web/app/cache/acorn/
does exist, there is noframework/cache/
folder inside though). Just creating theframework/
directory will result in a slightly different fatal error, where now theframework/cache/
folder is missing.Possible solutions
Manually ensuring that the directory
framework/
,framework/cache/
and the directory structureweb/app/cache/acorn/framework
exists.Temporary workarounds
Manually creating the
framework/
andframework/cache/
directory.Steps To Reproduce
composer create-project roots/sage sage10 dev-main
.nvm use lts/* && npm install -g npm && npm install -g yarn && yarn install && yarn build
./srv/www/web/app/cache/acorn/framework
./srv/www/web/app/cache/acorn/framework/cache
.Expected Behavior
No fatal errors after activating a fresh Sage 10 theme.
Actual Behavior
Fatal error in backend and frontend after activating the theme.
Relevant Log Output
Versions
Remove config and bootstrap directories (#2839)