Title: Bug &#8211; Undefined array key &#8220;count&#8221;
Last modified: December 4, 2023

---

# Bug – Undefined array key “count”

 *  Resolved [sadesades](https://wordpress.org/support/users/sadesades/)
 * (@sadesades)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/)
 * I am getting the following error:
   Warning: Undefined array key “count” in /var/
   www/html/wp-content/plugins/search-analytics/admin/includes/class.stats-table.
   php on line 288The way to replicate this isSet Time filters: **All time **Set
   Results filters: **All**Set Group By: **Term**Click on “**No. of results**” to
   order it ASC or DESCClick on Group By: **No Group**On the settings, I do have“**
   Save Search By User**” checked on, but I tested this with or without that option
   checked, and it displays a tone of error warnings.

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

 *  Plugin Author [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * (@cornelraiu-1)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17251309)
 * Hi,
 * I am sorry you are having issues with the plugin. Let’s try to fix it really 
   fast.
 * Can you tell me which WP version you are using?
 * Thanks!
 *  Plugin Author [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * (@cornelraiu-1)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17251345)
 * Thanks for the detailed replication steps. I was able to replicate it.
 * Just to confirm: You are sorting by **“No. of Searches”** on the “_Group By: 
   Term_” and then seeing the warnings when trying to set “_Group By: No Group_“.
   Please correct me if I’m wrong.
 * I also found a really slow query when “_Group By: No Group_” is set and trying
   to sort by “**Average no. of results**“.
 * I’ll work on a fix for these 2 issues and release an update later today or tomorrow.
 * Thanks again for the detailed report!
    -  This reply was modified 2 years, 5 months ago by [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/).
 *  Thread Starter [sadesades](https://wordpress.org/support/users/sadesades/)
 * (@sadesades)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17251696)
 * Running on WordPress 6.4.1
   And for your question yes when I have it sort on terms
   and switch to no group is when I see the error.Thanks
 *  Plugin Author [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * (@cornelraiu-1)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17254738)
 * Hi,
 * I have just released an update ( v1.4.9 ) that fixes this issue.
 * Please confirm it’s fixed.
 * Thanks!
 *  Plugin Author [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * (@cornelraiu-1)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17335508)
 * Hi,
 * I will close this ticket because there is no activity and I will assume that 
   the issue is no longer present in any situation.
 * Thank you,
   Cornel Raiu
 *  Thread Starter [sadesades](https://wordpress.org/support/users/sadesades/)
 * (@sadesades)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17335873)
 * Sorry, yes this is fixed after the update, thank you.
 *  Plugin Author [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * (@cornelraiu-1)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17336268)
 * Thank you for confirming!
 * Cornel Raiu

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

The topic ‘Bug – Undefined array key “count”’ is closed to new replies.

 * ![](https://ps.w.org/search-analytics/assets/icon-256x256.jpg?rev=1832550)
 * [Search Analytics for WP](https://wordpress.org/plugins/search-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/search-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-analytics/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Cornel Raiu](https://wordpress.org/support/users/cornelraiu-1/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-array-key-count/#post-17336268)
 * Status: resolved