JavaScript Error in wc-cart-pdf.js on Every Page Load
-
Description:
A recurring JavaScript error occurs in the browser console on every page view, whether or not the cart is empty. The error is triggered bywc-cart-pdf.js
and appears on all pages.Error Message:
Uncaught TypeError: Cannot read properties of undefined (reading 'getCustomerData') at wc-cart-pdf.js?ver=3.1.0:2:2023 at h (wc-cart-pdf.js?ver=3.1.0:2:7388) at x (wc-cart-pdf.js?ver=3.1.0:2:7611) at w (wc-cart-pdf.js?ver=3.1.0:2:7501)
Environment Details:
- File:
wc-cart-pdf.js
- Version: 3.1.0
- Platform: WordPress/WooCommerce environment (plugin causing error is related to cart functionality)
- Pages Affected: All front-end pages, including when the cart is empty, as well as the checkout page
Steps to Reproduce:
- Navigate to any page on the site.
- Open the browser’s Developer Tools console.
- Observe the JavaScript error appearing immediately after page load.
Impact:
- The error may indicate that certain cart-related scripts are not functioning as intended.
- It could potentially affect the user experience if the cart functionality relies on retrieving customer data before rendering certain UI elements or handling events.
- It may also suggest that some required data or variables are not being initialized properly.
The page I need help with: [log in to see the link]
- File:
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.