• Resolved iymeko

    (@iymeko)


    My site has WooCommerce v2.6.14 because my theme (https://themeforest.net/item/autostar-rental-dealer-car-rental-automotive-car-dealer-automotive-car-rental-service/17130939) says that’s the newest version it’s compatible with (newer versions seem to mess up product pages). I also have WooCommerve Services 1.9.1 and Jetpack 5.6.1. When I installed and activated WooCommerce Services, a button showed up telling me I should connect WooCommerce Services to Jetpack. I clicked it and the page loaded with this error:

    Fatal error: Uncaught Error: Call to a member function add_shipping_method() on boolean in /home/mkemuscl/public_html/wp-content/plugins/woocommerce-services/woocommerce-services.php:463 Stack trace: #0 /home/mkemuscl/public_html/wp-content/plugins/woocommerce-services/woocommerce-services.php(502): WC_Connect_Loader->add_method_to_shipping_zone(NULL, ‘usps’) #1 /home/mkemuscl/public_html/wp-content/plugins/woocommerce-services/woocommerce-services.php(626): WC_Connect_Loader->init_core_wizard_shipping_config() #2 /home/mkemuscl/public_html/wp-content/plugins/woocommerce-services/woocommerce-services.php(539): WC_Connect_Loader->attach_hooks() #3 /home/mkemuscl/public_html/wp-includes/class-wp-hook.php(286): WC_Connect_Loader->after_wc_init(”) #4 /home/mkemuscl/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #5 /home/mkemuscl/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #6 /home/mkemuscl/public_html/wp-content/plugins/woocommerce-2.6.14/woocommerce.php(354): do_acti in /home/mkemuscl/public_html/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 463

    Pretty sure the error shows up on every page of the WP admin. The error won’t seem to go away unless I 1) deactivate WooCommerce Services (which of course I can only do via the WordPress.com “My Site” thing when the error is showing up), or 2) reinstall WooCommerce Services; however, if I reinstall WooCommerce Services and click that button again, the error comes back.

    I’m guessing this wouldn’t happen if I had all the latest versions of everything but because of the stupid theme’s compatibilities, I can’t do that. I swear I will never again buy themes like this that never update, but right now I need to get this guy’s site working and this is the theme he picked. Any help is sincerely appreciated.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jeff Stieler

    (@jeffstieler)

    Hello @iymeko,

    The error you’re experiencing is being caused by code that should only be called if you used the Setup Wizard in WooCommerce 3.2.

    Did you perhaps install WooCommerce 3.2 before switching to 2.6.14 because of your theme?

    Thread Starter iymeko

    (@iymeko)

    Thank you so much for your reply! With how much messing around I’ve done trying to get this stupid theme to work I can’t be certain but yes, that’s probably what I did.

    Assuming that’s what I did do you know how I should fix this?

    Plugin Contributor Jeff Stieler

    (@jeffstieler)

    Assuming that’s what I did do you know how I should fix this?

    If you have database access, you can delete the woocommerce_setup_domestic_live_rates_zone option from the database.

    Thread Starter iymeko

    (@iymeko)

    I do have database access but I don’t see woocommerce_setup_domestic_live_rates_zone in phpMyAdmin… am I missing something?

    All the tables for this WordPress DB are:
    wp4g_commentmeta
    wp4g_comments
    wp4g_links
    wp4g_loginizer_logs
    wp4g_options
    wp4g_postmeta
    wp4g_posts
    wp4g_revslider_css
    wp4g_revslider_layer_animations
    wp4g_revslider_navigations
    wp4g_revslider_sliders
    wp4g_revslider_slides
    wp4g_revslider_static_slides
    wp4g_termmeta
    wp4g_terms
    wp4g_term_relationships
    wp4g_term_taxonomy
    wp4g_usermeta
    wp4g_users
    wp4g_woocommerce_api_keys
    wp4g_woocommerce_attribute_taxonomies
    wp4g_woocommerce_downloadable_product_permissions
    wp4g_woocommerce_log
    wp4g_woocommerce_order_itemmeta
    wp4g_woocommerce_order_items
    wp4g_woocommerce_payment_tokenmeta
    wp4g_woocommerce_payment_tokens
    wp4g_woocommerce_sessions
    wp4g_woocommerce_shipping_zones
    wp4g_woocommerce_shipping_zone_locations
    wp4g_woocommerce_shipping_zone_methods
    wp4g_woocommerce_tax_rates
    wp4g_woocommerce_tax_rate_locations

    Sorry if this is obvious…

    Plugin Contributor Jeff Stieler

    (@jeffstieler)

    woocommerce_setup_domestic_live_rates_zone will be in the wp4g_options table in the meta_key column.

    Thread Starter iymeko

    (@iymeko)

    That did it, no more errors! Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error when trying to connect WooCommerce Services to Jetpack’ is closed to new replies.