Title: scandir() error
Last modified: September 1, 2016

---

# scandir() error

 *  Resolved [biffwebsterjr](https://wordpress.org/support/users/dirtyfrank/)
 * (@dirtyfrank)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/scandir-error-1/)
 * I get this error on my dev site at [http://dev-intandem.pantheonsite.io/](http://dev-intandem.pantheonsite.io/):
 * `Warning: scandir(/srv/bindings/8d1d2f470883424383a47d00cca9837d/code/wp-content/
   uploads/ithemes-security/backups): failed to open dir: No such file or directory
   in /srv/bindings/84b542fb2d11452297a64253d9dc7058/code/wp-content/plugins/better-
   wp-security/core/modules/backup/class-itsec-backup.php on line 261 Warning: scandir():(
   errno 2): No such file or directory in /srv/bindings/84b542fb2d11452297a64253d9dc7058/
   code/wp-content/plugins/better-wp-security/core/modules/backup/class-itsec-backup.
   php on line 261`
 * **What does it mean and how do I fix it?** iThemes is up-to-date and that directory
   DOES exist with permissions 770.
 * Thanks.
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/scandir-error-1/#post-7490661)
 * @biffwebsterjr
 * Temporarily change the permissions to 777 on the backups folder and see whether
   that makes any difference.
    If so, it must be a permission issue.
 * Edit:
    I just noticed there are 2 different folders being referenced in the error:
 * >  8d1d2f470883424383a47d00cca9837d versus 84b542fb2d11452297a64253d9dc7058
 * dwinden
 *  Thread Starter [biffwebsterjr](https://wordpress.org/support/users/dirtyfrank/)
 * (@dirtyfrank)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/scandir-error-1/#post-7490885)
 * Thanks, dwinden!
 * That difference in the paths was my clue to the solution. Turns out the settings
   from my production server got moved over to dev. Not sure how, but it’s all fixed
   now.
 *  [admin25112015](https://wordpress.org/support/users/admin25112015/)
 * (@admin25112015)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/scandir-error-1/#post-8225278)
 * Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   8912874 bytes) in…
    I have this problem,please tell me how can I solve this problem,
 * Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘scandir() error’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [admin25112015](https://wordpress.org/support/users/admin25112015/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/scandir-error-1/#post-8225278)
 * Status: resolved