Checkout Issue
-
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:00The page I need help with: [log in to see the link]
The topic ‘Checkout Issue’ is closed to new replies.