Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I try to flush a preset, but an error occurred.
warning: rmdir([...]\files\imagecache\team_minifoto) [function.rmdir]: Directory not empty in [..,]\modules\imagecache\imagecache.module on line 695.
After that I check the drectory's contents and I found that it's empty.
The error is that the $d directory object is never closed, and removing it while still open raise that error. I solved adding (in a clean way) the next lines:
$d->close();
before the call to rmdir() resulting in having this code:
$d->close();
rmdir($path);
I'm using latest 6.x version avaiable.
Regards
Comment | File | Size | Author |
---|---|---|---|
#3 | imagecache.module.patch | 522 bytes | thePanz |
Comments
Comment #1
thePanz CreditAttribution: thePanz commentedComment #2
drewish CreditAttribution: drewish commentedplease provide a patch.
Comment #3
thePanz CreditAttribution: thePanz commentedIn attach my patch. I'm using latest 6.x-BETA1 CVS version. Let me know if further info are needed!
Regards
Comment #4
drewish CreditAttribution: drewish commentedthanks, committed to HEAD.
Comment #5
drewish CreditAttribution: drewish commentedcommitted this to DRUPAL-5--2 as well...
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.