• I have used the Webhook JSON function in your free plugin to send a notification for “Plugin Updated.”

    If I update a plugin manually by clicking on “update now” in WordPress, the notification is sent once.

    However, if the plugin is updated via an Automatic Update process, the notification is sent twice.

    I found your “Notification Prevent Duplicated” extension but it seems to only cover Post, User and Comment, not Plugin.

    This is working perfectly except for the duplicate notifications when auto-updating. I have tested this on two different environments – one with cPanel and WP Toolkit Smart Updates, the second with a Managed WordPress host that offers automatic updates – and I’m getting the duplicates on both servers.

    If it makes any difference, the webhook is for Slack. I’m interpreting this as something that can be resolved via code on the WordPress side and not a Slack issue, but I don’t know this for certain.

    Thank you for any insight you can offer.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Matt, indeed there might be an issue with how the updates are triggered.

    Does this issue also occur when WordPress itself updates the plugin with built-in updates mechanism?

    Thread Starter Matt Scheidler

    (@matt6303)

    Kuba, thank you for the reply. This issue is not happening on every site, nor does it happen every time. But when it does occur, it is always an automatic update via WordPress. If I update a plugin manually, only one notification is sent. Glad to provide more information if it would be helpful. Thanks!

    Plugin Author Kuba Mikita

    (@kubitomakita)

    I’d say it’s most likely due to how those plugins are updated. I’d appreciate if you could narrow down the issue a bit and provide information when exactly does that happen. I mean if it’s when cPanel updates the plugin or something else?

    Thread Starter Matt Scheidler

    (@matt6303)

    I appreciate the reply. I’ve been trying to keep track of when this happens, and to this point there doesn’t seem to be any discernable pattern.

    While it does only happen for an automatic update, and never when I update a plugin manually, it isn’t happening for all automatic updates. When I first opened the ticket it seemed to be happening nearly all the time, but as I’ve monitored over the past few weeks it does seem to be more sporadic.

    When this does happen, the second notification appears around a minute after the first. I don’t know if that is helpful information or not.

    This isn’t that big of a deal, I just wanted to point it out in the event there was something that could be adjusted. I can live with the duplicates, especially since they aren’t happening every time. I do appreciate the plugin, and your time for looking into this.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Thank you Matt for that insight!

    Unfortunately, it’s extremely hard to debug this kind of issue without being able to replicate the issue. A minute delay would suggest that, indeed the action of updating the plugin happens twice, but it’s too long to think it’s the plugin itself.

    Is the content of both emails exactly the same (if you’re using any dynamic data like the number of plugins updated)?

    Also, do you have the automatic plugin updates enabled? That’s the checkbox in the Plugins table. Maybe that one interferes.

    Thread Starter Matt Scheidler

    (@matt6303)

    I wish I had more specific details. When I first opened this ticket it seemed to be happening with a greater frequency. I have changed hosts and it isn’t happening nearly as often now, maybe once every 10 to 15 times a plugin is updated. Some sites experience the issue more often than others, but there really doesn’t seem to be a pattern. I’ve been keeping track of all duplicate notifications for a few weeks. If you’re not getting reports from others, I suppose it is something on my end. For now, getting duplicates every once in a while is not that big of a deal. Thank you for your time.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Alright, please keep me posted when you get anything new!

    I think introducing some unique value to the notification (like mentioned number of plugins updated) would be beneficial.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Automated updates send 2 notifications; manual updates send 1’ is closed to new replies.