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.
Thank you to all of our customers!
- This topic has 43 replies, 6 voices, and was last updated 6 years, 5 months ago by
Anna.
-
AuthorPosts
-
April 13, 2017 at 6:09 pm #61871
Alexandra
ParticipantSince 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?
April 13, 2017 at 9:37 pm #61879Alexandra
ParticipantJust 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..!.
April 14, 2017 at 6:06 pm #61950Anna
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?April 14, 2017 at 7:16 pm #61959arnold dysart
ParticipantI’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.
April 14, 2017 at 7:18 pm #61960arnold dysart
ParticipantJust activated Twenty Thirteen theme and they are still not showing. Doesn’t seem to be theme related.
April 14, 2017 at 8:37 pm #61973Alexandra
ParticipantIt’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.3April 14, 2017 at 11:16 pm #61985Alexandra
ParticipantIt’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?
April 15, 2017 at 12:36 am #61988Anna
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?
April 15, 2017 at 11:08 pm #62067Anna
Member@anywherefest
Alexandra,
Could you check it now?April 15, 2017 at 11:14 pm #62068Alexandra
ParticipantI’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.
April 16, 2017 at 2:53 am #62075Daman
ParticipantSame 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/
—————–April 16, 2017 at 8:38 pm #62127Anna
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.April 16, 2017 at 8:39 pm #62128Anna
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.
April 16, 2017 at 8:42 pm #62129Alexandra
ParticipantThanks 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 😉
April 17, 2017 at 10:07 am #62189Anna
Member@anywherefest
Yes- for an issue such as this, we will likely release an update soon after the fix is implemented.April 18, 2017 at 2:10 am #62281Jamie
KeymasterHello,
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.
April 18, 2017 at 2:20 am #62283Jamie
KeymasterHello,
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.
April 18, 2017 at 6:49 am #62292Alexandra
ParticipantThanks 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!
April 18, 2017 at 12:00 pm #62305Anna
MemberHello,
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 withhttps://gist.github.com/fervous/a36601ba3416173b474ef6dc3ca12679
April 18, 2017 at 5:15 pm #62325Alexandra
ParticipantPerfect 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.
April 18, 2017 at 6:07 pm #62333Anna
MemberAlexandra,
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?April 18, 2017 at 10:13 pm #62354Alexandra
ParticipantIt’s just an HTTP ERROR 500 is all.
April 18, 2017 at 10:25 pm #62356Anna
MemberAlexandra,
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.
April 18, 2017 at 10:34 pm #62358Alexandra
ParticipantNo problem- thanks so much for all your help.
April 19, 2017 at 12:37 am #62362Daman
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!
-
This reply was modified 6 years, 5 months ago by
Daman.
April 19, 2017 at 1:12 am #62365Alexandra
ParticipantHi Daman
Did you try Anna’s link to GitHub? It definitely works.
April 19, 2017 at 3:19 pm #62425Anna
MemberHello,
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-62403April 19, 2017 at 10:50 pm #62479Daman
ParticipantThanks @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.)
April 19, 2017 at 10:54 pm #62480Anna
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?
April 19, 2017 at 11:02 pm #62484Daman
Participant[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
April 19, 2017 at 11:09 pm #62488Anna
MemberThank you very much- I’ve submitted an issue for these errors.
April 19, 2017 at 11:13 pm #62491Anna
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.
April 20, 2017 at 12:03 am #62503Daman
ParticipantYes, all latest plugins including theme(Flatsome)
WC Free 1.9.10
WC pro 1.4.2
Woo 3.0.3April 20, 2017 at 12:05 am #62505April 20, 2017 at 1:12 am #62511Alexandra
ParticipantI’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.
April 20, 2017 at 1:14 am #62512Alexandra
ParticipantI’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.
April 20, 2017 at 3:30 am #62517Jamie
KeymasterHello,
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.
April 22, 2017 at 10:43 pm #62802Alexandra
ParticipantHi 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.
April 23, 2017 at 1:33 am #62805Daman
ParticipantLuckily 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?
April 23, 2017 at 9:54 pm #62848Anna
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!
May 5, 2017 at 8:21 am #64328Ryan
ParticipantJust 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.5Thanks
Ryan
May 5, 2017 at 8:57 am #64331Ryan
ParticipantI 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.
May 5, 2017 at 6:18 pm #64396Daman
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 OrderMay 6, 2017 at 7:22 pm #64444Anna
MemberI 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.
-
This reply was modified 6 years, 5 months ago by
-
AuthorPosts
- The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.