Title: PHP Error &#8211; Invalid Argument
Last modified: August 21, 2016

---

# PHP Error – Invalid Argument

 *  Resolved [WebKJGor](https://wordpress.org/support/users/webkjgor/)
 * (@webkjgor)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-error-invalid-argument/)
 * Hi,
 * Using latest version: 0.8.2.3
 * Have been getting these in error log:
 * PHP Warning: Invalid argument supplied for foreach() in /home/bood/public_html/
   fd/wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 188
 * Thanks
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/php-error-invalid-argument/#post-5154113)
 * thank you so much. I will try to replicate it. I will inform you after solving.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-error-invalid-argument/#post-5154203)
 * Hi WebKJGor, I fixed the issue. If you update the plugin, you can see the result.
 * Fix: to add these lines on 200. and 201. lines
 * >  $files = @scandir($dir);
   >  foreach((array)$files as $file) {

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

The topic ‘PHP Error – Invalid Argument’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-error-invalid-argument/#post-5154203)
 * Status: resolved