Support » Plugin: WooCommerce Square » Redirect back to checkout page after Placing Order

  • Resolved dhesse90

    (@dhesse90)


    All of my orders get redirected back to the checkout page. Some of them end up sending emails/go through, but most of them do not. I checked to see if I have any external coding that’s causing the required JS script to defer, but there’s nothing that I see. I also attempted disabling plugins, but no go.

    I’m currently using WooSquare as an alternative, however, half of my orders fail. After reverting back to version 1.0.38 I’ve found that half of them now fail using that version too.

    Please help ASAP. I’m using the Divi theme with PHP 7.3.

    System Status Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.roycerolls.net
    Site address (URL): https://www.roycerolls.net
    WC Version: 3.7.0
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: 5.2.3
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.10
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.0.2t
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.18-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ❌ wp_remote_get() failed. Contact your hosting provider.
    
    ### Database ###
    
    WC Database Version: 3.7.0
    WC Database Prefix: wp_womp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 75.39MB
    Database Data Size: 53.04MB
    Database Index Size: 22.35MB
    wp_womp_woocommerce_sessions: Data: 0.08MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_order_items: Data: 0.30MB + Index: 0.15MB + Engine MyISAM
    wp_womp_woocommerce_order_itemmeta: Data: 1.71MB + Index: 1.26MB + Engine MyISAM
    wp_womp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_akeeba_common: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_ak_params: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_ak_profiles: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_womp_ak_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_ak_storage: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_womp_ak_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_asp_index: Data: 0.25MB + Index: 0.23MB + Engine MyISAM
    wp_womp_caos_webfonts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_caos_webfonts_subsets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_cart_notices: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_comments: Data: 0.58MB + Index: 0.40MB + Engine MyISAM
    wp_womp_dropshipapikey: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_options: Data: 7.63MB + Index: 0.29MB + Engine MyISAM
    wp_womp_phone_orders_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_postmeta: Data: 23.88MB + Index: 7.77MB + Engine MyISAM
    wp_womp_posts: Data: 5.62MB + Index: 3.64MB + Engine MyISAM
    wp_womp_premmerce_search_words: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_womp_termmeta: Data: 0.13MB + Index: 0.08MB + Engine MyISAM
    wp_womp_terms: Data: 0.11MB + Index: 0.16MB + Engine MyISAM
    wp_womp_term_relationships: Data: 0.19MB + Index: 0.35MB + Engine MyISAM
    wp_womp_term_taxonomy: Data: 0.09MB + Index: 0.09MB + Engine MyISAM
    wp_womp_usermeta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    wp_womp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_warehouse: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_customer_lookup: Data: 0.06MB + Index: 0.05MB + Engine MyISAM
    wp_womp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_order_product_lookup: Data: 0.13MB + Index: 0.10MB + Engine MyISAM
    wp_womp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine MyISAM
    wp_womp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wc_product_meta_lookup: Data: 0.03MB + Index: 0.05MB + Engine MyISAM
    wp_womp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfBlockedIPLog: Data: 0.13MB + Index: 0.09MB + Engine MyISAM
    wp_womp_wfBlocks7: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    wp_womp_wfConfig: Data: 1.41MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfFileMods: Data: 2.02MB + Index: 0.42MB + Engine MyISAM
    wp_womp_wfHits: Data: 2.48MB + Index: 0.63MB + Engine MyISAM
    wp_womp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfIssues: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wfKnownFileList: Data: 1.06MB + Index: 0.13MB + Engine MyISAM
    wp_womp_wfLiveTrafficHuman: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wfLocs: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wfLogins: Data: 0.38MB + Index: 0.09MB + Engine MyISAM
    wp_womp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_womp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_womp_wfNotifications: Data: 0.05MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfReverseCache: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wfStatus: Data: 0.13MB + Index: 0.05MB + Engine MyISAM
    wp_womp_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woocommerce_square_customers: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_womp_woo_square_integration_deleted_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_woo_square_integration_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_womp_wps_hit: Data: 0.36MB + Index: 0.81MB + Engine MyISAM
    wp_womp_wps_index: Data: 3.39MB + Index: 4.79MB + Engine MyISAM
    wp_womp_wps_key: Data: 0.10MB + Index: 0.13MB + Engine MyISAM
    wp_womp_wps_object_type: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_womp_wps_query: Data: 0.05MB + Index: 0.07MB + Engine MyISAM
    wp_womp_wps_uri: Data: 0.26MB + Index: 0.12MB + Engine MyISAM
    wp_womp_wps_user_agent: Data: 0.06MB + Index: 0.01MB + Engine MyISAM
    wp_womp_yoast_seo_links: Data: 0.04MB + Index: 0.02MB + Engine MyISAM
    wp_womp_yoast_seo_meta: Data: 0.08MB + Index: 0.07MB + Engine MyISAM
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (31) ###
    
    PDF Embedder Premium: by Lever Technology LLC – 4.3
    Booster Plus for WooCommerce: by Algoritmika Ltd – 4.5.1
    Contact Form 7: by Takayuki Miyoshi – 5.1.4
    Divi Booster: by Dan Mossop – 3.0.2
    Social LikeBox & Feed: by Weblizar – 2.8.7
    CAOS: by Daan van den Bergh – 2.8.0
    OMGF: by Daan van den Bergh – 1.9.8
    LTL Freight Quotes - YRC Edition: by Eniture Technology – 2.1.0 – Not tested with the active version of WooCommerce
    Max Mega Menu - Pro Addon: by megamenu.com – 1.9.1
    Max Mega Menu: by megamenu.com – 2.7.2
    Offers for WooCommerce: by Angell EYE – 1.4.14 – Not tested with the active version of WooCommerce
    Premmerce Product Search for WooCommerce: by premmerce – 2.1.4
    Redirect List: by MembershipWorks – 1.8
    Woocommerce Square Payment Gateway: by Fantastic Plugins – 1.2 – Not tested with the active version of WooCommerce
    WooCommerce Tree Table Rate Shipping: by tablerateshipping.com – 1.20.0
    WooCommerce Mailchimp: by Saint Systems – 2.3.3
    WooCommerce Product Search: by itthinx – 2.17.0
    WooCommerce Reply-to Customer: by Schön.io – 1.1 – Not tested with the active version of WooCommerce
    WooCommerce Shipment Tracking: by WooCommerce – 1.6.15
    WooCommerce UPS Shipping: by WooCommerce – 3.2.17
    WooCommerce USPS Shipping: by WooCommerce – 4.4.31
    WooCommerce Square: by WooCommerce – 2.0.4
    Woocommerce Super Simple Tax Exemption: by Bobbie Wilson – 1.3 – Not tested with the active version of WooCommerce
    WooCommerce UPS Drop Shipping Pro: by IgniteWoo.com – 2.5.9 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.7.0
    Wordfence Security: by Wordfence – 7.4.0
    Yoast SEO Premium: by Team Yoast – 12.1
    WP Fastest Cache Premium: by Emre Vona – 1.5.5
    WP Fastest Cache: by Emre Vona – 0.8.9.8
    Yoast SEO: WooCommerce: by Team Yoast – 12.1
    YITH WooCommerce Multi-step Checkout: by YITH – 1.7.4
    
    ### Inactive Plugins (9) ###
    
    Akeeba Backup for WordPress: by Akeeba Ltd – 3.6.0
    Estimate delivery date for Woocommerce: by PI Websolution – 4.2.6 – Not tested with the active version of WooCommerce
    Jetpack by WordPress.com: by Automattic – 7.8
    Phone Orders for WooCommerce: by AlgolPlus – 3.3.5
    Stop Generating Image Sizes: by Nazmul Ahsan – 2.0.2
    Webcraftic Robin image optimizer: by Webcraftic <wordpress.webraftic@gmail.com> – 1.4.0
    WooCommerce Admin: by WooCommerce – 0.19.0
    WooCommerce Product CSV Import Suite: by WooCommerce – 1.10.28
    WooCommerce Services: by Automattic – 1.21.1
    
    ### Dropin Plugins (1) ###
    
    install.php: install.php
    
    ### Must Use Plugins (2) ###
    
    akeeba-backup-coreupdate.php: by  –
    ET Support Center :: Must-Use Plugins Autoloader: by Elegant Themes –
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: composite (composite)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    yith-composite (yith-composite)
    
    Taxonomies: Product Visibility: exclude_from_catalog (exclude_from_catalog)
    exclude_from_search (exclude_from_search)
    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)
    
    Connected to WooCommerce.com: ✔
    
    ### WC Pages ###
    
    Shop base: #7798 - /shop/
    Cart: #33 - /cart/
    Checkout: #34 - /checkout/
    My account: #7799 - /my-account/
    Terms and conditions: #2925 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Divi plus Schema.org by wp-buddy.com
    Version: 3.5.0
    Author URL: http://wp-buddy.com
    Child Theme: ✔
    Parent Theme Name: Divi
    Parent Theme Version: 3.29.3
    Parent Theme Author URL: http://www.elegantthemes.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Action Scheduler ###
    
    Complete: 1,553
    Oldest: 2019-09-02 13:53:25 +0000
    Newest: 2019-10-03 13:29:52 +0000
    
    Pending: 5
    Oldest: 2019-10-03 14:29:52 +0000
    Newest: 2019-10-07 18:19:13 +0000
    
    Canceled: 1
    Oldest: 2019-10-07 18:19:12 +0000
    Newest: 2019-10-07 18:19:12 +0000
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 3
    Oldest: 2019-04-25 09:17:05 +0000
    Newest: 2019-08-06 20:04:51 +0000
    
    • This topic was modified 2 years, 7 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @dhesse90,

    I understand the customers are adding products to cart, entering their address & credit card details on the checkout page, but then when they click Place Order the whole checkout page just reloads without capturing anything, is that correct?

    Looking at the checkout page at https://www.roycerolls.net/checkout/ it seems that Square scripts might be having troubles with the multi step checkout layout. On the first step when I enter the billing address, I’m seeing the following warning in my browser console:

    ElementNotVisibleError: SqPaymentForm element with id 'wc-square-credit-card-csc-hosted' is not visible. Does it or a parent element have 'display:none'?

    Screenshot: https://cld.wthms.co/2TVT3p

    By the time I reach step 4, there’s also the following error message sent to Square servers:

    "Input height zero detected; using fallback value."

    Screenshot: https://cld.wthms.co/u73xgc

    To see if it’s indeed the multi-step checkout causing our troubles here, can you please go to WooCommerce > Settings > Payments > Square and make sure Debug Mode is set to Save to Log:

    https://cld.wthms.co/p4V4vd

    The next time the problem happens there should be a log file starting with square_credit_card under WooCommerce > Settings > Logs. Please send this file here, i.e. upload it on Dropbox and share the link here. If there are any files starting with fatal-errors, please send these as well.

    Thanks a lot!

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Thank you for the logs! This is interesting. I can see the first two times there is the missing nonce error which in my experience so far could be related to the JavaScript warnings we’ve seen before at checkout:

    
    10-07-2019 @ 10:30:34 – Payment nonce is missing
    10-07-2019 @ 10:30:51 – Payment nonce is missing
    

    However, this is followed by a payment request to which the Square servers only responded with success. If there is any error that prevents us from seeing the Thank You page after successful payment, it must be triggered at a later stage of the process, likely during order setup.

    This problem doesn’t happen on any of our test sites, so we’ll need to check different scenarios in details with minimum plugins active. At the same time, we don’t want to interrupt normal site operation, so the best way to do this will be to create a test copy, where we can experiment without the risk of breaking anything.

    Some hosting providers offer a one-click solution to create a staging site, so you may want to check this with yours. If they don’t, you can create a test copy using a free plugin called WP Staging:

    https://wordpress.org/plugins/wp-staging/

    As soon as you create a staging site, please create an administrator account for woologin@woocommerce.com and open a support ticket at https://woocommerce.com/my-account/create-a-ticket/ so we can test it in details.

    Thanks!

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    modlook – can you please edit the fragment from “billing_address”: until “order_id”: in the logs above just in case?

    Thanks a lot in advance!

    Thread Starter dhesse90

    (@dhesse90)

    I just submitted a ticket. I’m not sure why you’re asking me to modify the information in the log? A number people have inputted different information and are running into the issue.

    Anyway, thank you for following up!

    • This reply was modified 2 years, 7 months ago by dhesse90.
    • This reply was modified 2 years, 7 months ago by dhesse90.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The log reply was archived. There was email address and other information that didn’t need to be in these forums.

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @dhesse90,

    I’m not seeing any support ticket for the site https://www.roycerolls.net or with a link to this forum thread. Can you please let me know the ticket number you got from us? I’d like to make sure we don’t miss it accidentally.

    Thanks a lot!

    Thread Starter dhesse90

    (@dhesse90)

    Sure, it’s 2408091.

    I was told to reach out to Divi. Currently waiting to hear back from them now. This issue has been going on for sometime and is creating a big problem for our online store.

    I appreciate all of the help that you can give.

    Thank you

    Thread Starter dhesse90

    (@dhesse90)

    Well, both Divi and Woocommerce say that it’s the other one’s problem. It’s been very frustrating to be waiting through this and not be able to accept credit cards on our website while I wait for days for each to get back to me. In the last instance, I tried to tell Divi that it doesn’t occur when switching to twentynineteen, however, it does with just Divi, Woocommerce, and Woocommerce Square enabled.

    They responded with a screenshot below, which I sent to Automattic support early this morning, but I haven’t gotten a response in 15 hours so I’m posting here:

    Square-JS-Error

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @dhesse90,

    I hear your frustration. I tested this in details today, and couldn’t reproduce the same error even when using the same Divi version on my site. I can still see it on the test site you’ve set up for us though.

    As the problem still doesn’t happen on my site, there must be some additional factor present here, and we’ll need to add some debugging code on your test site to see what this could be. I’ve sent you detailed instructions in ticket 2408091 about the next steps and assigned it to our escalation team, so that there will be just a few people working on it, all of whom specialize in this type of problems.

    I’m closing this forum thread for now so that we don’t double or lose any information between these two communication channels. The escalation team might take up to 48h on average to respond, but feel free to let me know here if it takes any longer than this.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Redirect back to checkout page after Placing Order’ is closed to new replies.