Title: PHP Warning: Invalid argument
Last modified: September 5, 2020

---

# PHP Warning: Invalid argument

 *  Resolved [megseoh](https://wordpress.org/support/users/megseoh/)
 * (@megseoh)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-8/)
 * My debug.log has compiled about >400 notices referring to List Category Posts
   within the last 4 days. They are:
 * `[01-Sep-2020 19:59:35 UTC] PHP Warning: scandir(): (errno 2): No such file or
   directory in /home/babadook/public_html/wp-content/plugins/list-category-posts/
   include/lcp-templater.php on line 108`
 * `[01-Sep-2020 19:59:35 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /home/babadook/public_html/wp-content/plugins/list-category-posts/include/
   lcp-templater.php on line 108`
 * `[01-Sep-2020 19:59:35 UTC] PHP Warning: scandir(/home/babadook/public_html/wp-
   content/themes/buddyboss-theme-child/list-category-posts/): failed to open dir:
   No such file or directory in /home/babadook/public_html/wp-content/plugins/list-
   category-posts/include/lcp-templater.php on line 108`
 * I’m running the latest version of WordPress, List Category Posts, & all other
   plugins/my theme, PHP 7.4.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-8/#post-13432859)
 * This has already been fixed in the development version. The fix will be pushed
   to WP repository soon.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: Invalid argument’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-8/#post-13432859)
 * Status: resolved