• Resolved razelpaldo

    (@razelpaldo)


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

    The error seems to be caused the new transaction record created when payment is being processed. Payment is processed properly but the success message is not displayed because of the error.
    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
Viewing 4 replies - 1 through 4 (of 4 total)
  • Rajsekhar Chatterjee

    (@rajsekharchatterjee11)

    Hi @razelpaldo,
    We have checked in our end. There is no such issue. Maybe you have added code for modifying some values. For that, some data will be crash for that particular vendor withdrawal. Can you please create a new vendor and do a fresh test.

    Thread Starter razelpaldo

    (@razelpaldo)

    Hi @rajsekharchatterjee11,

    Thank you for checking on this.

    I have tried creating a new vendor as you have suggested 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 also 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 hope above details will be helpful.

    Rajsekhar Chatterjee

    (@rajsekharchatterjee11)

    Hi @razelpaldo,
    We have replied to you in our forum.

    Thread Starter razelpaldo

    (@razelpaldo)

    Hi @rajsekharchatterjee11,

    Resolving this ticket since the issue has been fixed with the latest version of the plugin (3.5.14)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Error occurs when vendor tries to withdraw via Vendor Dashboard’ is closed to new replies.