Home Forums WC Vendors Pro Support orders page crash

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #67662
    Daman
    Participant

    Orders page in Pro Dashboard crash – if you select the time(in filters) in which no order was placed or time before the creation of vendor’s profile.

    To reproduce: http://dev.wcvendors.com/dashboard/order/#
    1). Select Start date somewhere in Jan 2016 and End date to present.

    or

    2). If you create a new vendors profile and on orders tab – select start time before the creation of vendor’s profile time. Orders page will crash and footer and header nothing will work.

    Issue is high priority because even when you reload the page – it doesn’t load.

    #67672
    Daman
    Participant

    Error Logs:
    [Fri Jun 09 16:55:13.110164 2017] [:error] [pid 11011] [client 96.48.28.116:61914] PHP Fatal error: Uncaught exception 'Exception' with message 'Invalid order.' in /var/www/wordpress/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:86\nStack trace:\n#0 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(143): Abstract_WC_Order_Data_Store_CPT->read(Object(WC_Order))\n#1 /var/www/wordpress/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(109): WC_Data_Store->read(Object(WC_Order))\n#2 /var/www/wordpress/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-vendor-controller.php(258): WC_Abstract_Order->__construct('6100')\n#3 /var/www/wordpress/wp-content/themes/flatsome-child/woocommerce/myaccount/orders.php(35): WCVendors_Pro_Vendor_Controller::get_orders2(4, Array, false)\n#4 /var/www/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php(204): include('/var/www/wordpr...')\n#5 /var/www/wordpress/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2287): wc_get_template('myaccount/or in /var/www/wordpress/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 86, referer: /shop/clothing/product-name/?attribute_pa_color=black&attribute_pa_size=sm

    So this happens if admin deletes any order from backend.

    Would be nice to see – if order deletion also delete the record from pv_commissions table.

    #67684
    Anna
    Member

    @daman
    We have some checks built into our next update that will prevent these errors.
    However, before deleting an order, you should be reversing the commissions.
    Mark the commissions as due, then reversed (wp admin > woocommerce > commissions). then it can be deleted without having to go to the pv_commissions table in the database.
    Concerning any orders which you have already deleted, please drop them from the pv_commissions in your DB and you should no longer see this error.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.