• Resolved neilgee

    (@neilgee)


    Getting this error on v4.8.2

    [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 4 weeks ago by neilgee.
Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@ejayfernandes)

    Hi @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

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

You must be logged in to reply to this topic.