I was seeing the following php warnings in the logs:

Warning: readdir() expects parameter 1 to be resource, boolean given in advagg_install_get_first_advagg_file() (line 1225 of advagg.install)

Since opendir() can return a boolean, $handle shouldn't be passed directly to readdir() without checking if it's false first.

CommentFileSizeAuthor
#1 advagg-2445153-1-opendir-check.patch736 bytesmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Status: Active » Fixed
FileSize
736 bytes

Thanks for the report. Easy fix. Patch has been committed.

  • mikeytown2 committed 5fce2ea on 7.x-2.x
    Issue #2445153 by mikeytown2: Fix PHP Warnings from readdir in install...
hankpalan.com’s picture

I feel like a real idiot here. I've disabled, uninstalled, and removed the module from my server. But I'm still getting the hundreds of errors from the old code. Even if I install/update the module, its still seeing the the old error.

I've cleared every cache I know possible. I'm stuck here.

mikeytown2’s picture

Don't know why you'd still be getting those errors after the module has been uninstalled. But I can tell you that the code in question with that line number (1278) means you're not using the latest dev. Latest dev would throw that error on line 1282 if the issue still existed.

APC/opcode cache?

hankpalan.com’s picture

It was some caching outside of my knowledge. It finally cleared out. I just left it alone for the night. Its all up and running now. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.