When I visit /admin/config/content/fancy_file_delete/unmanaged I get the error message:
UnexpectedValueException: RecursiveDirectoryIterator::__construct(sites/default/files/styles/medium/public/product-images): failed to open dir: Permission denied in RecursiveDirectoryIterator->__construct() (line 332 of /vagrant/docroot/sites/all/modules/contrib/fancy_file_delete/fancy_file_delete.module).
Looks like there is a particular folder that it does not have permission to read.
This stackoverflow post seems to suggest that using the LEAVES_ONLY and CATCH_GET_CHILD flags will skip directories that it does not have permission to read however I can't get it to work.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2878394-2_fancy-file-delete-fatal-error-permission.patch | 1.94 KB | smustgrave |
Comments
Comment #2
smustgrave commented@dahousecat take a look at this patch and see if it works for you.
Comment #3
smustgrave commentedComment #4
smustgrave commentedComment #5
smustgrave commentedJust following up to see if this has been tested by anyone?
Comment #7
labboy0276 commentedLooks ok to me. I had to manually apply the patch since this issue is older, but thanks!