Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'querySelector' on 'Document': '["#ppc-button-ppcp-gateway","paypal"]' is not a valid selector. (2830) #2140

Open
gmanhub3 opened this issue Apr 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gmanhub3
Copy link

gmanhub3 commented Apr 4, 2024

Describe the Bug

I see this error on the checkout page and the “Debit/Credit Card” option button does not appear:

Failed to execute 'querySelector' on 'Document': '["#ppc-button-ppcp-gateway","paypal"]' is not a valid selector.

The button shows up for a quick second and then disappears. I have disabled all plugins on the website and kept it disabled. The only active plugins currently are WooCommerce and WooCommerce Paypal Payments.

To Reproduce

  1. in checkout page (storefront) go edit page mode
  2. and if you are in block mode you have two choice to switch to classic shortcode mode see this screenshot https://ibb.co/34Kp7xp
    1. in right side settings (switch to classic checkout button) (will be good!)
    2. in left side slassic shortcode option form the menu (will be error)
  3. and if you select the second options (2.) and update the page see the result this will be cause an error and the paypal button shows up for a quick second and then disappears. Failed to execute 'querySelector' on 'Document': '["#ppc-button-ppcp-gateway","paypal"]' is not a valid selector.

the solution: use the in right side settings (switch to classic checkout button) (will be good!)

Screenshots

https://ibb.co/34Kp7xp

Expected Behavior

Actual Behavior

Environment

WP Version: 6.4.3
WC Version: 8.6.1
storefront ( 4.5.4)
woocommerce-paypal-payments 2.6.0

Additional Details

because in block mode dont show any paypal button (this is a bug too i think) i switch to classic shortcode mode
more info here:
https://wordpress.org/support/topic/failed-to-execute-queryselector-on-document/

System status
<!--If applicable, paste the system status here. Please ensure you redact or remove any identifying information. -->
@InpsydeNiklas InpsydeNiklas added the bug Something isn't working label Apr 12, 2024
@InpsydeNiklas InpsydeNiklas changed the title Failed to execute 'querySelector' on 'Document': '["#ppc-button-ppcp-gateway","paypal"]' is not a valid selector. Failed to execute 'querySelector' on 'Document': '["#ppc-button-ppcp-gateway","paypal"]' is not a valid selector. (2830) Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants