• Hi there,

    For some reason the webhooks in my shop are not firing as ‘reliably’ as they did before.

    This is how it should be:
    1. A customer makes an order and completes the payment
    2. The payment is set to ‘completed’
    3. A webhook (action.woocommerce_order_status_changed) is fired

    Now even before the upgrade to the latest WooCommerce version 2.6.14 every once in a while the webhook was not triggered. The webhook debug log shows no call that was attempted, just as if there was no webhook at all.
    I also tried the usual debugging techniques (PHP error_log, WB_DEBUG_LOG etc.) but couldn’t find anything that would explain why this happens.
    Now, with version 2.6.14, the webhooks are not called in about 50% of all orders, while a few days ago it was maybe 2%.

    So in order to make all of this work I have to switch the order status back and forth between ‘completed’ and ‘paid’ until the webhook is eventually fired. Sometimes its works after making that switch just one time, and sometimes I need to switch back and forth 5-6x times until it gets fired.

    Is this a known issue? Any idea how I could debug this?

    Thanks!
    R.

    • This topic was modified 8 years, 1 month ago by riyadhyaseen.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Saw another user the other day reporting something somewhat similar; They managed to track down the culprit as being caching related. Do you have a caching plugin like WordFence installed?

    Thread Starter riyadhyaseen

    (@riyadhyaseen)

    Thanks for the response, Riaan!

    Yes, I did have WP Super Cache enabled and just turned it off. Still the same problem.
    Any other ideas? This is really confusing…

    Just wanted to +1 this issue. I’m running WP 4.7.5 and WC 3.0.7 with no caching enabled. I have a single webhook that fires on “Order created”, but it’s not 100% reliable. Every once in a while, it doesn’t get triggered (which is problematic since I have a back-office workflow that depends on it).

    I guess I’ll submit a WC support issue. Not sure how to debug it since it occurs unpredictably.

    -Steve

    Thread Starter riyadhyaseen

    (@riyadhyaseen)

    I debugged this to the point where I see that every now and then the webhook is not added to the table that is read in (and then fired) by the CRON job.

    But, for me, things work fine now since upgrading to WordPress 4.7.4 and WooCommerce 3.0.8. It’s maybe 0,5% where it doesn’t get fired when it once was 50%. The webhooks fire way slower than before (takes up to three minutes) but it’s very reliable now.

    • This reply was modified 7 years, 9 months ago by riyadhyaseen.

    Thanks for the info. It definitely works far more often than it doesn’t, but that just makes it especially perplexing. I submitted a WC support request and will pass along your troubleshooting results. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Webhooks *sometimes* not firing’ is closed to new replies.