Home Forums WC Vendors Pro Support view orders not working since upgrade

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 44 posts - 1 through 44 (of 44 total)
  • Author
    Posts
  • #61871
    Alexandra
    Participant

    Since updating to WC 3.0 (+) vendors have been unable to view all orders in the vendor dashboard. The Vendor Dashboard page is fine and so is the shop settings page but the vendor-dashboard/order page with this shortcode: [wcv_orders] loops back to the WC my-account page.

    Can you help?

    #61879
    Alexandra
    Participant

    Just an update: I have done all the usual- deactivated all other plugins, checked WC status, using latest version of all plugins etc. etc. Recent orders show fine and sales are correctly allocated to each vendor. It is simply the vendor_dashboard/order page that is blank.

    It has my themes’ headers and WC Vendors menu items but nothing where the shortcode should show reports and CSV download…it’s driving me nuts..!.

    #61950
    Anna
    Member

    @anywherefest
    Could you please share your woocommerce system status in a reply?
    Have you updated to WC Vendors 1.9.10 and WC Vendors Pro 1.4.1?
    What theme are you using? Is the theme WooCommerce 3.0+ compatible?

    #61959
    arnold dysart
    Participant

    I’m having the same issue here. I updated today and orders are not showing on the vendor’s page. Using the ReHub theme. Will troubleshoot.

    #61960
    arnold dysart
    Participant

    Just activated Twenty Thirteen theme and they are still not showing. Doesn’t seem to be theme related.

    #61973
    Alexandra
    Participant

    It’s not theme related for sure (but I’m using Listable) and all other plugins were deactivated. Woocommerce system status is all OK and all plugins are up-to-date:

    WC Vendors Version 1.9.10
    WC Vendors Pro Version 1.4.1
    Woocommerce 3.0.3

    #61985
    Alexandra
    Participant

    It’s so weird. Nothing else is missing- Vendor Dashboard and snapshot reporting is fine, account settings is fine etc. it is just the View All Orders page…could there be a problem with the shortcode? I added it to the same page as the vendor dashboard just to see and it said:

    You haven’t selected a product’s orders to view! Please go back to the Vendor Dashboard and click Show Orders on the product you’d like to view.

    …Has something changed in the set up of wcvendor core pages that I didn’t do before upgrading?

    #61988
    Anna
    Member

    @anywherefest
    Are you going to this orders page straight from the Pro dashboard?
    That sounds like the error you’d get on the free dashboard page if you try to view orders without selecting an order..

    Would you be willing to provide an admin login & password in a private reply?

    #62067
    Anna
    Member

    @anywherefest
    Alexandra,
    Could you check it now?

    #62068
    Alexandra
    Participant

    I’ve cleared cache and still no dice. As you can see dashboard is good, account settings is good. Just the view all orders tab doesn’t work.

    #62075
    Daman
    Participant

    Same here:
    Apache Error Logs:
    ————-
    [Sun Apr 16 02:50:34.484421 2017] [:error] [pid 10784] 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(259): WC_Abstract_Order->__construct(‘6114’)\n#3 /var/www/wordpress/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-order-controller.php(357): WCVendors_Pro_Vendor_Controller::get_orders2(4, Array, false)\n#4 /var/www/wordpress/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-order-controller.php(122): WCVendors_Pro_Order_Controller->table_rows()\n#5 /var/www/wordpress/wp-content/plugins/wc-vendors-pro/public/class-wcv in /var/www/wordpress/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php on line 86, referer: /vendors-dashboard/order/
    —————-

    One Other Thing: When you create coupon and click back on coupon tab, it shows you blank page too and throws an error in error logs:
    ————
    [Sun Apr 16 02:54:28.756660 2017] [:error] [pid 11042] PHP Fatal error: Call to undefined method WC_Coupon::get_coupon_amount() in /var/www/wordpress/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-shop-coupon-controller.php on line 273, referer: /vendors-dashboard/order/
    —————–

    #62127
    Anna
    Member

    @anywherefest
    Alexandra,
    This seems to be a bug- and we are working on it.
    If the vendors HAVE orders, this page is blank (pro dashboard > Orders), as well as the Coupons page. If the Vendor does not have orders, the page is showing normally. That is why I had originally thought that the orders page was fixed on your site- my test vendor had no orders. 😉
    We are working to locate the issue and fix.

    #62128
    Anna
    Member

    @daman
    Thank you for the info and the error_log. That is helpful.

    The coupons error has been fixed, and the fix will be in our next update.

    #62129
    Alexandra
    Participant

    Thanks so much for your work. With regard to Orders….will it come out as an update as soon as it’s completed? (Just keen to keep my Vendors happy 😉

    #62189
    Anna
    Member

    @anywherefest
    Yes- for an issue such as this, we will likely release an update soon after the fix is implemented.

    #62281
    Jamie
    Keymaster

    Hello,

    Until our next release (24 hrs or so) you can modify the source with the following fix.

    File name and path

    public/class-wcvendors-pro-order-controller.php

    Line: 375

    Replace with this :

    $product_id = ( version_compare( WC_VERSION, ‘2.7’, ‘<' ) ) ? !empty( $item['variation_id'] ) ? $item['variation_id'] : $item['product_id'] : $item->get_product_id();

    cheers,

    Jamie.

    #62283
    Jamie
    Keymaster

    Hello,

    Whoops, forgot to give you the fix for coupons.

    File: public/class-wcvendors-pro-order-controller.php

    Line: 273 replace with

    $coupon_amount = ( version_compare( WC_VERSION, ‘2.7’, ‘<' ) ) ? $the_coupon->coupon_amount : $the_coupon->get_amount();

    cheers,

    Jamie.

    #62292
    Alexandra
    Participant

    Thanks Jamie. I’m having trouble making it work, it keeps coming back with an HTTP 500 error and breaks the site. I will wait 24 hours for the release, I think!

    #62305
    Anna
    Member

    Hello,
    That code is not formatted correctly; fancy quotes. Try it formatted like this so the quotes are code friendly:

    public/class-wcvendors-pro-order-controller.php
    Line: 375
    Replace with this :

    https://gist.github.com/fervous/4efb6593d9ce2c90b2da02b88002ef89

    File: public/class-wcvendors-pro-order-controller.php
    Line: 273 replace with

    https://gist.github.com/fervous/a36601ba3416173b474ef6dc3ca12679

    #62325
    Alexandra
    Participant

    Perfect Anna, works like a charm…thank you!

    Just FYI- export orders isn’t working- appears to be looking for a page instead of downloading a file.

    #62333
    Anna
    Member

    Alexandra,
    Are you seeing errors when you try to export the orders?
    If so, will you please post the errors here, or check in your error_log to see if there are errors?

    #62354
    Alexandra
    Participant

    It’s just an HTTP ERROR 500 is all.

    #62356
    Anna
    Member

    Alexandra,
    Thanks. Look like it is happening on our dev site, so I can get the error from there.
    Once again, it is not happening on my own development site- which is odd.
    I think these issues all are arising due to some lingering changes from the WooCommerce update that is preventing the older products and orders from being read or accessed in the same way; therefore we still keep having to update these things as we go. They changed so much this time!

    I’ve reported this- I’ll notify you when we have sorted this out.

    #62358
    Alexandra
    Participant

    No problem- thanks so much for all your help.

    #62362
    Daman
    Participant

    @anna
    The 2nd one is in shop coupon controller file not in order controller.

    // File: public/class-wcvendors-pro-order-controller.php  Line: 273 replace with this:
    $coupon_amount = ( version_compare( WC_VERSION, '2.7', '<' ) ) ? $the_coupon->coupon_amount : $the_coupon->get_amount();

    It’s in public/class-wcvendors-pro-shop-coupon-controller.php

    It did fix coupons tab but orders tab is still the same. Blank!

    #62365
    Alexandra
    Participant

    Hi Daman

    Did you try Anna’s link to GitHub? It definitely works.

    #62425
    Anna
    Member

    Hello,
    WC Vendors Pro v1.4.2 is now available, and the fix for these issues have been included in this update.
    Download it: https://www.wcvendors.com/my-account/downloads/
    Changelog: https://www.wcvendors.com/help/topic/pro-updates/#post-62403

    #62479
    Daman
    Participant

    Thanks @ANYWHEREFEST @anna

    Orders and Coupon tabs work with latest update. However if you delete(permanently) any order from backend. Orders tab crashes.
    You may question: why delete any order? I just happend to test on my dev site.

    Another Critical Error with this new update: Checkout throws 500 internal server error(Same as your Dev site.)

    #62480
    Anna
    Member

    @daman
    Thank you for your observations.
    Yes- I saw your other post regarding the checkout error. I have also seen this on our dev site, which is why I had asked what gateway people were using.

    Please let me know what your error_log says (last 20 lines or so).

    You said that both the WC Vendors Test Gateway and credit card transactions… what gateway were you using for the credit card transactions?

    #62484
    Daman
    Participant

    @anna

    [Wed Apr 19 22:58:41.100878 2017] [:error] [pid 22463] [client ] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.109701 2017] [:error] [pid 22463] [client] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.114504 2017] [:error] [pid 22463] [client] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.119189 2017] [:error] [pid 22463] [client ] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.158897 2017] [:error] [pid 22463] [client] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.236744 2017] [:error] [pid 22463] [client] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.241700 2017] [:error] [pid 22463] [client] The The “woocommerce_order_add_shipping” hook uses out of date data structures and function is deprecated since version 3.0.3. Replace with woocommerce_new_order_item., referer: /checkout/
    [Wed Apr 19 22:58:41.289084 2017] [:error] [pid 22463] The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: /checkout/
    [Wed Apr 19 22:58:41.289159 2017] [:error] [pid 22463] The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: /checkout/
    [Wed Apr 19 22:58:42.474309 2017] [:error] [pid 22463] [client] PHP Fatal error: Call to a member function get_product_id() on null in /var/www/wordpress/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-commission-controller.php on line 450, referer: /checkout/

    ———————————–

    Using WooCommerce Stripe Gateway

    #62488
    Anna
    Member

    Thank you very much- I’ve submitted an issue for these errors.

    #62491
    Anna
    Member

    @daman
    I just want to confirm that you are running:
    wc vendors free v1.9.10
    wc vendors pro v1.4.2
    Woocommerce v3.0.3
    Stripe Commissions & Gateway v1.0.5 (did you update this also?)

    Jamie will need to know this when looking into this issue.

    #62503
    Daman
    Participant

    @anna

    Yes, all latest plugins including theme(Flatsome)
    WC Free 1.9.10
    WC pro 1.4.2
    Woo 3.0.3

    #62505
    Anna
    Member

    @daman
    Thank you! This is being investigated.

    #62511
    Alexandra
    Participant

    I’m so sorry guys- since updating today orders are no longer auto-completing (which they were doing prior to upgrade) and vendors are no longer receiving completed order emails.

    #62512
    Alexandra
    Participant

    I’m so sorry guys- since updating today orders are auto-completing but customers and vendors are no longer receiving completed order emails (and nor am I) so I have to manually send completed orders to customers and vendors receive nothing.

    All was well before latest update.

    #62517
    Jamie
    Keymaster

    Hello,

    Emails are part of the woo subsystem and we hook into these. Unless Woo has changed the actions for these emails to fire (which is possible lately) they should still be firing. When you mean latest update. Is that Woo Updates or 1.4.x updates or 1.4.2 update?

    cheers,

    Jamie.

    #62802
    Alexandra
    Participant

    Hi Jamie, Anna

    There are two critical issues with the plugin now…

    1. Orders not sending completed order emails – I need to manually “resend”
    2. Not logging commissions in pv_commissions – this is SO critical!!

    It is definitely your plugin as I deactivated WC Vendors & WCVendors Pro and emails returned to normal.

    #62805
    Daman
    Participant

    Luckily i haven’t updated to WC3.0 and WCV PRO on my production site. Still waiting for a stable WCV Pro version.

    But on dev site:
    As Alexandra wrote:
    1). Orders not sending completed order emails – I need to manually “resend”

    2). But Commissions are being logged correctly for me. No issues here.

    3). Order emails and order received page upon checkout do not show shipping cost, instead they show vendor shipping method.

    4). Variable products orders are shown as – 1 x Variation #6748 Product name (Not sure why variation ID)

    Between thanks @anna @digitalchild for your support. But i want to ask why do you guys don’t test the plugin completely before throwing an update? Sometimes Checkout is broken, sometimes orders, product pages are broken even on your dev site, like very critical issues. No doubt your plugin is best in the market and i really like it but just curious, why not enough testing before an update?

    #62848
    Anna
    Member

    @daman @anywherefest
    Ok- thank you- I am looking into these issues.

    Daman:

    But i want to ask why do you guys don’t test the plugin completely before throwing an update?

    We do– we do test.
    This has been a very difficult update– WooCommerce has changed a lot, so even in our testing, we have missed some things. So– I totally understand your frustration– but for this update, we’ve had to keep on testing and running various scenarios to try and find any trailing areas of code that still need to be altered for WooCommerce 3.0+. That’s why these were released with some bugs.

    With Variable products and the orders pages- much of that is due to the way older products were written- in the WooCommerce update they changed this, so older product info was causing errors.
    We have had to make many things in our plugin now backward and forward compatible, so that reports, older products (listed before WooCommerce 3.0+) are still able to be used and the data properly accessible in your orders and reports screens.

    With variable products- my development site and testing showed none of these issues since I was running a fresh install. As soon as I started testing with older products– boom — we saw the issues. Ugh!

    #64328
    Ryan
    Participant

    Just curious if this has been fixed? This is all happening to my site too. I am running:

    WCV: Version 1.9.11
    WCVP: Version 1.4.3
    Woocommerce: Version 3.0.5

    Thanks

    Ryan

    #64331
    Ryan
    Participant

    I think I’m having the same problem as above. I permanently deleted an order after testing and now my orders page will not show up under vendor dashboard.

    #64396
    Daman
    Participant

    @conlonryan Orders page was initially fixed but yes, if you delete order it crashes vendor orders page.
    I reported it few days ago but no fix yet.


    @anna
    Can you please try deleting an order on your dev site. It crashes the order page.
    Apache Error log: Invalid Order

    #64444
    Anna
    Member

    I think since those orders were deleted, the system is still trying to locate them and now it is throwing an error.
    Try deleting these from your database- the commissions.

    go to your c-Panel & database and remove those items from the commissions database table.
    Go to phpMYadmin , and look for the _pv_commission table. Click on that, and delete the line items in that table that you wish to no longer be on our site.

    In the future, mark the commissions REVERSED on test orders first, and then they can be removed.

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