Warning: scandir() [function.scandir]: (errno 0): Success in pirets_cron() (line 246 of ....public_html/sites/all/modules/pirets/pirets.module).
using the latest from bitbucket, what does this error mean?
Warning: scandir() [function.scandir]: (errno 0): Success in pirets_cron() (line 246 of ....public_html/sites/all/modules/pirets/pirets.module).
using the latest from bitbucket, what does this error mean?
Comments
Comment #1
jday commentedfollow up:
looking again at the log I see each 'scandir()' error is proceeded by an error that looks like this:
Warning: scandir(sites/default/files/pirets_img/1605687/1605687-9.jpeg) [function.scandir]: failed to open dir: Not a directory in pirets_cron() (line 246 of .../public_html/sites/all/modules/pirets/pirets.module).
when I moved the site to the new server I flushed all listings and then ran the update scripts. And I see that the directories for the photos look like this:
sites/default/files/imagecache/listing-sm/pirets_img/1576/1576149/1576149-1.jpeg
I don't remember that 4 digit directory being in there before...is that of any relevance?
Comment #2
Garrett Albright commentedYeah, the four-digit directory is a new thing; it solves a problem where people with many listings with images were hitting up against limits of the file system on their servers when PIRETS tried to create too many directories in the pirets_img directory.
But you did find a bug with the code which attempts to find and delete empty directories when cron runs. I'm going to push a fix right now; please take a peek at the next dev package. EDIT: Actually, I'm going to create a Beta 6 release. Give that a look instead.