• Resolved yz250chickwporg

    (@yz250chickwporg)


    My checkout page is not working for the payment information. I’ve been working on this for a week now.

    *** This is what Woocommerce said: What We Found
    I checked the browser console on Checkout page and console is reporting this error:

    Uncaught ReferenceError: wc_add_to_cart_params is not defined

    This error means that essential WooCommerce JavaScript isn’t loading properly, which directly impacts checkout — including the spinning payment section.

    This is one of the common issues that happen due to some conflict caused by a plugin/theme and or caching/optimizing configuration. ***

    I have done all the troubleshooting they recommended below with no luck. No change in the error. This is a secondary (add-on) web site hosted at InMotion Hosting.

    1. Temporarily Disable SpeedyCache
    This plugin can optimize JS/CSS, but might be deferring or minifying WooCommerce scripts incorrectly.
    ✅ Try deactivating it and then visit your checkout page in an incognito window.

    2. Test With Default Theme (Optional but Helpful)
    Use the free Health Check & Troubleshooting plugin or Check Conflicts to activate a default theme like Storefront or Twenty Twenty-Four in Troubleshooting Mode.

    This lets you test without affecting your live site and helps isolate whether your theme (Astra) is causing the JS conflict.

    3. Check Theme Code (Advanced)
    If you’re customizing your theme, confirm that these two WordPress functions are present:

    • In header.php: <?php wp_head(); ?>
    • In footer.php: <?php wp_footer(); ?>They’re required for scripts to load correctly.

    4. Clear All Caches

    Here is my system status report:

    System Status Report

    ### WordPress Environment ###

    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.8.4
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ✔ 3.9.2
    Log Directory Writable: ✔
    WP Version: 6.8.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.3.19
    PHP Post Max Size: 512 MB
    PHP Time Limit: 90
    PHP Max Input Vars: 6200
    cURL Version: 7.61.1
    OpenSSL/1.1.1k

    SUHOSIN Installed: –
    MySQL Version: 10.6.21-MariaDB-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    [REDACTED]

    ### Post Type Counts ###

    attachment: 161
    custom_css: 1
    nav_menu_item: 9
    page: 17
    product: 12
    product_variation: 8
    revision: 107
    wpforms: 1
    wp_font_face: 36
    wp_font_family: 12
    wp_global_styles: 3
    wp_navigation: 2

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (23) ###

    Starter Templates: by Brainstorm Force – 4.4.19
    Bing Webmaster Url Submission: by Bing Webmaster – 1.0.13
    Checkout Plugins - Stripe for WooCommerce: by Checkout Plugins – 1.10.1
    USPS Live Rates: by Octolize – 3.0.4
    XML Sitemap Generator for Google: by Auctollo – 4.1.21
    Jetpack: by Automattic – 14.6
    Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.26.19
    Payment Plugins for PayPal WooCommerce: by Payment Plugins
    [email protected] – 1.1.2

    SpeedyCache: by Softaculous Team – 1.3.4
    Spectra: by Brainstorm Force – 2.19.9
    Advanced Order Export For WooCommerce: by AlgolPlus – 4.0.2
    Orders Tracking for WooCommerce: by VillaTheme – 1.2.14
    WooCommerce.com Update Manager: by Automattic – 1.0.3
    WooCommerce Stripe Gateway: by Stripe – 9.4.1
    WooPayments: by WooCommerce – 9.3.0
    WooCommerce Tax: by WooCommerce – 3.0.0
    WooCommerce Shipping: by WooCommerce – 1.6.7
    WooCommerce: by Automattic – 9.8.4
    StoreCustomizer: by Kaira – 2.6.1
    Yoast SEO: by Team Yoast – 25.0
    WP Mail Logging: by WP Mail Logging Team – 1.14.0
    WP Mail SMTP: by WP Mail SMTP – 4.4.0
    WPForms Lite: by WPForms – 1.9.5.2

    ### Inactive Plugins (0) ###


    ### Dropin Plugins () ###

    advanced-cache.php: advanced-cache.php

    ### Settings ###

    Legacy 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)

    Connected to WooCommerce.com: ✔
    Enforce Approved Product Download Directories: ✔
    HPOS feature enabled: ✔
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ✔
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 44 KB

    ### WC Pages ###

    Shop base: #314 - /shop/
    Cart: #315 - /cart/ - Contains the woocommerce_cart shortcode
    Checkout: #316 - /checkout/ - Contains the woocommerce_checkout shortcode
    My account: #317 - /my-account/ - Contains the [woocommerce_my_account] shortcode
    Terms and conditions: #1622 - /terms/

    ### Theme ###

    Name: Astra
    Version: 4.11.0
    Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    Theme type: Classic theme
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: –

    ### WooCommerce Stripe Payment Gateway ###

    Version: 9.4.1
    Account ID: acct_1QMwyCGdZOcpU5BV
    Account Email: [email protected]
    Test Mode Enabled: ✔
    No
    OAuth Connected: ✔
    Yes
    Legacy Checkout Experience: ✔
    No
    Enabled Payment Methods: card,link
    Express Checkout: ✔
    Enabled (cart,checkout)
    Auth and Capture: ✔
    Yes
    Logging: No

    ### WooPayments ###

    Version: 9.3.0
    Connected to WPCOM: Yes
    WPCOM Blog ID: 239139721
    Account ID: acct_1QMwjMCEnqzutA7h
    Payment Gateway: Enabled
    Test Mode: Disabled
    Enabled APMs: card,link
    WooPay: Disabled
    WooPay Incompatible Extensions: No
    Apple Pay / Google Pay: Disabled
    Fraud Protection Level: advanced
    Enabled Fraud Filters: AVS Verification,International IP Address,IP Address Mismatch,Purchase Price Threshold
    Multi-currency: Enabled
    Auth and Capture: Disabled
    Documents: Disabled
    Logging: Disabled

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    add-to-cart-with-options-stepper-layout

    Disabled Features: product-data-views
    experimental-blocks
    coming-soon-newsletter-template
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    use-wp-horizon
    blockified-add-to-cart

    Daily Cron: ✔ Next scheduled: 2025-05-08 19:38:00 -07:00
    Options: ✔
    Notes: 43
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 231
    Oldest: 2025-04-07 17:56:11 +0000
    Newest: 2025-05-08 17:37:58 +0000

    Failed: 6
    Oldest: 2024-12-09 19:56:12 +0000
    Newest: 2025-05-08 17:32:04 +0000

    Pending: 8
    Oldest: 2025-05-09 17:32:03 +0000
    Newest: 2025-05-15 17:32:04 +0000


    ### Status report information ###

    Generated at: 2025-05-08 11:01:57 -07:00

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Zee

    (@doublezed2)

    Hello yz250chickwporg,

    Thank you for contacting WooCommerce support.

    I understand your checkout gets stuck at the payment information stage, and you’ve been working on this for a week.

    I visited your site and saw the same issue. Could you please clarify what you meant by “WooCommerce said”? Have you contacted us through another channel besides this support forum?

    You mentioned testing with a default theme, but I recommend doing a full conflict test by disabling all plugins except WooCommerce and using a default theme to rule out any conflicts. You may enable an offline payment method for test orders.

    If the issue still occurs during testing, please share a screenshot of your browser’s console showing any JavaScript errors. You may use https://snipboard.io to upload images and share links here.

    With this information, I’ll be in a better position to help you move forward. 🙂

    Best regards.

    Thread Starter yz250chickwporg

    (@yz250chickwporg)

    I don’t see any errors on my end. Woo AI chatbot is the agent that determined it was a js error. I have turned off all plugins except for woocommerce, changed theme to the generic ‘storefront’ and get the same hanging issue. I have no way to determine the error because the payment area in the checkout page (short code only, not a block) just hangs. I have deleted all transients, working in a browser with cache turned off, and I have regenerated the woocommerce checkout pages after deleting it. Might you possibly have any possible ideas to try? Thank you for any help with resolving this issue!

    Here is my current info:

    System Status Report

    ### WordPress Environment ###

    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.8.4
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ✔ 3.9.2
    Log Directory Writable: ✔
    WP Version: 6.8.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.3.19
    PHP Post Max Size: 512 MB
    PHP Time Limit: 90
    PHP Max Input Vars: 6200
    cURL Version: 7.61.1
    OpenSSL/1.1.1k

    SUHOSIN Installed: –
    MySQL Version: 10.6.21-MariaDB-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    [REDACTED]

    ### Post Type Counts ###

    attachment: 161
    customize_changeset: 1
    custom_css: 1
    nav_menu_item: 9
    page: 17
    post: 1
    product: 12
    product_variation: 8
    revision: 106
    wpforms: 1
    wp_font_face: 36
    wp_font_family: 12
    wp_global_styles: 3
    wp_navigation: 2

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (1) ###

    WooCommerce: by Automattic – 9.8.4

    ### Inactive Plugins (22) ###

    Advanced Order Export For WooCommerce: by AlgolPlus – 4.0.2
    Bing Webmaster Url Submission: by Bing Webmaster – 1.0.13
    Checkout Plugins - Stripe for WooCommerce: by Checkout Plugins – 1.10.1
    Jetpack: by Automattic – 14.6
    Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.26.19
    Orders Tracking for WooCommerce: by VillaTheme – 1.2.14
    Payment Plugins for PayPal WooCommerce: by Payment Plugins
    [email protected] – 1.1.3

    Spectra: by Brainstorm Force – 2.19.9
    SpeedyCache: by Softaculous Team – 1.3.4
    Starter Templates: by Brainstorm Force – 4.4.19
    StoreCustomizer: by Kaira – 2.6.1
    USPS Live Rates: by Octolize – 3.0.4
    WooCommerce.com Update Manager: by Automattic – 1.0.3
    WooCommerce Shipping: by WooCommerce – 1.6.7
    WooCommerce Stripe Gateway: by Stripe – 9.4.1
    WooCommerce Tax: by WooCommerce – 3.0.0
    WooPayments: by WooCommerce – 9.3.0
    WPForms Lite: by WPForms – 1.9.5.2
    WP Mail Logging: by WP Mail Logging Team – 1.14.0
    WP Mail SMTP: by WP Mail SMTP – 4.4.0
    XML Sitemap Generator for Google: by Auctollo – 4.1.21
    Yoast SEO: by Team Yoast – 25.0

    ### Dropin Plugins () ###

    advanced-cache.php: advanced-cache.php

    ### Settings ###

    Legacy 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)

    Connected to WooCommerce.com: ✔
    Enforce Approved Product Download Directories: ✔
    HPOS feature enabled: ✔
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ✔
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 168 KB

    ### WC Pages ###

    Shop base: #314 - /shop/
    Cart: #315 - /cart/ - Contains the woocommerce_cart shortcode
    Checkout: #1944 - /checkout/ - Contains the woocommerce_checkout shortcode
    My account: #317 - /my-account/ - Contains the [woocommerce_my_account] shortcode
    Terms and conditions: #1622 - /terms/

    ### Theme ###

    Name: Storefront
    Version: 4.6.1
    Author URL: https://woocommerce.com/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    Theme type: Classic theme
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: –

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    add-to-cart-with-options-stepper-layout

    Disabled Features: product-data-views
    experimental-blocks
    coming-soon-newsletter-template
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    use-wp-horizon
    blockified-add-to-cart

    Daily Cron: ✔ Next scheduled: 2025-05-11 19:38:00 -07:00
    Options: ✔
    Notes: 41
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 225
    Oldest: 2025-04-10 23:56:06 +0000
    Newest: 2025-05-11 16:32:35 +0000

    Failed: 6
    Oldest: 2024-12-09 19:56:12 +0000
    Newest: 2025-05-08 17:32:04 +0000

    Pending: 3
    Oldest: 2025-05-11 17:56:07 +0000
    Newest: 2025-05-15 17:32:04 +0000


    ### Status report information ###

    Generated at: 2025-05-11 09:38:53 -07:00
    Thread Starter yz250chickwporg

    (@yz250chickwporg)

    I just found this in the MSEdge browser developer tools window! Have you seen this before or might you know how to resolve this issue?

    POST https://madeinusaway.com/?wc-ajax=update_order_review 406 (Not Acceptable)
    send @ jquery.min.js?ver=3.7.1:2
    ajax @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery-migrate.min.js?ver=3.4.1:2
    e. @ jquery-migrate.min.js?ver=3.4.1:2
    update_checkout_action @ checkout.min.js?ver=9.8.4:1
    setTimeout
    update_checkout @ checkout.min.js?ver=9.8.4:1
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    init_checkout @ checkout.min.js?ver=9.8.4:1
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    init @ checkout.min.js?ver=9.8.4:1
    (anonymous) @ checkout.min.js?ver=9.8.4:1
    e @ jquery.min.js?ver=3.7.1:2
    t @ jquery.min.js?ver=3.7.1:2
    setTimeout
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    fire @ jquery.min.js?ver=3.7.1:2
    c @ jquery.min.js?ver=3.7.1:2
    fireWith @ jquery.min.js?ver=3.7.1:2
    ready @ jquery.min.js?ver=3.7.1:2
    P @ jquery.min.js?ver=3.7.1:2
    Thread Starter yz250chickwporg

    (@yz250chickwporg)

    Oh my God, I think I just figured it out. Appears that it was because Mod Security was ON at my hosting server side. I turned it OFF and my problem has been solved!

    Plugin Support LovingBro (woo-hc)

    (@lovingbro)

    Hi @yz250chickwporg,

    Thank you so much for the update. I’m glad you uncovered the cause and resolved the checkout issue by disabling ModSecurity at your hosting provider’s end. That 406 error can definitely point to a server-level block, so great job narrowing it down!

    If you have a moment, we’d truly appreciate it if you could leave a quick review of WooCommerce here: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

    Your feedback helps us continue improving the experience for store owners like you.

    Wishing you smooth sales and success ahead!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Checkout Issue’ is closed to new replies.