Home Forums Basel support forum Basel templates break Stripe at checkout

Basel templates break Stripe at checkout

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #63358

    sovrgn
    Participant

    Hello,

    I just talked to Woocommerce support and we figured out I’m getting the following issue with Basel theme and some file that you are apparently modifying for checkout (all is fine with twenty seventeen).

    Basically when paying at checkout with the Stripe test credit card (and my test API keys) I get these 2 error messages

    –> Payment processing failed. Please retry.
    –> Sorry, your session has expired. Return to shop

    So then I return to the shop and add a product again and then I get these error messages at checkout page:

    Fatal error: Uncaught Error: Unsupported operand types in /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1267 Stack trace: #0 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(344): WC_Cart->calculate_shipping() #1 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(800): WC_Cart_Totals->get_shipping_from_cart() #2 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(141): WC_Cart_Totals->calculate_shipping_totals() #3 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate() #4 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1236): WC_Cart_Totals->__construct(Object(WC_Cart)) #5 /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(140): WC_Cart->calculate_totals() #6 /home/domain/public_html/wp-includes/c in /home/domain/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1267

    (to clear the error and try again I just clear my browser cache)

    Woocommerce support said they will contact you about it but I would like to follow up with this too since it makes my site unusable at this time

    Please see in private section admin rights to my site

    #63363

    Hello,

    Please activate our theme. Now the default one is active. Also, activate all the plugins in Appearance > Install the plugins

    Best regards

    #63365

    sovrgn
    Participant

    Hi,

    Activated the plugins and tested with Basel theme. Error still happening.
    Note I gave you admin access

    Feel free to test

    Thanks

    #63381

    Hello,

    I have tested the checkout and after I pressed payment the order was complete https://screenshots.firefox.com/73knd961pVIgIvmv/www.mollie.com

    Then I went to the default theme and this error appeared. http://prntscr.com/jw0vfu
    No matter what theme I switch to this error is on the front end.

    Best Regards

    #63389

    sovrgn
    Participant

    Sorry but can you share a recording of this as I just don’t understand what you mean. Also I mentioned I used Stripe and you tested with Mollie payment gateway…

    When I tested with twenty seven I didn’t get these error messages. Also I use a caching plugin so it’s likely after you changed the theme that you just got the cached pages

    Please confirm you can reproduce this issue with Twenty seven, otherwise it’s coming from the templates you are using for checkout and processing the order:

    basel/woocommerce/archive-product.php,
    basel/woocommerce/cart/cart.php,
    basel/woocommerce/cart/cross-sells.php,
    basel/woocommerce/cart/mini-cart.php,
    basel/woocommerce/checkout/form-checkout.php,
    basel/woocommerce/content-product.php,
    basel/woocommerce/content-product_cat.php,
    basel/woocommerce/content-single-product.php,
    basel/woocommerce/global/breadcrumb.php,
    basel/woocommerce/global/form-login.php,
    basel/woocommerce/global/quantity-input.php,
    basel/woocommerce/loop/loop-end.php,
    basel/woocommerce/loop/loop-start.php,
    basel/woocommerce/loop/no-products-found.php,
    basel/woocommerce/loop/orderby.php,
    basel/woocommerce/loop/pagination.php,
    basel/woocommerce/loop/sale-flash.php,
    basel/woocommerce/myaccount/form-login.php,
    basel/woocommerce/myaccount/navigation.php,
    basel/woocommerce/product-searchform.php,
    basel/woocommerce/single-product/add-to-cart/variable.php,
    basel/woocommerce/single-product/meta.php,
    basel/woocommerce/single-product/product-image.php,
    basel/woocommerce/single-product/product-thumbnails.php,
    basel/woocommerce/single-product/related.php,
    basel/woocommerce/single-product/sale-flash.php,
    basel/woocommerce/single-product/tabs/tabs.php,
    basel/woocommerce/single-product/title.php,
    basel/woocommerce/single-product/up-sells.php,
    basel/woocommerce/single-product.php

    #63399

    Artem Temos
    Keymaster

    Currently, there are three problems that don’t allow us to test your website.

    1. We can’t find any products in stock to purchase. Please, send us a link to the product where we can test it.

    2. You have cache plugins that keep your cart and checkout pages in the cache. It is not possible to update theme. Even with default WordPress theme.

    3. There is no Stripe checkout activated and we don’t see any errors you mentioned.

    Please, provide us with a step by step instruction how can we reproduce the issue on your website. It is not possible to test it now.

    #64915

    sovrgn
    Participant

    Hello,

    1- Please see in private the link of a product you can buy
    2- Cache has been reworked and is now deactivated in logged in areas
    3- Please use the new user details in private that I just created and checked Stripe is activated for them

    To reproduce please:
    A- add to the cart the product I sent you the link of
    B- Go to checkout and add as Billing address: Country = France, postcode = 75001, City = Paris and untick the box ‘Deliver to a different address?’
    C- Select as payment method ‘Credit Card (Stripe)’ and use the credit card numbers in the description

    Finally I see this query in my page main shop page wp-content/themes/coffeescripts/jquery.nanoscroller.coffee – Is your theme requesting it? Because this gives a 404 error and takes 857ms to time out – which is as much delay it gives my website to complete loading

    Thanks

    #64972

    Artem Temos
    Keymaster

    Please, disable all external plugins that are not related to our theme and switch to parent theme so we can test it.

Viewing 8 posts - 1 through 8 (of 8 total)