Support » Plugin: WC Shop Sync - Integrate Square and WooCommerce for Seamless Shop Management » Cannot use object of type WP_Error as array

  • Resolved whitmason

    (@whitmason)


    Saw this error in error log. Only occurred once, but seems that an error was not properly handled because wp_remote_woosquare returned WP_Error, which is not an array.

    CRITICAL Uncaught Error: Cannot use object of type WP_Error as array in \plugins\woosquare\_inc\square.class.php:310
    Stack trace:
    #0 \plugins\woosquare\_inc\square.class.php(200): Square->updateInventory()
    #1 \plugins\woosquare\woocommerce-square-integration.php(1119): Square->completeOrder()
    #2 \wp-includes\class-wp-hook.php(289): woo_square_complete_order()
    #3 \wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters()
    #4 \wp-includes\plugin.php(478): WP_Hook->do_action()
    #5 \wp-content\plugins\woocommerce\includes\class-wc-order.php(363): do_action()
    #6 \wp-content\plugins\woocommerce\includes\class-wc-order.php in \wp-content\plugins\woosquare\_inc\square.class.php on line 310

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot use object of type WP_Error as array’ is closed to new replies.