Uncaught SyntaxError: Failed to execute 'querySelector' on 'Element': ':submit' is not a valid selector.
at HTMLFormElement.<anonymous> (checkout_confirmation.php?ceid=015b8fcf8041df5818c2c408fe32a505:348:34)
Paypal Error preventing checkout
-
artfulweb
- Contributor
- Posts: 184
- Joined: Thu Oct 29, 2020 12:34 pm
- Phoenix Version: v1.1.0.6
- Has thanked: 29 times
- Been thanked: 14 times
Re: Paypal Error preventing checkout
Uncaught SyntaxError: Failed to execute 'querySelector' on 'Element': ':submit' is not a valid selector.BrockleyJohn wrote: ↑Sat Aug 02, 2025 5:46 pm In chrome dev tools, click the three dots then the first dock side option to pop the dev tools out into their own window.
Screenshot 2025-08-02 184207.png
Then make sure console is selected, not elements
Screenshot 2025-08-02 184559.png
at HTMLFormElement.<anonymous> (checkout_confirmation.php?ceid=015b8fcf8041df5818c2c408fe32a505:348:34)
also:
checkout_confirmatio…8c2c408fe32a505:490 SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at checkout_confirmatio…c408fe32a505:479:31
(anonymous) @ checkout_confirmatio…8c2c408fe32a505:490
Promise.then
(anonymous) @ checkout_confirmatio…8c2c408fe32a505:477
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: Paypal Error preventing checkout
There are a couple of things happening at once. Please PM your site url so I can fully debug.
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: Paypal Error preventing checkout
Turned out to be missing the file
[catalog]/ext/modules/payment/paypal/checkout_confirmation.php
[catalog]/ext/modules/payment/paypal/checkout_confirmation.php