Title: [solved] Error: Parameter must be an array or an object
Last modified: October 30, 2019

---

# [solved] Error: Parameter must be an array or an object

 *  [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/solved-error-parameter-must-be-an-array-or-an-object/)
 * If You get this Error:
 * `Warning: count(): Parameter must be an array or an object that implements Countable
   in /wp-content/plugins/archives-calendar-widget/arw-widget.php`
 * than You need to change twice in arw-widget.php
    `if(count($categories))`
 * into
    `if(count((array)$categories))`
 * Cheers
    Henry

The topic ‘[solved] Error: Parameter must be an array or an object’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/archives-calendar-widget_81afd1.svg)
 * [Archives Calendar Widget](https://wordpress.org/plugins/archives-calendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/archives-calendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/archives-calendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/archives-calendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/archives-calendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/archives-calendar-widget/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 0 replies
 * 1 participant
 * Last reply from: [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/solved-error-parameter-must-be-an-array-or-an-object/)
 * Status: not resolved