• Resolved scottjeter

    (@scottjeter)


    We recently setup payment with Braintree Payments plugin but unable to successfully complete a test purchase. At checkout, we get the following error:

    Cannot read properties of null (reading ‘verifyCard’)

    The logs appear to be sending an empty request but I can’t see why. The following is an example of one of the log entries.

    2024-11-08T21:03:48+00:00 Notice Request environment: production uri: generate data: Array ( ) duration: 0.10464s CONTEXT: {“_legacy”:true}

    2024-11-08T21:03:48+00:00 Notice Response data: eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpGVXpJMU5pSXNJbXRwWkNJNklqSXdNVGd3TkRJMk1UWXRjSEp2WkhWamRHbHZiaUlzSW1semN5STZJbWgwZEhCek9pOHZZWEJwTG1KeVlXbHVkSEpsWldkaGRHVjNZWGt1WTI5dEluMC5leUpsZUhBaU9qRTNNekV4T0RZeU1qZ3NJbXAwYVNJNkltWXlOR0kyWm1VMExURmlOMlV0TkdWaVpDMWlZV1EyTFRBeU5tUXlOekpqTnpNMk9DSXNJbk4xWWlJNkltY3liWEI1T0RKeWNIUTFNbWh3TlhJaUxDSnBjM01pT2lKb2RIUndjem92TDJGd2FTNWljbUZwYm5SeVpXVm5ZWFJsZDJGNUxtTnZiU0lzSW0xbGNtTm9ZVzUwSWpwN0luQjFZbXhwWTE5cFpDSTZJbWN5YlhCNU9ESnljSFExTW1od05YSWlMQ0oyWlhKcFpubGZZMkZ5WkY5aWVWOWtaV1poZFd4MElqcDBjblZsZlN3aWNtbG5hSFJ6SWpwYkltMWhibUZuWlY5MllYVnNkQ0pkTENKelkyOXdaU0k2V3lKQ2NtRnBiblJ5WldVNlZtRjFiSFFpWFN3aWIzQjBhVzl1Y3lJNmUzMTkuYlpBLXAwVkdnRFE3aUdiXzlRNTIzZFNTczRFOXZLT29XLUZDTHVVOEJjY1BVdG5vaXBrc2Y0OG5jYjhXdThwVmJ3TEVBRlgydVdYbHlMbHVGS3pvbXciLCJjb25maWdVcmwiOiJodHRwczovL2FwaS5icmFpbnRyZWVnYXRld2F5LmNvbTo0NDMvbWVyY2hhbnRzL2cybXB5ODJycHQ1MmhwNXIvY2xpZW50X2FwaS92MS9jb25maWd1cmF0aW9uIiwiZ3JhcGhRTCI6eyJ1cmwiOiJodHRwczovL3BheW1lbnRzLmJyYWludHJlZS1hcGkuY29tL2dyYXBocWwiLCJkYXRlIjoiMjAxOC0wNS0wOCIsImZlYXR1cmVzIjpbInRva2VuaXplX2NyZWRpdF9jYXJkcyJdfSwiY2xpZW50QXBpVXJsIjoiaHR0cHM6Ly9hcGkuYnJhaW50cmVlZ2F0ZXdheS5jb206NDQzL21lcmNoYW50cy9nMm1weTgycnB0NTJocDVyL2NsaWVudF9hcGkiLCJlbnZpcm9ubWVudCI6InByb2R1Y3Rpb24iLCJtZXJjaGFudElkIjoiZzJtcHk4MnJwdDUyaHA1ciIsImFzc2V0c1VybCI6Imh0dHBzOi8vYXNzZXRzLmJyYWludHJlZWdhdGV3YXkuY29tIiwiYXV0aFVybCI6Imh0dHBzOi8vYXV0aC52ZW5tby5jb20iLCJ2ZW5tbyI6Im9mZiIsImNoYWxsZW5nZXMiOlsicG9zdGFsX2NvZGUiXSwidGhyZWVEU2VjdXJlRW5hYmxlZCI6ZmFsc2UsImFuYWx5dGljcyI6eyJ1cmwiOiJodHRwczovL2NsaWVudC1hbmFseXRpY3MuYnJhaW50cmVlZ2F0ZXdheS5jb20vZzJtcHk4MnJwdDUyaHA1ciJ9LCJ

    I’m on the latest version of WordPress (6.6.2), Woocomerce (9.3.3) and Braintree for WooCommerce Payment Gateway (3.2.2). Payments are working with the default theme (Twenty Twenty-Four), so the issue does appear to be related to my custom theme but I’m not sure how. I’m not altering the checkout in any way. I can apply a fix for this theme if I can find what’s causing the issue.

    I’ve tied clearing the website caches without any luck, including disabling the cache plugins. I’ve also tried disabling several components of the theme to narrow my focus but nothing makes a difference.

    I’m hoping you can help point me in the right direction.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter scottjeter

    (@scottjeter)

    System Report

    WordPress Environment<br><br>WordPress address (URL): https://alssnowmobile.root802.com<br>Site address (URL): https://alssnowmobile.root802.com<br>WC Version: 9.3.3<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.8.2<br>Log Directory Writable: ?<br>WP Version: 6.6.2<br>WP Multisite: –<br>WP Memory Limit: 500 MB<br>WP Debug Mode: ?<br>WP Cron: ?<br>Language: en_US<br>External object cache: ? Server Environment<br><br>Server Info: nginx/1.26.2<br>PHP Version: 8.2.23<br>PHP Post Max Size: 201 MB<br>PHP Time Limit: 600<br>PHP Max Input Vars: 1000<br>cURL Version: 8.5.0<br>OpenSSL/3.0.8<br><br>SUHOSIN Installed: –<br>MySQL Version: 8.0.36<br>Max Upload Size: 200 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.3.3<br>WC Database Prefix: wp_<br>Total Database Size: 23066.86MB<br>Database Data Size: 6808.20MB<br>Database Index Size: 16258.66MB<br>wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.13MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 1.63MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>_amazonLog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>_critSendLog: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>color_map: Data: 0.06MB + Index: 0.08MB + Engine InnoDB<br>compiled_clothing_accessories: Data: 11.52MB + Index: 0.00MB + Engine InnoDB<br>fitment_data: Data: 3478.00MB + Index: 10381.92MB + Engine InnoDB<br>size_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>source_site_model: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>source_site_products: Data: 209.86MB + Index: 29.14MB + Engine InnoDB<br>source_site_products_latest: Data: 214.88MB + Index: 29.16MB + Engine InnoDB<br>source_site_vendors: Data: 4.52MB + Index: 3.03MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 23.05MB + Index: 25.19MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 19.05MB + Index: 12.03MB + Engine InnoDB<br>wp_admin_columns: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_admin_search__searches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_codes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_codes_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_dimension: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_fields_matching: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_files: Data: 0.19MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_shortcodes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_template_to_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_gen2_user_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_cart: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_cart_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_interface: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_locations_tree: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_barcode_scanner_posts: Data: 42.59MB + Index: 11.98MB + Engine InnoDB<br>wp_barcode_scanner_posts_columns: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_posts_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_barcode_scanner_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_ced_ebay_bulk_upload: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_ced_ebay_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_comments: Data: 0.48MB + Index: 0.80MB + Engine InnoDB<br>wp_facetwp_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_facetwp_index: Data: 153.55MB + Index: 222.98MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_options: Data: 16.19MB + Index: 4.36MB + Engine InnoDB<br>wp_postmeta: Data: 1287.95MB + Index: 3507.61MB + Engine InnoDB<br>wp_posts: Data: 158.63MB + Index: 176.11MB + Engine InnoDB<br>wp_searchwp_index: Data: 849.00MB + Index: 1494.94MB + Engine InnoDB<br>wp_searchwp_log: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>wp_searchwp_status: Data: 12.52MB + Index: 17.48MB + Engine InnoDB<br>wp_searchwp_tokens: Data: 31.56MB + Index: 61.67MB + Engine InnoDB<br>wp_swpext_metrics_clicks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_swpext_metrics_ids: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_swpext_metrics_meta: Data: 0.06MB + Index: 0.08MB + Engine InnoDB<br>wp_swpext_metrics_queries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_swpext_metrics_searches: Data: 0.05MB + Index: 0.08MB + Engine InnoDB<br>wp_term_relationships: Data: 120.48MB + Index: 109.80MB + Engine InnoDB<br>wp_term_taxonomy: Data: 5.52MB + Index: 6.53MB + Engine InnoDB<br>wp_termmeta: Data: 24.58MB + Index: 33.61MB + Engine InnoDB<br>wp_terms: Data: 3.52MB + Index: 5.97MB + Engine InnoDB<br>wp_usermeta: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.11MB + Index: 0.08MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.23MB + Index: 0.34MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.11MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.11MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.09MB + Index: 0.08MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.20MB + Index: 0.31MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 4.52MB + Index: 5.00MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 1.28MB + Index: 0.44MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 26.55MB + Index: 38.61MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wcf_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wcf_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wcf_index: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpforms_entries: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>wp_wpforms_entry_fields: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wp_wpforms_tasks_meta: Data: 0.11MB + Index: 0.00MB + Engine InnoDB<br>wp_wpie_template: Data: 0.11MB + Index: 0.00MB + Engine InnoDB<br>wp_yoast_indexable: Data: 92.64MB + Index: 64.30MB + Engine InnoDB<br>wp_yoast_indexable_hierarchy: Data: 9.52MB + Index: 11.55MB + Engine InnoDB<br>wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB Post Type Counts<br><br>acf-field: 50<br>acf-field-group: 8<br>acf-post-type: 2<br>acf-taxonomy: 4<br>attachment: 231893<br>da_image: 1<br>nav_menu_item: 12<br>oembed_cache: 2<br>page: 15<br>post: 2<br>product: 212751<br>product_variation: 2823<br>revision: 146<br>shop_order: 1<br>shop_order_placehold: 686<br>vendor: 239<br>warehouse: 8<br>wc_conditional_fee: 1<br>wcpa_pt_forms: 1<br>wp_font_face: 33<br>wp_font_family: 12<br>wp_global_styles: 1<br>wp_navigation: 1<br>wp_template: 3<br>wpforms: 2 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (27)<br><br>Advanced Custom Fields PRO: by WP Engine – 6.3.10<br>Barcode Generator - create barcodes for products, orders, emails - (business): by UkrSolution – 2.0.2<br>Barcode Scanner with Inventory & Order Manager - (business): by UkrSolution – 1.6.5<br>WP Sheet Editor - Taxonomy Terms: by WP Sheet Editor – 1.7.17<br>Delete Expired Transients: by WebAware – 2.0.7<br>Draw Attention: by N Squared – 2.0.28<br>eBay Integration for Woocommerce: by CedCommerce – 3.5<br>Widget Options - Extended: by Widget Options Team – 5.1.6<br>FacetWP - Cache: by FacetWP<br>LLC – 1.7<br><br>FacetWP - Submit button: by FacetWP<br>LLC – 0.4<br><br>FacetWP: by FacetWP<br>LLC – 4.3.3<br><br>Index WP MySQL For Speed: by Oliver Jones<br>Rick James – 1.5.2<br><br>Members: by MemberPress – 3.2.10<br>SearchWP Live Ajax Search: by SearchWP<br>LLC – 1.8.3<br><br>SearchWP WooCommerce Integration: by SearchWP – 1.3.12<br>SearchWP: by SearchWP – 4.3.17<br>Temporary Login Without Password: by StoreApps – 1.8.3<br>W3 Total Cache: by BoldGrid – 2.7.7<br>Extra Fees Plugin for WooCommerce: by theDotstore – 4.1.1<br>WooCommerce Custom Product Addons Free: by Acowebs – 3.0.12<br>WooCommerce.com Update Manager: by Automattic – 1.0.3<br>Braintree for WooCommerce Payment Gateway: by WooCommerce – 3.2.2<br>PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.9.0<br>WooCommerce Shipping & Tax: by WooCommerce – 2.8.3<br>WooCommerce: by Automattic – 9.3.3<br>WP Import Export Lite: by VJInfotech – 3.9.27<br>WPForms: by WPForms – 1.9.2.1 Inactive Plugins (9)<br><br>Admin Columns: by AdminColumns.com – 4.7.7<br>Admin Search: by Andrew Stichbury – 1.4.1<br>Easy Auto SKU Generator for WooCommerce: by Dan Zakirov – 1.2.0<br>Query Monitor: by John Blackbourn – 3.16.4<br>SearchWP Custom Results Order: by SearchWP – 1.3.8<br>SearchWP Metrics: by SearchWP – 1.4.4<br>SearchWP Redirects: by SearchWP – 1.4.3<br>SearchWP Related: by SearchWP – 1.5.2<br>ShipBlink: by ShipBlink – 1.0.0 Dropin Plugins ()<br><br>advanced-cache.php: advanced-cache.php<br>db.php: db.php<br>object-cache.php: object-cache.php Must Use Plugins (1)<br><br>Index WP MySQL For Speed Upgrade Filter for mu-plugins.: by – 1.4.18 Settings<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: simple (simple)<br>grouped (grouped)<br>external (external)<br>variable (variable)<br>workorder (workorder)<br><br>Taxonomies: Product Visibility: rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br>featured (featured)<br>outofstock (outofstock)<br>exclude-from-search (exclude-from-search)<br>exclude-from-catalog (exclude-from-catalog)<br><br>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 223 MB WC Pages<br><br>Shop base: #7 - /shop/<br>Cart: #8 - /cart/ - Contains the woocommerce/cart block<br>Checkout: #9 - /checkout/ - Contains the woocommerce/checkout block<br>My account: #10 - /my-account/<br>Terms and conditions: ? Page not set Theme<br><br>Name: Als Snowmobile Custom Theme<br>Version: 1.0<br>Author URL: https://root802.com<br>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<br>WooCommerce Support: ? Templates<br><br>Overrides: alssnowmobile/woocommerce/archive-product.php<br>alssnowmobile/woocommerce/content-product.php<br>alssnowmobile/woocommerce/content-single-product.php<br>alssnowmobile/woocommerce/loop/loop-start.php<br>alssnowmobile/woocommerce/loop/result-count.php<br>alssnowmobile/woocommerce/single-product/add-to-cart/simple.php<br>alssnowmobile/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php<br>alssnowmobile/woocommerce/single-product/add-to-cart/variation.php<br>alssnowmobile/woocommerce/single-product/meta.php<br>alssnowmobile/woocommerce/single-product/sale-flash.php<br>alssnowmobile/woocommerce/single-product/short-description.php<br>alssnowmobile/woocommerce/single-product/tabs/description.php<br>alssnowmobile/woocommerce/single-product/tabs/tabs.php<br>alssnowmobile/woocommerce/single-product.php<br>alssnowmobile/woocommerce/taxonomy-product-cat.php Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br>blueprint<br>reactify-classic-payments-settings<br><br>Daily Cron: ? Next scheduled: 2024-11-12 16:43:24 -05:00<br>Options: ?<br>Notes: 95<br>Onboarding: completed Braintree (Credit Card)<br><br>Environment: Production<br>Tokenization Enabled: –<br>Debug Mode: Display at Checkout & Log Action Scheduler<br><br>Complete: 56,905<br>Oldest: 2024-10-11 21:45:37 -0400<br>Newest: 2024-11-11 17:20:13 -0500<br><br>Failed: 802<br>Oldest: 2024-09-26 08:01:14 -0400<br>Newest: 2024-10-30 13:03:12 -0400<br><br>Pending: 14<br>Oldest: 2024-11-11 17:26:13 -0500<br>Newest: 2024-12-06 14:16:08 -0500 Status report information<br><br>Generated at: 2024-11-11 17:22:35 -05:00<br>
    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @scottjeter,

    Thank you for reaching out.

    I’m sorry to hear that you’re having trouble with your Braintree Payments plugin, but I’m here to help.

    The error you’re seeing, “Cannot read properties of null (reading ‘verifyCard’)”, suggests that there might be a conflict or an issue with the theme you’re using.

    Since you’ve mentioned that payments are working fine with the default theme, it’s likely that the issue is related to your custom theme. Even though you’re not altering the checkout, there might be some scripts in your custom theme that are interfering with the Braintree plugin.

    Here are some steps you can take to troubleshoot this issue:

    1. Try switching to a different custom theme, if available, to see if the issue persists.
    2. If you have added any custom functions to your theme, try deactivating them one by one to see if any of them are causing the issue.
    3. Contact your theme developer for support. They might be able to provide a fix or update to resolve the issue.

    Additionally, head over to WooCommerce → Status → Tools, and do the following:

    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear
    • Capabilities – Reset Capabilities
    • Clear customer sessions -Clear
    • Product lookup tables – Regenerate
    • Regenerate the product attributes lookup table – Regenerate

    Let us know if this helps.

    Thread Starter scottjeter

    (@scottjeter)

    After meticulously removing individual components for the theme, I solved the issue by moving the site scripts from the header to the footer which solved my issue. I needed to forcefully move the wp_enqueue_scripts with the method below, which seems unnecessary since I was correctly registering the scripts to appear in the footer.

    remove_action('wp_head', 'wp_enqueue_scripts', 1);
    add_action('wp_footer', 'wp_enqueue_scripts', 5);

    There is something else going on with you’re plugins use of scripts that has a high risk for conflict.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @scottjeter,

    It’s great to hear that you’ve managed to resolve the issue by moving the site scripts from the header to the footer. However, I understand your concerns about the necessity of using the remove_action and add_action methods, especially if you were correctly registering the scripts to appear in the footer.

    Each plugin might have its own way of handling scripts, which could potentially interfere with the way scripts are enqueued in your theme. Did you already have a chance to test out with a default theme to see if the issue persists?

    This will help you identify if your theme is the only theme causing this conflict with the Braintree for WooCommerce Payment Gateway.

    Please try these tests out and let us know how it goes. We’re here to help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.