• Resolved mpas97

    (@mpas97)


    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

    (@thomstark)

    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

    (@mpas97)

    Thx for the bugfix that you released just a few minutes after my post. 😉

    Plugin Author thomstark

    (@thomstark)

    Is she fixed then?

    Plugin Author thomstark

    (@thomstark)

    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

    (@mpas97)

    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

    (@thomstark)

    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.