Uncaught TypeError: Unsupported operand types: string – int in /dc-woocommerce-

WCMp Core

Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #142866
      l.gan
      Participant

      hello team,

      Question1. Please help, I have a problem:

      When the order (and suborder) get the status “closed” – everything is in order.
      If I change the suborder status from “Completed” to “Returned” – I get a screen with a critical error. if I refresh the page again – the error disappears and the status of the order is set to “returned”.
      I don’t set the status on the parent order. I only set the status on the suborder and it syncs with the parent order. After that, the parent order has the same status as the suborder.

      I am not using additional code for this action.
      I decided to see what was the matter and looked at the error logs on the server.

      Please can you also look at them, because as far as I understand – this may be due to the multi-vendor plugin.

      [Thu Oct 13 14:26:43 2022] [error] [client] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string – int in
      /public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php:1017\nStack trace:\n#0 [internal function]: WCMp_Order->wcmp_order_refunded(11575, 11579)\n#1
      /public_html/wp-includes/class-wp-hook.php(307): call_user_func_array(Array, Array)\n#2
      /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)\n#3
      /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#4
      /public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php(646): do_action(‘woocommerce_ord…’, 11575, 11579)\n#5
      /public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php(821): wc_create_refund(Array)\n#6 [internal function]: wc_order_fully_refunded(11575)\n#7
      /public_html/wp-includes/class-wp-hook.php(309): call_user_func_array(‘wc_order_fully_…’, Array)\n#8
      /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)\n#9
      /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#10
      /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action(‘woocommerce_ord…’, 11575, Object(WC_Order))\n#11
      /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()\n#12
      /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(334): WC_Order->save()\n#13
      /public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php(881): WC_Order->update_status(‘refunded’, ‘\\xD0\\xA1\\xD0\\xB8\\xD0\\xBD\\xD1\\x85\\xD1\\x80\\xD0\\xBE\\xD0\\xBD\\xD0…’)\n#14 [internal function]: WCMp_Order->wcmp_vendor_order_to_parent_order_status_synchronization(11576, ‘completed’, ‘refunded’)\n#15
      /public_html/wp-includes/class-wp-hook.php(309): call_user_func_array(Array, Array)\n#16
      /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)\n#17
      /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#18
      /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(374): do_action(‘woocommerce_ord…’, 11576, ‘completed’, ‘refunded’, Object(WC_Order))\n#19
      /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()\n#20
      /public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(671): WC_Order->save()\n#21 [internal function]: WC_Meta_Box_Order_Data::save(11576)\n#22
      /public_html/wp-includes/class-wp-hook.php(309): call_user_func_array(‘WC_Meta_Box_Ord…’, Array)\n#23
      /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)\n#24
      /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#25
      /public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(277): do_action(‘woocommerce_pro…’, 11576, Object(WP_Post))\n#26 [internal function]: WC_Admin_Meta_Boxes->save_meta_boxes(11576, Object(WP_Post))\n#27
      /public_html/wp-includes/class-wp-hook.php(309): call_user_func_array(Array, Array)\n#28
      /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)\n#29
      /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)\n#30

      Question 2. Can you please tell me when VSMP can be installed from the WordPress repository? I mean, are there release dates for version 4 of the multivendor plugin under the new name Multivendor X?

      And if I now install Multivendor X from github, will there be an update from the WordPress repository later?

      thanks for your help

    • #142915

      Hi,
      We have updated our plugin as per your error (but we are not able to recreate this on our end). Please check with https://github.com/multivendorx/dc-woocommerce-multi-vendor updated plugin.
      Thanks

    • #148068

      We haven’t heard back from you. We presume this issue has been fixed, so we are closing this one.
      if you need any further help, please do open another thread.

Viewing 2 reply threads

The topic ‘Uncaught TypeError: Unsupported operand types: string – int in /dc-woocommerce-’ is closed to new replies.