PHP Error occurs when vendor tries to withdraw via Vendor Dashboard

Theme and Plugin Support

PHP Error occurs when vendor tries to withdraw via Vendor Dashboard Resolved

Viewing 11 reply threads
  • Author
    Posts
    • #109822
      purchase
      Participant

      A non-numeric value encountered in /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-post-transaction.php on line 322

      Below is the stack trace of the error.

      PHP Warning:  A non-numeric value encountered in /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-post-transaction.php on line 322
      PHP Stack trace:
      PHP   1. {main}() /index.php:0
      PHP   2. require() /index.php:17
      PHP   3. require_once() /wp-blog-header.php:13
      PHP   4. require_once() /wp-load.php:37
      PHP   5. require_once() /wp-config.php:81
      PHP   6. do_action() /wp-settings.php:546
      PHP   7. WP_Hook->do_action() /wp-includes/plugin.php:478
      PHP   8. WP_Hook->apply_filters() /wp-includes/class-wp-hook.php:311
      PHP   9. WCMp->init() /wp-includes/class-wp-hook.php:287
      PHP  10. WCMp->init_vendor_dashboard() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp.php:192
      PHP  11. WCMp_Admin_Dashboard->__construct() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp.php:391
      PHP  12. WCMp_Admin_Dashboard->vendor_withdrawl() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-vendor-dashboard.php:50
      PHP  13. WCMp_Gateway_Paypal_Masspay->process_payment() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-vendor-dashboard.php:85
      PHP  14. WCMp_Gateway_Paypal_Masspay->record_transaction() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/gateways/class-wcmp-gateway-paypal-masspay.php:46
      PHP  15. WCMp_Gateway_Paypal_Masspay->update_meta_data() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-payment-gateway.php:48
      PHP  16. WCMp_Gateway_Paypal_Masspay->transfer_charge() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-payment-gateway.php:143
      PHP  17. WCMp_Transaction->get_transactions() /wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-payment-gateway.php:71
      Copy

      I tried creating a new vendor but the same error occurs.
      I also tried completely deleting the plugin and installed the latest version just to make sure that it doesn’t contain codes that I may have modified but the same error occurs.
      I have also tried doing it in a fresh installation of WordPress with only WooCommerce and WC Marketplace installed but the same error occurs.

      I tried debugging the issue on my side and the error is caused by a call to get_transactions function to get the transfer_charge for the new transaction that is created during the withdrawal process. Inside get_transactions function, the list of transaction retrieved includes the new transaction created for the withdrawal process. Since the call to get_transations is to set the transfer_charge, the amount & transfer_charge fields accessed inside get_transactions is still empty and that’s what’s causing the error.

      I think this problem is the same as the one below
      https://wc-marketplace.com/support-forum/topic/error-in-vendor-withdrawal/

    • #109865

      Hi,
      We have tried to recreate this issue on our end. But didn’t find it. Here is the video https://www.loom.com/share/9324f23287404ba1a373f017be89b8b0. Can you please make a video. And please check your php version , wordpress, woocommerce version.

    • #109915
      purchase
      Participant
      This reply has been marked as private.
    • #109932
      This reply has been marked as private.
    • #109937
      purchase
      Participant
      This reply has been marked as private.
    • #110098
      This reply has been marked as private.
    • #110133
      purchase
      Participant
      This reply has been marked as private.
    • #110230
      This reply has been marked as private.
    • #110457
      purchase
      Participant
      This reply has been marked as private.
    • #110538

      Hi,
      We have checked with display_errors on. We have realeased our update today ( add some checking with guessing your issue ). Can you please check.

    • #110564
      purchase
      Participant

      Hi,

      Thank you for providing the fix despite not being able to replicate the issue.
      I have installed the latest version and confirmed that the PHP errors are not displayed anymore even with display_errors set to On.

    • #110573

      Hi,

      Thank you for the confirmation. We are marking this thread close, please fell free to open a new one in case you have any question for us.

Viewing 11 reply threads

The topic ‘PHP Error occurs when vendor tries to withdraw via Vendor Dashboard’ is closed to new replies.