Title: Uncaught TypeError: count()
Last modified: July 17, 2025

---

# Uncaught TypeError: count()

 *  Resolved [aaron9467](https://wordpress.org/support/users/aaron9467/)
 * (@aaron9467)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-typeerror-count/)
 * Hi, with the 6.1.18 update we are experiencing this issue. We rolled back to 
   the last version.
 * Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array,
   null given in wp-content/plugins/woo-authorize-net-gateway-aim/includes/aim/class-
   wc-gateway-authnet.php:389
 * It looks like it’s due to this commit: [https://plugins.trac.wordpress.org/changeset/3328658/woo-authorize-net-gateway-aim/trunk/includes/aim/class-wc-gateway-authnet.php](https://plugins.trac.wordpress.org/changeset/3328658/woo-authorize-net-gateway-aim/trunk/includes/aim/class-wc-gateway-authnet.php)
 * `$line_items_values['lineItem']` isn’t being set anywhere and the value is `null`.
 * Thanks

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

 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/uncaught-typeerror-count/#post-18560283)
 * Sorry about that. The issue has been fixed and a new release should be available
   in the next couple of minutes.
 *  Plugin Author [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * (@mohsinoffline)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/uncaught-typeerror-count/#post-18571605)
 * Closing this due to no further follow up.

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

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

 * ![](https://ps.w.org/woo-authorize-net-gateway-aim/assets/icon-128x128.png?rev
   =2750000)
 * [Secure Gateway for Authorize.net and WooCommerce by Pledged Plugins](https://wordpress.org/plugins/woo-authorize-net-gateway-aim/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-authorize-net-gateway-aim/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-authorize-net-gateway-aim/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mohsin.id](https://wordpress.org/support/users/mohsinoffline/)
 * Last activity: [10 months, 1 week ago](https://wordpress.org/support/topic/uncaught-typeerror-count/#post-18571605)
 * Status: resolved