Title: PHP Fatal error: Uncaught TypeError: count()
Last modified: November 30, 2023

---

# PHP Fatal error: Uncaught TypeError: count()

 *  [Tim Nolte](https://wordpress.org/support/users/tnolte/)
 * (@tnolte)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/)
 *     ```wp-block-code
       PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /public/wp-content/plugins/wp-security-audit-log/classes/WidgetManager.php:73
       Stack trace:
       #0 /public/wp/wp-admin/includes/template.php(1443): WSAL_WidgetManager->render_widget('', Array)
       #1 /public/wp/wp-admin/includes/dashboard.php(271): do_meta_boxes(Object(WP_Screen), 'normal', '')
       #2 /public/wp/wp-admin/index.php(203): wp_dashboard()
       #3 {main}
         thrown in /public/wp-content/plugins/wp-security-audit-log/classes/WidgetManager.php on line 73
       ```
   
 * This error is happening over and over especially on the WordPress Dashboard. 
   This is on WordPress 6.4 on PHP 8.1.

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

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17245232)
 * Thank you for using our plugin Tim.
 * I am sorry to read about your issue. Can you please let us know:
    1. What version of WP Activity Log are you using?
    2. Does this error happen when you activate the plugin or when you do something
       specific only?
 * The more information you can share for us to understand the context the quicker
   we can find the source of the issue.
 * Looking forward to hearing from you.
 *  Thread Starter [Tim Nolte](https://wordpress.org/support/users/tnolte/)
 * (@tnolte)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17245801)
 * The sites we are seeing this on are all running the latest `4.6.1` version. This
   error is happening while the plugin is already active. It it throwing these errors
   in the WP debug log while navigating the WordPress backend dashboard.
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17251875)
 * Hello Tim,
 * I am running this by the developers and I’ll get back to you shortly. Another
   question; do you know exactly when the plugin triggers this error? As in is it
   when you access a specific page on the dashboard or you are not sure?
 * Thanks.
 *  Thread Starter [Tim Nolte](https://wordpress.org/support/users/tnolte/)
 * (@tnolte)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17252268)
 * It for sure happens on the Dashboard, but in other pages as well.
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17253639)
 * Hello Tim,
 * We found the culprit and prepared a patch for you. Please download the patch 
   _20231205-3677-wp-security-audit-log-tim.zip _from our [plugin patches downloads section](https://melapress.com/support/plugins-patches/).
 * We have tested it but we were unable to reproduce the problem, so can you please
   install it and confirm the fix to us?
 * Thank you very much.
 *  Thread Starter [Tim Nolte](https://wordpress.org/support/users/tnolte/)
 * (@tnolte)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17255424)
 * I didn’t get a chance to test this out today. Will check it tomorrow.

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

The topic ‘PHP Fatal error: Uncaught TypeError: count()’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 6 replies
 * 2 participants
 * Last reply from: [Tim Nolte](https://wordpress.org/support/users/tnolte/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-count-2/#post-17255424)
 * Status: not resolved