Title: Another Scandir Error
Last modified: August 21, 2016

---

# Another Scandir Error

 *  Resolved [Kiwi1919](https://wordpress.org/support/users/kiwi1919/)
 * (@kiwi1919)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/)
 * Hi,
 * I’ve just started using File Away and it’s great! On one WP install I have it
   running just fine but on another I cannot get it to run.
 * I am wondering if it because of the way WP was installed in this case. the path
   to WP is public_html/c/wp
 * Anyway I get the following errors on the page where I have the [fileaway] code.
   I get this error in debug mode as well:
 * Warning: scandir(Dump): failed to open dir: No such file or directory in /home/
   classtwa/public_html/c/wp/wp-content/plugins/file-away/includes/file-away.php
   on line 211
 * Warning: scandir(): (errno 2): No such file or directory in /home/classtwa/public_html/
   c/wp/wp-content/plugins/file-away/includes/file-away.php on line 211
 * Warning: natcasesort() expects parameter 1 to be array, boolean given in /home/
   classtwa/public_html/c/wp/wp-content/plugins/file-away/includes/file-away.php
   on line 212
 * Warning: Invalid argument supplied for foreach() in /home/classtwa/public_html/
   c/wp/wp-content/plugins/file-away/includes/file-away.php on line 213
 * Warning: asort() expects parameter 1 to be array, null given in /home/classtwa/
   public_html/c/wp/wp-content/plugins/file-away/includes/file-away.php on line 
   226
 * Warning: Invalid argument supplied for foreach() in /home/classtwa/public_html/
   c/wp/wp-content/plugins/file-away/includes/file-away.php on line 227
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

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

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744937)
 * In WP General Settings is your Site URL the same as your WordPress url?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744938)
 * And what version of File Away are you running?
 *  Thread Starter [Kiwi1919](https://wordpress.org/support/users/kiwi1919/)
 * (@kiwi1919)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744941)
 * Hi Thom,
 * Site URL is the same as the WordPress URL. File Away is Version 1.7.1
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744944)
 * Would be willing to grant me temporary admin access to take a look? My email 
   is [tmstark@gmail.com](https://wordpress.org/support/topic/another-scandir-error/tmstark@gmail.com?output_format=md)
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744948)
 * If not let me know and we can try and troubleshoot via email.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744959)
 * Your problem was the directory you were pointing to is not inside your WordPress
   installation directory. I changed your Base 1 setting to: ../DirectoryName and
   now it is pointing to the correct place. But note that Directory Tree mode and
   Manager Mode will not work properly if the folders are not inside the WP installation
   directory. If all you’re doing is displaying one directory, though, it will work
   fine.
 *  Thread Starter [Kiwi1919](https://wordpress.org/support/users/kiwi1919/)
 * (@kiwi1919)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4744968)
 * Hi Thom,
 * Thanks so much for setting me straight and for the great plug in!
 *  Thread Starter [Kiwi1919](https://wordpress.org/support/users/kiwi1919/)
 * (@kiwi1919)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4745003)
 * Hi Thom,
 * Sorry, one more issue has cropped up from this. I changed my file directory so
   that it is inside the WordPress installation and that’s all working fine so I
   added a second file folder inside the first and it shows OK but if I click on
   the folder it takes me back to the home page?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4745018)
 * Oh yeah. I see what the issue is. Just a minute (I’m going back on your site 
   to fix.)
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4745038)
 * The directory tree navigation was not compatible with permalinks. I’ve uploaded
   version 1.7.2, resolving this issue.

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

The topic ‘Another Scandir Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

## Tags

 * [scandir()](https://wordpress.org/support/topic-tag/scandir/)

 * 10 replies
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/another-scandir-error/#post-4745038)
 * Status: resolved