• Resolved ArcticFritid

    (@metuza)


    Hello,

    I find below warnings in my debug log and also the fatal error on first API request from Shipmondo. If i have many requests from Shipmondo it is always only the first that fails and give us the fatal error. This issue appeared with version 1.1.

    [15-Aug-2022 20:32:42 UTC] woocommerce_add_order_item_meta is deprecated since version 3.0.0! Use woocommerce_new_order_item instead.
    [15-Aug-2022 20:32:43 UTC] PHP Notice:  Only variables should be passed by reference in /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/classes/requests/helpers/class-dintero-checkout-order.php on line 164
    
    [17-Aug-2022 06:29:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wc_add_notice() in /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/includes/dintero-checkout-functions.php:50
    Stack trace:
    #0 /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/classes/class-dintero-checkout-api.php(166): dintero_print_error_message(Object(WP_Error))
    #1 /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/classes/class-dintero-checkout-api.php(87): Dintero_Checkout_API->check_for_api_error(Object(WP_Error))
    #2 /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/classes/class-dintero-checkout-order-management.php(118): Dintero_Checkout_API->capture_order('P11113681.5cJLc...', 21622)
    #3 /www/xxxxx/public/wp-includes/class-wp-hook.php(309): Dintero_Checkout_Order_Management->capture_order(21622)
    #4 /www/xxxxx/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #5 /www/xxxxx/public/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #6 /www/xxxxx/public/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 21622, Object(WC_Order))
    #7 /www/xxxxx/public/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()
    #8 /www/xxxxx/public/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php(747): WC_Order->save()
    #9 /www/xxxxx/public/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(238): WC_REST_Orders_V2_Controller->save_object(Object(WP_REST_Request), false)
    #10 /www/xxxxx/public/wp-includes/rest-api/class-wp-rest-server.php(1143): WC_REST_CRUD_Controller->update_item(Object(WP_REST_Request))
    #11 /www/xxxxx/public/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v2/orders/(...', Array, NULL)
    #12 /www/axxxxx/public/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch(Object(WP_REST_Request))
    #13 /www/xxxxx/public/wp-includes/rest-api.php(394): WP_REST_Server->serve_request('/wc/v2/orders/2...')
    #14 /www/xxxxx/public/wp-includes/class-wp-hook.php(307): rest_api_loaded(Object(WP))
    #15 /www/xxxxx/public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #16 /www/xxxxx/public/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #17 /www/xxxxx/public/wp-includes/class-wp.php(398): do_action_ref_array('parse_request', Array)
    #18 /www/xxxxx/public/wp-includes/class-wp.php(770): WP->parse_request('')
    #19 /www/xxxxx/public/wp-includes/functions.php(1330): WP->main('')
    #20 /www/xxxxx/public/wp-blog-header.php(16): wp()
    #21 /www/xxxxx/public/index.php(17): require('/www/xxxxx...')
    #22 {main}
      thrown in /www/xxxxx/public/wp-content/plugins/dintero-checkout-for-woocommerce/includes/dintero-checkout-functions.php on line 50

    Brgds
    Rune

Viewing 1 replies (of 1 total)
  • Plugin Author Dintero

    (@dintero)

    Hi, Rune.

    This should be resolved in version 1.1.2 of the plugin.

    Kind regards,

    Dintero

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error when communicating with Shipmondo’ is closed to new replies.