• Resolved arseven25

    (@arseven25)


    Hi,

    I am getting 2 API HTTP calls on my checkout page when I have the plugin activated. The payments are going through well, but these errors increase a few seconds the loading time of the checkout page.

    https://api.stripe.com/v1/customers/cus_JO4QliwgVsKAUX/sources
    Redirected to:
    https://api.stripe.com/v1/customers/cus_JO4QliwgVsKAUX/sources
    ?limit=100

    WC_Stripe_API::request()
    wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:127
    WC_Stripe_Customer->get_sources()
    wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-customer.php:378
    WC_Stripe_Payment_Tokens->woocommerce_get_customer_payment_tokens()
    wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-payment-tokens.php:103
    apply_filters('woocommerce_get_customer_payment_tokens')
    wp-includes/plugin.php:212
    WC_Payment_Tokens::get_customer_tokens()
    wp-content/plugins/woocommerce/includes/class-wc-payment-tokens.php:80
    WC_Payment_Gateway->get_tokens()
    wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php:162
    WC_Payment_Gateway->saved_payment_methods()
    wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php:476
    WC_Gateway_Stripe->payment_fields()
    wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:262
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    woocommerce_checkout_payment()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:2287
    do_action('woocommerce_checkout_order_review')
    wp-includes/plugin.php:484
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    WC_Shortcode_Checkout::checkout()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:293
    WC_Shortcode_Checkout::output()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:67
    WC_Shortcodes::shortcode_wrapper()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:72
    WC_Shortcodes::checkout()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:95
    do_shortcode_tag()
    wp-includes/shortcodes.php:343
    preg_replace_callback()
    wp-includes/shortcodes.php:343
    do_shortcode()
    wp-includes/shortcodes.php:218
    apply_filters('the_content')
    wp-includes/plugin.php:212
    the_content()
    wp-includes/post-template.php:253

    Is it possible to solve these errors? Thank you.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi!

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    That’ll help me see the configuration of your site in case there’s anything we can suggest.

    I’m unable to test this directly from here. However, I’d like to ask you to try a conflict test using a default theme such as Storefront or Twenty Twenty One, to see whether the theme or another plugin may be affecting the checkout page. There are instructions here:

    * https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Let us know how you get on!

    Thread Starter arseven25

    (@arseven25)

    Hi thank so much for your support! ??

    Here is a copy from the status report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://elcarruseldelbebe.es
    Site address (URL): https://elcarruseldelbebe.es
    WC Version: 5.2.2
    REST API Version: ? 5.2.2
    WC Blocks Version: ? 4.7.2
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.1.5
    Log Directory Writable: ?
    WP Version: 5.7.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: es_ES
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.18
    PHP Post Max Size: 260 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.76.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 260 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.2.2
    WC Database Prefix: wpn6_
    Tama?o total de la base de datos: 24.85MB
    Tama?o de los datos de la base de datos: 18.30MB
    Tama?o del índice de la base de datos: 6.55MB
    wpn6_woocommerce_sessions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_woocommerce_order_items: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB
    wpn6_woocommerce_order_itemmeta: Datos: 0.22MB + índice: 0.20MB + Motor InnoDB
    wpn6_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_actionscheduler_actions: Datos: 0.19MB + índice: 0.16MB + Motor InnoDB
    wpn6_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_actionscheduler_logs: Datos: 0.16MB + índice: 0.14MB + Motor InnoDB
    wpn6_cartflows_ca_cart_abandonment: Datos: 0.08MB + índice: 0.02MB + Motor InnoDB
    wpn6_cartflows_ca_email_history: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_cartflows_ca_email_templates: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_cartflows_ca_email_templates_meta: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_commentmeta: Datos: 0.16MB + índice: 0.14MB + Motor InnoDB
    wpn6_comments: Datos: 0.19MB + índice: 0.09MB + Motor InnoDB
    wpn6_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_mailchimp_carts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_mailchimp_jobs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_options: Datos: 2.50MB + índice: 0.16MB + Motor InnoDB
    wpn6_postmeta: Datos: 8.52MB + índice: 3.03MB + Motor InnoDB
    wpn6_posts: Datos: 2.52MB + índice: 0.41MB + Motor InnoDB
    wpn6_rank_math_404_logs: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_rank_math_analytics_gsc: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_rank_math_analytics_objects: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_rank_math_internal_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_rank_math_internal_meta: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_rank_math_redirections: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_rank_math_redirections_cache: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_smush_dir_images: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_termmeta: Datos: 0.08MB + índice: 0.09MB + Motor InnoDB
    wpn6_terms: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB
    wpn6_term_relationships: Datos: 0.08MB + índice: 0.05MB + Motor InnoDB
    wpn6_term_taxonomy: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB
    wpn6_tm_taskmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_tm_tasks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_usermeta: Datos: 0.09MB + índice: 0.03MB + Motor InnoDB
    wpn6_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wpn6_wcpdf_invoice_number: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wc_admin_notes: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wc_gpf_render_cache: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wpn6_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wc_product_meta_lookup: Datos: 0.16MB + índice: 0.33MB + Motor InnoDB
    wpn6_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wfblockediplog: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfblocks7: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wpn6_wfconfig: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfcrawlers: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wffilechanges: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wffilemods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfhits: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wpn6_wfhoover: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wfissues: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_wfknownfilelist: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wflivetraffichuman: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wflocs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wflogins: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wfls_2fa_secrets: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_wfls_settings: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfnotifications: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfpendingissues: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wpn6_wfreversecache: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_wfsnipcache: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wpn6_wfstatus: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_wftrafficrates: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_woocommerce_bundled_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_bundled_items: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_woocommerce_gpf_google_taxonomy: Datos: 1.52MB + índice: 0.00MB + Motor InnoDB
    wpn6_wooshark_reviews_lib: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_woo_shippment_provider: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB
    wpn6_yith_pos_register_sessions: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wpn6_yith_wcwl: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wpn6_yith_wcwl_lists: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wpn6_yoast_prominent_words: Datos: 0.08MB + índice: 0.09MB + Motor InnoDB
    
    ### Post Type Counts ###
    
    attachment: 713
    condition_group: 1
    custom_css: 3
    elementor_library: 5
    global_product_addon: 3
    nav_menu_item: 108
    oembed_cache: 7
    page: 12
    post: 9
    product: 42
    product_variation: 1311
    reviewx: 1
    seedprod: 2
    shop_coupon: 5
    shop_order: 25
    sidebar: 1
    wcssc-cart: 11
    wp_block: 1
    wpcf7_contact_form: 1
    wpdiscuz_form: 1
    yith-pos-receipt: 1
    ywdpd_discount: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (27) ###
    
    Query Monitor: por John Blackbourn – 3.6.7
    Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: por SeedProd – 6.2.1
    Contact Form 7: por Takayuki Miyoshi – 5.4.1
    Cookie Notice & Compliance for GDPR / CCPA: por Hu-manity.co – 2.0.4
    Customer Valoraciones for WooCommerce: por Rese?as de clientes – 4.13
    Disable WooCommerce Bloat: por ospiotr – 2.4.4
    Max Mega Menu: por megamenu.com – 2.9.3
    Perfmatters: por forgemedia – 1.7.0
    Rank Math SEO: por Rank Math – 1.0.63
    Tawk.to Live Chat: por Tawkto – 0.5.4
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 1.16.56
    
    Advanced Shipment Tracking for WooCommerce: por zorem – 3.2.3
    WooCommerce Cart Abandonment Recovery: por CartFlows Inc – 1.2.12
    Save and Share Cart for WooCommerce: por Ankit Gade – 2.0.5
    Variation Swatches for WooCommerce - Pro: por Emran Ahmed – 1.1.16
    Variation Swatches for WooCommerce: por Emran Ahmed – 1.1.17
    ASM Envíos para WooCommerce: por ASM – 1.8.22
    ASM Valora para WooCommerce: por ASM – 1.8.22
    Print Invoice & Delivery Notes for WooCommerce: por Tyche Softwares – 4.6.2
    WooCommerce Stripe Gateway: por WooCommerce – 5.1.0
    WooCommerce Product Add-ons: por WooCommerce – 3.3.1
    WooCommerce Google Product Feed: por Ademti Software Ltd. – 9.6.0
    WooCommerce: por Automattic – 5.2.2
    Wordfence Security: por Wordfence – 7.5.2
    WP-PageNavi: por Lester 'GaMerZ' Chan – 2.93.4
    WP Rocket: por WP Media – 3.8.7
    Smush Pro: por WPMU DEV – 3.8.4
    
    ### Inactive Plugins (3) ###
    
    PW WooCommerce Bulk Edit Pro: por Pimwick
    LLC – 2.281
    
    WP-DBManager: por Lester 'GaMerZ' Chan – 2.80.3
    WP-Optimize - Clean, Compress, Cache: por David Anderson
    Ruhani Rabin
    Team Updraft – 3.1.9
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    db.php: Query Monitor Database Class
    
    ### Must Use Plugins (1) ###
    
    Endurance Page Cache: por Mike Hansen – 2.0.5
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    external (external)
    grouped (grouped)
    pw gift card (pw-gift-card)
    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)
    yith_pos (yith_pos)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Base de la tienda: #11 - /tienda/
    Carrito: #12 - /carrito/
    Finalizar compra: #13 - /checkout/
    Mi cuenta: #14 - /micuenta/
    Términos y condiciones: #14666 - /condicionesgenerales/
    
    ### Theme ###
    
    Name: ShoppingCart
    Version: 1.1.5
    Author URL: https://themefreesia.com
    Child Theme: ? – Si estás modificando WooCommerce en un tema padre que no has creado personalmente
    te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Archive Template: Tu tema tiene un archivo woocommerce.php
    no podrás sobreescribir la plantilla personalizada woocommerce/archive-product.php ya que woocommerce.php tiene prioridad sobre archive-product.php. Esto es intencionado para prevenir problemas de visualización.
    
    Overrides: shoppingcart/woocommerce/emails/customer-completed-order.php
    shoppingcart/woocommerce/emails/customer-on-hold-order.php
    shoppingcart/woocommerce/emails/customer-processing-order.php
    shoppingcart/woocommerce/emails/customer-refunded-order.php
    
    ### WooCommerce Google Product Feed options ###
    
    Google merchant centre product feed: Enabled
    Google merchant centre product review feed: Enabled
    Bing merchant centre feed: Enabled
    Google merchant centre local product inventory feed: Enabled
    Google merchant centre local products feed (legacy): -
    Google merchant centre product inventory feed (legacy): -
    Include variations in feed: Enabled
    Send "item group ID": -
    Expanded schema markup: -
    Debug key: b5fcca19-2d1c-49dc-b95b-18da272d14ff
    
    ### WooCommerce Google Product Feed fields ###
    
    Title: Pre-populates from product product_title.
    Product description: Main product description (full preferred) plus variation description
    Condition: Defaults to "new".
    
    ### Action Scheduler ###
    
    Complete: 547
    Oldest: 2021-05-07 09:28:21 +0200
    Newest: 2021-05-09 12:07:57 +0200
    
    Failed: 4
    Oldest: 2021-02-24 17:20:30 +0100
    Newest: 2021-03-12 16:47:42 +0100
    
    Pending: 2
    Oldest: 2021-05-10 07:25:00 +0200
    Newest: 2021-05-10 12:07:57 +0200
    
    ### Status report information ###
    
    Generated at: 2021-05-09 16:47:59 +02:00
    

    Best Regards.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    Thanks for sending that in.

    Can you also send a screenshot of the redirection you are seeing in the console?

    If you could share a screenshot that shows the problem, that would be helpful. You can upload the screenshot to your media library and share the link with us, or you can use a service like Droplr(https://droplr.com/) or CloudApp(https://www.getcloudapp.com/) to share the image file.

    Thread Starter arseven25

    (@arseven25)

    Hi! thank you for your help!

    There are 2 screenshots that show this redirection. I am using the plugin Query Monitor
    to see them:

    https://prnt.sc/12sk6hq

    https://prnt.sc/12sk9sy

    It is just on the checkout page this redirection.

    When I deactivate the plugin, the message disappears.

    I hope we can find the solution for this because I really love your plugin! ??
    but increasing seconds in the critical moment when the client is decided to pay for the products…, it is a real inconvenience.. ??

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    A few things:

    * This is seen normally because the user account you are logged into has a saved card that doesn’t exist in Stripe any longer. Often, this means you saved a card on your admin account when Stripe was in test mode, and now it’s not there in the live mode.

    * This will only show on your admin account, not with other accounts (the request is made to get info on saved cards when checkout is loaded, and then fails)

    *You can remove all saved cards on your admin account and you should no longer see that message in the checkout at all.

    Thread Starter arseven25

    (@arseven25)

    Hi!

    You’ve nailed it! ??

    It is regarding saved data in test mode on stripe. When I deactivate the save card option in the plugin also disappear the error.

    As you told me, it just happens in my admin account, and with the rest users is fine.

    Thank you for your great support to help me to understand the issue.

    Best regards.

    You’re very welcome @arseven25! I’m glad we were able to help you resolve the issue. Don’t hesitate to reach out again if you have any further questions!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 not found WC_Stripe_API::request()’ is closed to new replies.