opendir failed to open dir in class-itsec-file-change.php line 452
-
Since 02-Aug-2014, I’ve been seeing many many PHP warnings like this:
[02-Aug-2014 04:39:39 UTC] PHP Warning: opendir(/proc/tty/driver/): failed to open dir: Permission denied in /home/getbusi/public_html/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 452
They all seem to be related to /proc. This must have been introduced in the one of the latest updates. The site is a network/multisite installation.
—
On another (standalone) site, I get a different error since 11-Aug-2014:
[11-Aug-2014 18:35:10 UTC] PHP Warning: opendir(/home/getbusi/public_html/ronitbaras/wp-content/cache/supercache/www.ronitbaras.com/emotional-intelligence/personal-development-c/if-you-think-you-can-or-think-you-cant-you-are-right-the-story-of-marina/): failed to open dir: No such file or directory in /home/getbusi/public_html/ronitbaras/wp-content/plugins/better-wp-security/modules/free/file-change/class-itsec-file-change.php on line 452
Since the code checked the return value of opendir and handles it, these PHP warnings should be prevented or suppressed to avoid unnecessarily filling up error log files. Please adjust the code.
Alternatively, please advise how I can prevent these from occurring.
Thank you,
Gal
- The topic ‘opendir failed to open dir in class-itsec-file-change.php line 452’ is closed to new replies.