I'm getting into Nitro 2 and so far loving it. I decided to create a scaffolding project to jump start other projects. Along the way, I ran into this error:
Invalid Configuration – yii\base\InvalidConfigException /Users/cbad/websites/nitro/core/cms/web/cpresources doesn’t exist or isn’t writable by PHP.
The path exists and the permissions, look correct. They are drwxr-xr-x. I removed the contents of cpresrouces based on another solution found on google but didn't help. I'm missing something!
I was syncing my .env file and general.php when this began. In .env I made WEB_ROOT_PATH like this:
In general.php I did this:
'resourceBasePath' => App::env('WEB_ROOT_PATH').'cpresources',
If it helps, here are the permissions on the folders. They seem to be the same as those on a site that doesn't get this error:
drwxr-xr-x 2 cbad staff 64 Mar 7 16:55 assets drwxr-xr-x 2 cbad staff 64 Mar 7 16:27 cpresources -rw-rw-rw-@ 1 cbad staff 604 Feb 5 20:12 index.php -rw-rw-rw-@ 1 cbad staff 1202 Feb 5 20:12 web.config
It seems to resolve to the correct location, but I get the error listed above. Is it obvious what I'm doing wrong?