• Resolved sagejohn

    (@sagejohn)


    I can’t seem to add shipping classes to Woocommerce in the settings.

    When I click on the button it’s not doing anything.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sagejohn

    (@sagejohn)

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6.4
    Current theme: Woodmart (version 5.3.6)
    Current plugin: WooCommerce (version 4.9.1)
    PHP version 7.4.22

    Error Details
    =============
    An error of type E_ERROR was caused in line 96 of the file /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php. Error message: Uncaught Error: Call to a member function get() on null in /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php:96
    Stack trace:
    #0 /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer))
    #1 /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/class-wc-customer.php(116): WC_Data_Store->read(Object(WC_Customer))
    #2 /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1227): WC_Customer->__construct(1249, true)
    #3 /usr/www/users/littlmkmwy/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(209): WC_Checkout->get_value(‘billing_country’)
    #4 /usr/www/users/littlmkmwy/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()’d code(38): WC_Checkout->get_checkout_fields()
    #5 /usr/www/users/littlmkmwy/wp-includes/class-wp-hook.php(287): lit_woocommerce_confirm_password_checkout(Object(WC_C

    Mirko P.

    (@rainfallnixfig)

    Hi @sagejohn,

    I understand that when you try to add a shipping class in WooCommerce > Settings > Shipping > Shipping classes and click on the button no fields are being added.


    That’s rather strange! Could you check if changing to a default theme and deactivating all plugins except WooCommerce helps here? If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    If that doesn’t help, please reach out with your System Status Report for further investigation. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Thanks.

    Plugin Support Sol J. a11n

    (@solstudioim)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you’re still having the issue

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shipping classes not working.’ is closed to new replies.