Home Forums WC Vendors Pro Support URGENT: Pro crashes entire site on activation; WC_Order not found

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 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #65085
    DELETE
    Participant

    @digitalchild, @fervous, @ben
    Today, out of the blue, my site crashed with 500 errors raised by WC Vendors Pro. Apparently it cannot find the WC_Order class, which is weird since WooCommerce, WC Vendors Free, and Pro are all installed and activated. Delete the WC Vendors pro plugin, and magically the site works again. I also tried changing line 253 of class-wcvendors-pro-vendor-controller.php from if ( $unique_orders ) { to if ( false && $unique_orders ) {, which also solves the 500 errors (but renders the vendor order list completely useless.

    
    [13-May-2017 16:58:50 UTC] PHP Fatal error:  Uncaught Error: Class 'WC_Order' not found in /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-vendor-controller.php:259
    Stack trace:
    #0 /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-order-controller.php(357): WCVendors_Pro_Vendor_Controller::get_orders2(0, Array, false)
    #1 /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-order-controller.php(122): WCVendors_Pro_Order_Controller->table_rows()
    #2 /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/includes/class-wcvendors-pro.php(95): WCVendors_Pro_Order_Controller->__construct('wcvendors-pro', '1.4.3', false)
    #3 /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/wcvendors-pro.php(100): WCVendors_Pro->__construct()
    #4 /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/wcvendors-pro.php(106): run_wcvendors_pro()
    #5 /Users/avishai/De in /Users/avishai/Dev/mysite-vps/public/wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-vendor-controller.php on line 259
    

    What’s going on? How can it be that it can’t find the WC_Order class?

    #65087
    Anna
    Member

    @avishai
    If you update to WooCommerce v3.0.6 does it correct the issue?

    #65088
    Anna
    Member

    Also..

    mytheme/wc-vendors/dashboard/product-edit.php version 1.3.2 is out of date. The core version is 1.3.10
    mytheme/wc-vendors/dashboard/reports/overview.php version 1.2.3 is out of date. The core version is 1.4.0
    mytheme/wc-vendors/dashboard/store-settings.php version 1.3.3 is out of date. The core version is 1.4.0

    You’ll want to update these ASAP

    #65090
    DELETE
    Participant

    @fervous I just upgraded to WooCommerce v3.0.6 but the problem persists. Any ideas? I’ve seen a few other people have had similar issued on the forums here

    #65129
    DELETE
    Participant

    @digitalchild, @fervous, @ben

    Can someone please look into this as soon as possible? We are going live with our site tomorrow the plugin is causing our vendor dashboard to break.

    #65737
    Gustavo
    Participant

    I’m having the exact same issue (errors) on my website after few vendors try to login.

    FYI – I’ve updated all plugins and core to latest version but still having the same errors.

    Thanks in advance

    #65752
    Anna
    Member

    @devhemendra
    Please open a new forum topic with your WooCommerce System Status included. Then I can better assist you.
    Please give as many details as possible, with screenshots and/or exact copies of the error seen on the page and in your error_log if available.
    Thank you!

    #65760
    WC Vendors Support
    Participant

    We can not look at http://www.wcvendors.com sites.

    And quite frankly, we never would even if we could. Nearly ALL (literally, 98.9123978123 %) issues are fixed by using a real webserver. Your http://www.wcvendors.com is near guaranteed to be missing modules, wrong this or that, so just get yourself a real webhosting account and if we can login to it, we will. Otherwise, all we can do is type sweet nothings to you and tell you all will be well.

    #65761
    Gustavo
    Participant

    @ben it’s not a http://www.wcvendors.com site, as i said we’re live and specifically few vendors getting errors when they login.
    and the error is same as mentioned above.
    if you can share your personal email i can share the site url and login credentials with you.

    #65975
    Anna
    Member

    @devhemendra
    Please open a new forum topic with your WooCommerce System Status included, and you can also add an admin login & password when you opne the topic as well.. we provide fields for this before you submit your topic.
    Then I can better assist you.
    Please give as many details as possible, with screenshots and/or exact copies of the error seen on the page and in your error_log if available.
    Thank you!

    #68557
    DELETE
    Participant

    @digitalchild, @fervous, @ben

    I’ve updated my WooCommerce, WC Vendors free, and Pro all to the latest versions, and still getting this error.

    The only way I was able to get around this piece of code breaking my entire site was to wrap the code that tries to create a new WC_Order with if (class_exists(WC_Order)) { }.

    WC Vendors Pro 500 error

    Can you please take a look at this? I have seen a few other people having the same issue, it appears to be some kind of weird scoping problem specific to this controller. I’ve tried disabling all other plugins, cloning a new version of my repo and reinstalling Pro several different ways, resetting file permissions, etc. so it must have something to do with Pro itself.

    Thanks…

    Avishai

    #68593
    Anna
    Member

    @avishai
    Did you at one time delete orders without reversing the commission?
    If so, you can go to your database and find the pv_commissions table; drop the deleted orders form the pv_commissions table.
    See if that will correct this error.

    #68606
    DELETE
    Participant

    @fervous

    That doesn’t work — I even tried dropping all commissions associated with a specific vendor, and it still doesn’t work. Regardless, the code should handle a missing order correctly. The issue persists regardless of who is logged in, and throws a 500 Internal Server Error when visiting any page on the site, including wp-admin. As in, the entire site breaks and is completely inaccessible.

    My guess is that there’s some kind of premature initialization going on somewhere in WCV…

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.