Title: Warning: array_filter() expects parameter 1
Last modified: August 22, 2016

---

# Warning: array_filter() expects parameter 1

 *  Resolved [mpas97](https://wordpress.org/support/users/mpas97/)
 * (@mpas97)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/)
 * I get this warning on a [fileaway] (It runs perfectly, but I always see it.):
 * Warning: array_filter() expects parameter 1 to be array, boolean given in /home/
   httpd/vhosts/**/httpdocs/**/wp-content/plugins/file-away/lib/inc/inc.directories.
   php on line 39
 * How can I resolve the problem? 🙂

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

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266562)
 * Thanks for bringing this to my attention. I saw your post RIGHT before I was 
   about to push the new update, so I was able to throw in a fix just in time. It
   SHOULD be fixed in 2.8, now up. If not, let me know. It’s very strange because
   the glob() function that I’m passing to the array_filter() is supposed to return
   an empty array if there’s nothing to find, but for you, it isn’t doing so; it
   must be returning false. (I’ve never received that warning, so it’s odd.) Anyway,
   I added a check to make sure the glob() is an array before trying to pass it 
   to array_filter(), so that should take care of it. Please let me know either 
   way.
 *  Thread Starter [mpas97](https://wordpress.org/support/users/mpas97/)
 * (@mpas97)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266575)
 * Thx for the bugfix that you released just a few minutes after my post. 😉
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266577)
 * Is she fixed then?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266578)
 * I do not like bugs. I do like to fix them. Sometimes I fix them so fast you didn’t
   even know you had them.
 *  Thread Starter [mpas97](https://wordpress.org/support/users/mpas97/)
 * (@mpas97)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266579)
 * Yes, it’s fixed. So I marked it as resolved.
    I like your opinion, I like a such
   programmer and I really like such cool Plugins.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266581)
 * Domo arigato. I like people who like me.
 * I should really get some sleep now that the sun is up.
 * Enjoy.

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

The topic ‘Warning: array_filter() expects parameter 1’ 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

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

 * 6 replies
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_filter-expects-parameter-1/#post-5266581)
 * Status: resolved