question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Woocommerce doesn't save to create webhooks on WP 6.0+

See original GitHub issue

What 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

afbeelding

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
ndeetcommented, Jun 26, 2022

The REST API request failed due to an error. Error: cURL error 28: Connection timed out after 10001 milliseconds (http_request_failed)

The loopback request to your site failed, this means features relying on them are not currently working as expected. Error: cURL error 28: Connection timed out after 10000 milliseconds (http_request_failed)

So bas this was causing it not to save… problem… no webhooks etc etc… api key 🔑 was ok…

@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 💚

2reactions
Eskyeecommented, Jun 26, 2022

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… 🍻✨

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found