Home Forums WC Vendors Free Support Getting error: No state field listed in checkout

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #62392
    Greta
    Participant

    To reproduce this error:

    1. Go to http://moonbreezegerbils.com/vendors/austin-online-shop/
    2. Choose an item and place it in the cart and then click Check Out on the right
    3. You will be directed to http://moonbreezegerbils.com/checkout/
    4. Scroll down where you must enter your billing information and address, and you will notice that the field for State is missing completely.

    This is causing massive problems for my customers and causing a 500 internal error when they try to check out. I am not able to process any payments and nothing is appearing in PayPal for me.

    Help!

    #62435
    Anna
    Member

    Hello,

    @savaena

    Please start here: temporarily switch to the Storefront theme, and see if the State field is present.

    Your theme has a ton of outdated templates that they have overridden, and WooCommerce made a lot of changes for their version 3.0 update.

    If the issue is still present after switching to Storefront, then please try deactivating all plugins except WooCommerce and WC Vendors , then test.

    Let me know..

    #62641
    Greta
    Participant

    Hi Anna,

    I used the Store front theme and was able to select my state field, so I was able to determine it was a theme issue.

    I spoke with the theme developers and we updated the theme and the corresponding woo commerce theme files. After testing, I can now use my theme and see the state field at check out. thank you!

    We have run into another problem, however, with our Adaptive Payments system. We are getting a 500 Internal Server error every time someone tries to check out. It should be noted that we are ONLY using Adaptive Payments PayPal and all other payment options (including PayPal standard) are disabled.

    Here is what I have found so far. I was getting the PHP Log error:

    PHP Fatal error: Cannot redeclare class OAuthDataStore in /home/fabianscott8/public_html/wp-content/plugins/wc-vendors/classes/gateways/PayPal_AdvPayments/PayPal_AP/classes/adaptivepayments-sdk/lib/auth/PPAuth.php on line 825

    I went to line 825 and found this:

    // if ( !class_exists( ‘OAuthDataStore’ ) ) { // If you experience clashes with other OAuthDataStore classes, uncommenting this line and the closing curly brace
    // at the end of the class declaration MAY help you.
    class OAuthDataStore
    {
    function lookup_consumer( $consumer_key )
    {
    // implement me
    }

    function lookup_token( $consumer, $token_type, $token )
    {
    // implement me
    }

    function lookup_nonce( $consumer, $token, $nonce, $timestamp )
    {
    // implement me
    }

    function new_request_token( $consumer, $callback = null )
    {
    // return a new token attached to this consumer
    }

    function new_access_token( $token, $consumer, $verifier = null )
    {
    // return a new access token attached to this consumer
    // for the user associated with this token if the request token
    // is authorized
    // should also invalidate the request token
    }

    }
    // } // This is the curly brace to uncomment

    Sooo I went ahead and uncommented the } and saved the file and re-uploaded it to the WC Vendor plugin directory which is home/cmgerbil/public_html/wp-content/plugins/wc-vendors/classes/gateways/PayPal_AdvPayments/PayPal_AP/classes/adaptivepayments-sdk/lib/auth/PPAuth.php

    After refreshing and trying a test payment again at the check out page, I am STILL getting a 500 Internal Error. The PHP error log is now showing this:

    PHP Parse error: syntax error, unexpected ‘}’ in /home/cmgerbil/public_html/wp-content/plugins/wc-vendors/classes/gateways/PayPal_AdvPayments/PayPal_AP/classes/adaptivepayments-sdk/lib/auth/PPAuth.php on line 856

    THAT IS THE EXACT LINE I JUST UNCOMMENTED!

    } // This is the curly brace to uncomment

    PayPal and my host provider and my theme provider have updated everything and all my permissions are working correctly. PLEASE PLEASE help me fix this. I’ve already lost 4 customers this week and we are a very small business so that is a HUGE loss for us. HELP!

    Here is the lastest WOO COMMERCE STATUS REPORT:

    
    ### WordPress Environment ###
    
    Home URL: http://moonbreezegerbils.com
    Site URL: http://moonbreezegerbils.com
    WC Version: 3.0.4
    Log Directory Writable: ✔
    WP Version: 4.7.4
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.30
    PHP Post Max Size: 8 MB
    PHP Time Limit: 90
    PHP Max Input Vars: 1000
    cURL Version: 7.53.1
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.35
    Max Upload Size: 8 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.0.4
    WC Database Prefix: wp_
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ✔
    
    ### Security ###
    
    Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (21) ###
    
    LayerSlider WP: by Kreatura Media – 6.3.0
    Breedr: by Lazhar Ichir – 1.52
    CMSMasters Contact Form Builder: by cmsmasters – 1.3.3
    CMSMasters Content Composer: by cmsmasters – 1.5.0
    CMSMasters Mega Menu: by cmsmasters – 1.2.4
    Contact Form 7 MailChimp Extension: by Renzo Johnson – 0.4.43
    Contact Form 7: by Takayuki Miyoshi – 4.7
    Custom Facebook Feed: by Smash Balloon – 2.4.5
    Duplicate Post: by Enrico Battocchi – 3.2
    Error Log Monitor: by Janis Elsts – 1.5.2
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 6.1.7
    Members: by Justin Tadlock – 1.1.3
    Slider Revolution: by ThemePunch – 5.4.3
    The Events Calendar: by Modern Tribe
    Inc. – 4.4.5
    
    TinyMCE Advanced: by Andrew Ozz – 4.4.3
    User Menus: by Jungle Plugins – 1.1.2
    Visitors Online by BestWebSoft: by BestWebSoft – 1.0.0
    WC Vendors: by WC Vendors – 1.9.10
    WooCommerce: by Automattic – 3.0.4
    Yoast SEO: by Team Yoast – 4.6
    YITH Custom Login: by YITHEMES – 1.1.3
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #2137 - /online-shop/
    Cart: #2138 - /cart/
    Checkout: #2139 - /checkout/
    My account: #2140 - /my-account/
    
    ### Theme ###
    
    Name: Pet Rescue
    Version: 1.1.8
    Author URL: http://cmsmasters.net/
    Child Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: pet-rescue/woocommerce/archive-product.php
    pet-rescue/woocommerce/checkout/form-shipping.php
    pet-rescue/woocommerce/checkout/thankyou.php
    pet-rescue/woocommerce/content-product.php
    pet-rescue/woocommerce/content-single-product.php
    pet-rescue/woocommerce/content-widget-product.php
    pet-rescue/woocommerce/global/sidebar.php
    pet-rescue/woocommerce/global/wrapper-end.php
    pet-rescue/woocommerce/global/wrapper-start.php
    pet-rescue/woocommerce/loop/loop-start.php
    pet-rescue/woocommerce/loop/pagination.php
    pet-rescue/woocommerce/single-product/meta.php
    pet-rescue/woocommerce/single-product/product-image.php
    pet-rescue/woocommerce/single-product/product-thumbnails.php
    pet-rescue/woocommerce/single-product/review.php
    pet-rescue/woocommerce/single-product/tabs/tabs.php
    pet-rescue/woocommerce/single-product-reviews.php
    pet-rescue/woocommerce/single-product.php
    
    
    #62683
    Anna
    Member

    @savaena
    I am glad to hear that your theme author worked with you to get everything updated!
    I will see if I can get some answers for you regarding the paypal issue.

    #62697
    Jamie
    Keymaster

    Hello

    The Oauth issue is usually another plugin (social logins) that is conflicting due to how they have declared it. Please try this replacement file.

    https://gist.github.com/digitalchild/77079010da0f9a711916fd1fc5c9515b

    cheers,

    Jamie.

    #63747
    Greta
    Participant

    I tried this and for about a week there were no issues. I am now getting the following error again:

    PHP Fatal error: Cannot redeclare class OAuthDataStore in /home/cmgerbil/public_html/wp-content/plugins/wc-vendors/classes/gateways/PayPal_AdvPayments/PayPal_AP/classes/adaptivepayments-sdk/lib/auth/PPAuth.php on line 825

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