Home Forums WC Vendors Pro Support Internal Server Error

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
  • #62558
    Azaniah Israel
    Participant

    I noticed my recent orders are all in a pending payment status.

    Upon further investigation I noticed that when trying to complete the purchase at check out i get an Internal Sever Error.

    To trouble shoot i deactivated wcvendors pro and the payment went through. When I activated it back, I received the error again.

    This began after I upgraded to the latest version of WC vendors Pro to work on another support topic i have open for shipping.

    #62585
    Anna
    Member

    Hello,
    Jamie just fixed this, I believe.
    Please replace line 450 in admin/class-wcvendors-pro-commission-controller.php with this:
    https://gist.github.com/digitalchild/0fba03355b9d93aae2dfaa83251cba7a#file-file-php

    And test–

    #62595
    Azaniah Israel
    Participant

    after making this change I now receive
    SyntaxError: Invalid character

    I no longer have the original code to revert back to.

    #62597
    Azaniah Israel
    Participant

    i ca no longer complete a sale

    #62599
    Azaniah Israel
    Participant

    SyntaxError: Unexpected token < in JSON at position 0

    #62644
    Glenn Carlson
    Participant

    I am also having this error and unfortunately, lost an order cause of it. Did the fix above work?

    #62647
    Anna
    Member

    @sfjteam Sirach Consulting

    Did you DELETE line 450 in this file:
    wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-commission-controller.php
    DELETE this line, that looks like this– should be line #450:

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

    Then REPLACE it with this line:
    https://gist.github.com/digitalchild/0fba03355b9d93aae2dfaa83251cba7a#file-file-php

    #62655
    Glenn Carlson
    Participant

    Anna, this worked for me! I’m not a software person by trade so I always want to be extra sure of changes in code I am making. WCV FTW!

    #62675
    Anna
    Member

    @glenngsxr
    Sweet! Glad it worked.
    It’ll be in our next update that we release once we’ve worked through a few more issues. 🙂

    #62708
    Azaniah Israel
    Participant

    Yes I did replace the code. It seems to allow the order to go through but it takes an extremely long time for it to complete. It spins for 5 minutes before finally giving the order confirmation page.

    #62944
    Azaniah Israel
    Participant

    I think this is working for me now.

    #62945
    Azaniah Israel
    Participant

    The only problem is it sometimes takes an extremely long time to complete.

    #63891
    bert eelen
    Participant

    This code on line 450 resolved the Internal Server problem that I encountered with the Pro version

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

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.