Sage website breaks in WPE when cloning an env

I don’t understand why when I clone a WPE env to another, the site always breaks giving me the same error. And it happened long enough ago that I don’t remember what I did to fix it :joy:

Any clues?

PHP Warning: file_put_contents(/nas/content/live/medspa810prd/wp-content/cache/acorn/framework/views/c755d4c72d13c2a3f313a40fa62e0448.php): Failed to open stream: Permission denied in /nas/content/live/medspa810prd/wp-content/themes/medspa810-sage/vendor/illuminate/filesystem/Filesystem.php on line 204
PHP Fatal error: Uncaught Illuminate\Contracts\Filesystem\FileNotFoundException: File does not exist at path /nas/content/live/medspa810prd/wp-content/cache/acorn/framework/views/c755d4c72d13c2a3f313a40fa62e0448.php

Things I’ve done already:

  1. Reset filesystem permissions
  2. Re-ran composer install
  3. wp acorn optimize:clear and wp acorn view:clear

I think you need to pre-generate your views - try: wp acorn view:cache

GitHub - wpengine/example-sage-theme: Modern theme development with WP Engine might have some other useful info.