Skip to main content

#159 Phoca Checkout will not load credit card payment page

Posted in ‘Stripe Checkout for Phoca Cart’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
n/a
Phoca Cart version
n/a
Stripe Checkout for Phoca Cart version
n/a

Latest post by b2z on Saturday, 24 May 2025 19:11 EEST

mnixson

When I proceed to checkout in truth-attack.com and advance beyond the last Phoca screen it is supposed to advance to your payment module. It does not do so. My browser shows the following error when this happens:

stripeco.js?00f9a6:11 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
at window.onload (stripeco.js?00f9a6:11:17)

I don't know if this is a Phoca cart issue or your extension but I'm trying both vendors.

b2z

Hi Michael,

Did you change anything in plugin layout or make an override? Script requires <button id="checkout-button"> element to be present on the page.

Kind regards,

Dmitrijs

mnixson

No changes to layout and have never created an override. The only thing I've done to this site in the last year or two are standard Joomla and Phoca upgrades that I do in two other sites similarly configured.

b2z

You have several sites running our plugin and only on this it is not working? Please provide FTP access or alternatively install Phoca Commander to access our plugin files.

Kind regards,

Dmitrijs

mnixson

How do I send you FTP credentials via this forum?

b2z

Where you provided site credentials.

System Task
system
The ticket information has been edited by Michael Nixson (mnixson).

b2z

Hello!

I checked the plugin files and everything is fine with them.

But your template behaviour is not correct - it should present Phoca component with our plugin layout, but it is not. That is why plugin's Javascript cannot find <button id="checkout-button"> and throws an error.

Probably you have some kind of modification that exclude the component on specific pages.

Kind regards,

Dmitrijs

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.