Stripe ‘Place Order’ button not functioning
-
Hey all, i’m having an issue with getting the payment processing working correctly on a wordpress site.
There seems to be a javascript error triggering that prevents the call from going through when the ‘Place Order’ button is pressed. Same error when the T&Cs checkbox is pressed too. The ‘myDropDown’ var is null.
I can’t locate the origin of this Javascript, but here is a snippet with the error in question:
//for mobile menu /* When the user clicks on the menu icon, toggle between hiding and showing the dropdown content */ function showNav() { document.getElementById("mobileNav").classList.toggle("showmenu"); } // Close the dropdown if the user clicks outside of it window.onclick = function(e) { if (!e.target.matches('.dropNav')) { var myDropdown = document.getElementById("mobileNav"); if (<strong>myDropdown</strong>.classList.contains('show')) { myDropdown.classList.remove('show'); } } }
The var, myDropDown, comes back as null on the getElementById call. The error in the JS console:
JS Console ErrorIt seems to be the theme or WP code for the mobile menu, but i’m unsure where to locate/fix/disable this portion of code. Any help would be appreciated!
The page I need help with: [log in to see the link]
-
Hello,
I could reproduce the issue from my end ?? To better understand this context, can you share a copy of your site’s System Status, please? You can find it under WooCommerce > Status. Select “Get system report” and then “Copy for support”.
Please share a copy of any fatal error log found under WooCommerce > System Status > Logs as well (if any error is found).
Thanks.
Thanks Igor,
Status report:
### WordPress Environment ### WordPress address (URL): https://adelaidecommodorespares.com.au Site address (URL): https://adelaidecommodorespares.com.au WC Version: 6.9.4 REST API Version: ? 6.9.4 WC Blocks Version: ? 8.3.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.3 WP Multisite: – WP Memory Limit: 513 MB WP Debug Mode: – WP Cron: ? Language: en_AU External object cache: – ### Server Environment ### Server Info: Apache/2.4.41 (Ubuntu) PHP Version: 7.4.28 PHP Post Max Size: 513 MB PHP Time Limit: 0 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 8.0.26 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.9.4 WC Database Prefix: wp_ Total Database Size: 72.35MB Database Data Size: 56.60MB Database Index Size: 15.75MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.11MB + Index: 0.13MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_aioseo_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_atum_product_data: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_frmt_form_entry: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_frmt_form_entry_meta: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_frmt_form_views: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_itsec_bans: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_itsec_dashboard_events: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_itsec_lockouts: Data: 1.02MB + Index: 0.14MB + Engine InnoDB wp_itsec_logs: Data: 44.08MB + Index: 13.20MB + Engine InnoDB wp_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_itsec_temp: Data: 1.02MB + Index: 0.19MB + Engine InnoDB wp_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 4.13MB + Index: 0.08MB + Engine InnoDB wp_postmeta: Data: 0.28MB + Index: 0.13MB + Engine InnoDB wp_posts: Data: 4.48MB + Index: 0.13MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wow_mwp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 97 custom_css: 2 customize_changeset: 20 forminator_forms: 1 itsec-dash-card: 12 itsec-dashboard: 2 nav_menu_item: 22 page: 42 post: 22 product: 5 revision: 296 wp_block: 13 wp_global_styles: 3 wpcode: 2 wpforms: 2 wppopups: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (17) ### All-in-One WP Migration: by ServMask – 7.66 iThemes Security: by iThemes – 8.1.3 Classic Editor: by WordPress Contributors – 1.6.2 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5 Forminator: by WPMU DEV – 1.18.2 Site Kit by Google: by Google – 1.84.0 WPCode - Insert Headers, Footers, and Code Snippets: by WPCode – 2.0.3 Jetpack: by Automattic – 11.4 List category posts: by Fernando Briano – 0.87 Permalink Manager Lite: by Maciej Bis – 2.2.20 Shortcodes Ultimate: by Vladimir Anokhin – 5.12.2 Templates Patterns Collection: by ThemeIsle – 1.1.26 Quick View for WooCommerce: by ShapedPlugin – 2.0.7 WooCommerce Stripe Gateway: by WooCommerce – 6.8.0 WP Menu Cart: by WP Overnight – 2.12.1 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce: by Automattic – 6.9.4 (update to version 7.0.0 is available) ### Inactive Plugins (9) ### Akismet Anti-Spam: by Automattic – 5.0.1 ATUM Inventory Management for WooCommerce: by Stock Management Labs? – 1.9.21 Bluehost: by Bluehost – 2.11.1 CTX Feed: by WebAppick – 4.5.3 Facebook for WooCommerce: by Facebook – 2.6.24 Hello Dolly: by Matt Mullenweg – 1.7.2 WP fail2ban: by Charles Lecklider – 4.4.0.8 WPForms Lite: by WPForms – 1.7.7.2 Yoast SEO: by Team Yoast – 19.7.1 ### Must Use Plugins (1) ### SSO: by Garth Mortensen Mike Hansen – 0.4 ### Settings ### API Enabled: – Force SSL: – Currency: AUD ($) 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: ? ### WC Pages ### Shop base: #544 - /online-store/ Cart: #545 - /cart/ Checkout: #546 - /checkout/ My account: #547 - /my-account/ Terms and conditions: #814 - /terms-conditions/ ### Theme ### Name: Neve Version: 3.4.2 (update to version 3.4.3 is available) Author URL: https://themeisle.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 WooCommerce Support: ? ### Templates ### Overrides: neve/woocommerce/product-searchform.php ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-10-25 05:14:44 +09:30 Options: ? Notes: 60 Onboarding: completed ### Action Scheduler ### Complete: 165 Oldest: 2022-09-24 08:49:44 +0000 Newest: 2022-10-24 12:33:19 +0000 Pending: 5 Oldest: 2022-10-25 00:49:20 +0000 Newest: 2022-10-30 02:21:06 +0000 ### Status report information ### Generated at: 2022-10-24 22:09:07 +09:30
There are no errors in the Stripe logs.
Appreciate your help!
Hello,
Thanks for sending the system report.
WC Version: 6.9.4
WC Database Version: 6.9.4
WooCommerce Stripe Gateway: by WooCommerce – 6.8.0As a first step, can you please update your plugins under WooCommerce > plugins?
Also be sure to update the database under WooCommerce > status > tools > update database.
More information is below if you would like to learn more:
https://woocommerce.com/document/how-to-update-woocommerceAfter updating is the issue still present? Let us know.
Hi Igor, i performed the updates as instructed, however, i’m still getting the exact same error ??
Hi there @xazos79 ??
Hi Igor, i performed the updates as instructed, however, i’m still getting the exact same error ??
Indeed, I could reproduce it just now. I understand how frustrating this can be.
Let’s continue with these steps.
1. Temporarily deactivate all plugins except:
* WooCommerce Stripe Gateway
* WooCommerce Shipping & Tax
* WooCommerce2. Try to reproduce the problem again. If the problem is resolved, it’s a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
3. Reactivate your other plugins one by one, testing after each, until you find the one causing conflict.Please let us know how that goes.
- This reply was modified 2 years, 1 month ago by anastas10s. Reason: rephrase
Thanks Pepe, i’ll try this tonight hopefully.
You’re welcome @xazos79 take your time and let us now how that goes!
Thanks all. I’ve found the issue. This plugin was the cause:
https://en-au.www.ads-software.com/plugins/insert-headers-and-footers/Deactivating that and the problem went away.
Thanks for all your help.
Hello @xazos79!
You’re very welcome!
Glad to hear everything is working now. If you have a few minutes, we’d love it if you could leave us a review: https://www.ads-software.com/support/plugin/woocommerce-gateway-stripe/reviews/
Cheers!
- The topic ‘Stripe ‘Place Order’ button not functioning’ is closed to new replies.