Title: Fatal Error on v4.8.2 &#8211; Countable|array
Last modified: December 2, 2025

---

# Fatal Error on v4.8.2 – Countable|array

 *  Resolved [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [5 months, 4 weeks ago](https://wordpress.org/support/topic/fatal-error-on-v4-8-2-countablearray/)
 * Getting this error on v4.8.2
 *     ```wp-block-code
       [02-Dec-2025 03:36:49 UTC] PHP Warning: Attempt to read property "rates" on null in /home/act/webapps/act/wp-content/plugins/woocommerce-starshipit-services/woocommerce-starshipit-services.php on line 218 [02-Dec-2025 03:36:49 UTC] PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given in /home/act/webapps/act/wp-content/plugins/woocommerce-starshipit-services/woocommerce-starshipit-services.php:220 Stack trace: #0 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php(259): WC_StarShipIT_Rates->calculate_shipping() #1 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(353): WC_Shipping_Method->get_rates_for_package() #2 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(261): WC_Shipping->calculate_shipping_for_package() #3 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1517): WC_Shipping->calculate_shipping() #4 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(352): WC_Cart->calculate_shipping() #5 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(856): WC_Cart_Totals->get_shipping_from_cart() #6 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(148): WC_Cart_Totals->calculate_shipping_totals() #7 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(138): WC_Cart_Totals->calculate() #8 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1465): WC_Cart_Totals->__construct() #9 /home/act/webapps/act/wp-includes/class-wp-hook.php(322): WC_Cart->calculate_totals() #10 /home/act/webapps/act/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /home/act/webapps/act/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1343): do_action() #13 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(872): WC_Cart->add_to_cart() #14 /home/act/webapps/act/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(844): WC_Form_Handler::add_to_cart_handler_simple() #15 /home/act/webapps/act/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action() #16 /home/act/webapps/act/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #17 /home/act/webapps/act/wp-includes/plugin.php(517): WP_Hook->do_action() #18 /home/act/webapps/act/wp-settings.php(749): do_action() #19 /home/act/webapps/act/wp-config.php(40): require_once('...') #20 /home/act/webapps/act/wp-load.php(50): require_once('...') #21 /home/act/webapps/act/wp-blog-header.php(13): require_once('...') #22 /home/act/webapps/act/index.php(17): require('...') #23 {main} thrown in /home/act/webapps/act/wp-content/plugins/woocommerce-starshipit-services/woocommerce-starshipit-services.php on line 220
       ```
   
 * tried downgrading to 4.8.1 but that doesn’t fix
    -  This topic was modified 5 months, 4 weeks ago by [neilgee](https://wordpress.org/support/users/neilgee/).

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

 *  [paveldohnal](https://wordpress.org/support/users/paveldohnal/)
 * (@paveldohnal)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-on-v4-8-2-countablearray/#post-18742902)
 * Hi neilgee,
 * This error seem to be coming from the **StarShipIT shipping plugin**, not from
   WooCommerce core. The plugin is failing to retrieve shipping rates from the StarShipIT
   API.
 * Recommended steps:
    1. **Check StarShipIT API credentials** – Verify the API key in the plugin settings
       is still valid
    2. **Check StarShipIT service status** – There may have been an API outage on December
       2nd
    3. **Contact StarShipIT support** – Since this is their plugin, they can investigate
       why the API is returning null instead of rates data
    4. **Check for plugin updates** – See if there’s a newer version of the StarShipIT
       plugin available
 * As a temporary workaround, you could disable the StarShipIT plugin to restore
   cart functionality, then use an alternative shipping method until the issue is
   resolved.
 *  Plugin Support [Ejay F – a11n](https://wordpress.org/support/users/ejayfernandes/)
 * (@ejayfernandes)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-on-v4-8-2-countablearray/#post-18760965)
 * Hi [@neilgee](https://wordpress.org/support/users/neilgee/),
 * I hope you’re doing well. Since we haven’t heard back, I’ll mark this as resolved
   for now. If you’d like to reach back out or need help with anything else, we’re
   always happy to help.
 * If you found our support helpful, or if you’d like to share your experience with
   the plugin, we’d appreciate a review here: [https://wordpress.org/support/plugin/woocommerce-shipstation-integration/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce-shipstation-integration/reviews/#new-post)

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-on-v4-8-2-countablearray%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-shipstation-integration/assets/icon-256x256.
   png?rev=3234406)
 * [ShipStation for WooCommerce](https://wordpress.org/plugins/woocommerce-shipstation-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-shipstation-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-shipstation-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-shipstation-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-shipstation-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-shipstation-integration/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Ejay F – a11n](https://wordpress.org/support/users/ejayfernandes/)
 * Last activity: [5 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-on-v4-8-2-countablearray/#post-18760965)
 * Status: resolved