[Bug]: Woocommerce doesn't save to create webhooks on WP 6.0+
See original GitHub issueWhat is your BTCPay version?
1.5.4.0 (altcoins)
How did you deploy BTCPay Server?
BTCPay Server hosted.
What happened?
Yoo,
We got pushed to WP 6 by Woocommerce. Now it seems BTCPay is sending data to the WP, but when in WP you hit save, it doesn’t do the call back properly (properly doesnt save properly in admin.php) and breaks after a while into a 504 time out. It’s trying to resolve : (https://WEBSITE.X/wp-admin/admin.php?page=wc-settings&tab=btcpay_settings) which should create the Webhook, but it cant.
How did you encounter this bug?
Have WP 6.0 and the latest woocommerce (6.6)
Plugin Version 1.0.2 and PHP Version 7.4.
Relevant log output
{"result":"failure","messages":"<ul class=\"woocommerce-error\" role=\"alert\">\n\t\t\t<li>\n\t\t\tWe were unable to process your order, please try again.\t\t<\/li>\n\t<\/ul>\n","refresh":true,"reload":false}
DEBUG Error fetching data for this API key from server. Please check if the key is valid. Error: Failed to connect to
[website.me](http://website.me/)
port 443: Connection timed out.
What browser do you use?
Safari latest version
Additional information
Are you sure this is a bug report?
- I confirm this is a bug report
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Create a New Webhook Missing
On this page, the Add webhook button is then replaced by the Save webhook button to save the settings of the new webhook...
Read more >WooCommerce Webhooks Custom/Action not saving
Every time you try and set a custom/action topic within webhooks (from WooCommerce > Settings > Webhooks) it would unset it as soon...
Read more >WooCommerce Webhooks Guide: Everything you need to know
Step 1: Go to Webhooks from the WP admin dashboard · Step 2: Click on Create a new webhook or Add webhook ·...
Read more >Understanding the WooCommerce System Status Report
The WooCommerce System Status report is useful for troubleshooting issues with your store. Containing a wide variety of information and tools, you can...
Read more >Introduction – WooCommerce REST API Documentation
WooCommerce (WC) 2.6+ is fully integrated with the WordPress REST API. This allows WC data to be created, read, updated, and deleted using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Eskyee this was when running the health check on the fragment right? I wonder if this affects the settings form though? It should be on a different path and not interfere with the settings form at all (but I could be wrong here). Can you clarify if there is any problem causing the plugin settings to fail to save or is this some other error unrelated to the plugin itself but causes generally the WC api callbacks to fail?
Thanks a lot for debugging 💚
It Might be that Woocommerce in BTCPAY fragment needs replacement & updating to be safe… as it’s older version now… & problem was site health yellow after a default install fragment…
and new the php 8 & Wordpress 6 is validated… Working fine now… tested all day… 🍻✨