This is my first time using Sage, but I’ve been using Trellis and Bedrocks lots. The site that I’m working on right now is an old one. I’m planning to migrate the theme to Sage 10. The site doesn’t use Bedrock.
I have a clean Sage 10 theme and I’ve installed Acorn with Composer (in the theme directory). When I try to load a page, I got an error, but I can’t find it in my logs anymore.
When I ran wp acorn view:cache
, it loads a very basic page with my primary navigation. Whenever I make a change to index.php
and I refresh, I see my change.
But when I make a change to one of the blade templates, it doesn’t show when I reload the page. Only if I run wp acorn view:cache
does it show the change.
I thought it had something to do with my environment, since when I ran wp acorn env
it showed that I’m running a production
environment. I’ve added define('WP_ENV', getenv('WP_ENV') ?: 'development');
to my wp-config.php
, and now it show that my environment is set to development
. This didn’t make a difference.
When I run wp acorn view:clear
, I get a fatal error:
[Tue Mar 15 14:32:29.172723 2022] [php7:error] [pid 180719] [client 127.0.0.1:45394] PHP Fatal error: Uncaught Illuminate\\Contracts\\Filesystem\\FileNotFoundException: File does not exist at path /var/www/site/wp-content/cache/acorn/framework/views/1b027eb7a7a5e59758da6ceca13ea9fb5d46fb01.php. in /var/www/site/wp-content/themes/site-sage/vendor/illuminate/filesystem/Filesystem.php:111\nStack trace:\n#0 /var/www/site/wp-content/themes/site/vendor/illuminate/view/Engines/PhpEngine.php(58): Illuminate\\Filesystem\\Filesystem->getRequire()\n#1 /var/www/site/wp-content/themes/site-sage/vendor/illuminate/view/Engines/CompilerEngine.php(61): Illuminate\\View\\Engines\\PhpEngine->evaluatePath()\n#2 /var/www/site/wp-content/themes/site-sage/vendor/illuminate/view/View.php(139): Illuminate\\View\\Engines\\CompilerEngine->get()\n#3 /var/www/site/wp-content/themes/site-sage/vendor/illuminate/view/View.php(122): Illuminate\\View\\View->getContents()\n#4 /var/www/site/wp-content/themes/site-sage/vendor/illuminate/view/View.php(91): Illuminate\\View\\View->renderContents()\n#5 /var/www/site/wp-conten in /var/www/site/wp-content/themes/site-sage/vendor/illuminate/filesystem/Filesystem.php on line 111
Any ideas what I’m doing wrong? Thanks!