Title: Warning: count
Last modified: August 13, 2018

---

# Warning: count

 *  Resolved [micadito](https://wordpress.org/support/users/micadito/)
 * (@micadito)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/warning-count-3/)
 * I have a problem with the plugin, when I install it, I upload a file and I get
   this error message.
    Warning: count(): Parameter must be an array or an object
   that implements Countable in C:\Xampp\htdocs\hazdelictores\wp-content\plugins\
   bp-group-documents\templates\groups\single\documents.php on line 53 Warning: 
   count(): Parameter must be an array or an object that implements Countable in
   C:\Xampp\htdocs\hazdelictores\wp-content\plugins\bp-group-documents\templates\
   groups\single\documents.php on line 73
 * The line 53
    <?php if ( $template->document_list && count($template->document_list
   >= 1) ) { ?> The line 73 <?php if ( $template->document_list && count($template-
   >document_list >= 1) ) { ?>
    -  This topic was modified 7 years, 10 months ago by [micadito](https://wordpress.org/support/users/micadito/).

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

 *  [robgrahamsydney](https://wordpress.org/support/users/robgrahamsydney/)
 * (@robgrahamsydney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/warning-count-3/#post-10898911)
 * I am having the same error. I am using the KLEO theme if that helps.
 *  [robgrahamsydney](https://wordpress.org/support/users/robgrahamsydney/)
 * (@robgrahamsydney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/warning-count-3/#post-10964371)
 * I am afraid the author is very busy (as can happen to all of us). I am very new
   to php, wordpress and all but I think brackets are missing. This is what I think
   it should be.
 * I had to download the file, make the changes and upload again and it was fixed.
   Please consider this is coming from someone who knows very little about what 
   I am doing. I hope I have done the write thing here.
 * <?php if ( $template->document_list && (count($template->document_list) >= 1)){?
   >
    The line 73 <?php if ( $template->document_list && (count($template->document_list)
   >= 1) ) { ?>
 *  Plugin Author [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * (@lenasterg)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/warning-count-3/#post-11409649)
 * Hi.
    Thanks for your patience.Fixed in version 1.12.3
 * Lena

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

The topic ‘Warning: count’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-group-documents.svg)
 * [BP Group Documents](https://wordpress.org/plugins/bp-group-documents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-group-documents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-group-documents/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-group-documents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-group-documents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-group-documents/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [lenasterg](https://wordpress.org/support/users/lenasterg/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/warning-count-3/#post-11409649)
 * Status: resolved