• Resolved jonklas

    (@jonklas)


    Getting an error when changing an order’s status via the rest interface:

    NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /var/www/html/preview/wp-content/plugins/woocommerce-services/classes/class-wc-connect-taxjar-integration.php:734
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "Stack trace:"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#0 /var/www/html/preview/wp-includes/class-wp-hook.php(286): WC_Connect_TaxJar_Integration->append_base_address_to_customer_taxable_address(Array)"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#1 /var/www/html/preview/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#2 /var/www/html/preview/wp-content/plugins/woocommerce-avatax/includes/class-wc-avatax-order-handler.php(1104): apply_filters('woocommerce_cus...', Array)"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#3 /var/www/html/preview/wp-content/plugins/woocommerce-avatax/includes/class-wc-avatax-order-handler.php(1053): WC_AvaTax_Order_Handler->get_taxable_address(Object(WC_Admin_Order))"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#4 /var/www/html/preview/wp-content/plugins/woocommerce-avatax/includes/class-wc-avatax-order-handler.php(313): WC_AvaTax_Order_Handler->is_order_taxable(Object(WC_Admin_Order))"
    [29-Jul-2019 13:41:03] WARNING: [pool www] child 26428 said into stderr: "#5 /var/www/html/preview/wp-content/plugi..."

    The error goes away when I disable the WooCommerce Services plugin. I am using AvaTax to calculate taxes, so I’m not sure I even need the WooCommerce Services plugin, but I’d like to keep it if possible.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jonklas,

    As you are changing the order status via the REST API, there may be a conflict with the shipping label area if you do printing labels via the Services plugin.

    I am using AvaTax to calculate taxes, so I’m not sure I even need the WooCommerce Services plugin, but I’d like to keep it if possible.

    Looking through the order I see the following:

    – The PHP error is with class-wc-connect-taxjar-integration
    – It appears to conflict with plugins/woocommerce-avatax/includes/class-wc-avatax-order-handler.php

    Ff you are using the AvaTax plugin you can make sure to disable the Auto Taxes by going to WooCommerce > Settings > Tax area and do not have Enable Auto taxes. This should disable the Tax area for WooCommerce Services, and allow AvaTax to take full control.

    If this is already set correctly, then if you also do not use the Print Labels option you can delete the WooCommerce Services area as the shipping option was disabled on the WooCommerce ver. 3.5 release.

    Hi @jonklas,

    We have not heard back from you in a while, so I am going to go ahead and close this thread. If you are still experiencing issues please open a new thread and let us know.

    Cheers!

    Thread Starter jonklas

    (@jonklas)

    Hi @nixiack8

    Disabling the plugin eliminated the errors, so no problem there. Is there a place to file a bug report for the plugin? Even though it’s fixed for me, it’s probably a fairly simple coding fix to for people who still need it enabled.

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

The topic ‘PHP error changing order status via rest’ is closed to new replies.