Title: Coding error in CatListDisplayer.php
Last modified: August 22, 2016

---

# Coding error in CatListDisplayer.php

 *  [drtonyb](https://wordpress.org/support/users/drtonyb/)
 * (@drtonyb)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/coding-error-in-catlistdisplayerphp/)
 * There is a coding error in CatListDisplayer.php on line 82
 * foreach ($templatePath as $file){
 * $templatePath is a string!
 * This line is suppose to process each file in the $templatePath, so I expect the
   line should be:
 * foreach (scandir($templatePath) as $file){
 * The error causes a php error when you select Appearance/Widgets on the Dashboard.
 * Tony
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/coding-error-in-catlistdisplayerphp/#post-5239464)
 * This should be fixed in version 0.51. Please update the plugin and let me know
   if you have any further issues. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Coding error in CatListDisplayer.php’ 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: [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/coding-error-in-catlistdisplayerphp/#post-5239464)
 * Status: not resolved