- Issue created by @orkut murat yılmaz
- 🇫🇷France damien laguerre
This is caused by the "Watch mode".
If you are on production, you have to disable this functionality in
Configuration > Development > PerformanceBut the error indicates that you can't write to your file directory.
web/sites/default/filesChecks the permissions of your directory.
Something like this might help. Adapt the permissions to your environment.
chmod 775 web/sites/default/files
- Status changed to Closed: works as designed
over 1 year ago 11:54am 24 May 2023 - 🇹🇷Turkey kyilmaz80
I also have this issue. Here is how I solved it:
The files' permission generated by the function file_put_contents() comes from the PHP process. If the php process runs as root, the generated file is also. When running the drush command as root, the generated files' owner will be root. So, running the drush command as a non-root user solves the issue.
- 🇹🇷Turkey orkut murat yılmaz Istanbul
@kyilmaz80, thanks for this comment. it solved my issue too:)