Craft CMS Asked by Simon Clayson on March 4, 2021
I’m getting this error when accessing/writing images. It’s only just come along suddenly after one or a couple of updates.
LeagueFlysystemException
Impossible to create the root directory
"/Users/username/Sites/project-name/craft/web/images/folder". mkdir():
Permission denied
Nitro running other simpler site fine, so no problems there.
At a loss, any site running locally that needs images will fail to load, but /admin runs all fine.
Thanks 🙂
This could be because you are setting your Settings → Assets → your volume File System Path to an absolute location outside the VM.
Create an alias (or hard-set webroot
) using:
'aliases' => [
'webroot' => dirname(__DIR__) . '/web'
],
In your config/general.php
(changing web
if you have a different public root).
With this in place, change the File System Path of your volume to @webroot/your/path
which should solve you issue.
Correct answer by Oli on March 4, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP