stripeco.min.js?b138b0:1 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
at HTMLDocument. (stripeco.min.js?b138b0:1:879)
*****
According to ChatGPT this error means that stripeco.min.js is trying to attach an event listener to an element that does not exist in the DOM at the time the script runs.
This is not a generic PHP/Joomla error — it directly points to the NorNext Stripe Checkout plugin (PCP - Stripe Checkout for Phoca Cart).
The script expects certain DOM elements to exist (usually buttons or forms generated by Phoca Cart during checkout). When the element is missing, document.getElementById(...) returns null, and .addEventListener() throws.
*****
This error originally occurred in the root of this domain (truth-attack.com) so I did a complete new install in a subdomain (dev.)
The shopping cart can be accessed at https://dev.truth-attack.com/index.php/shop-truth-attack and the shopping cart is in sandbox mode for now.
Phoca Cart 5.2.2 as well as Pcp - Stripe Checkout for Phoca Cart ver 2.2.2 are the correct compatible versions. The Phoca vendor suggested six months ago that the template (RocketTheme) was the cause of the problem which is why I installed a Joomlead template on this website. I conclude that the tempplate cannot be the issue. Can you determine what is?