• Resolved maldboy

    (@maldboy)


    Hello,
    The plugin works perfect but i have 1 huge issue.
    I have created notification for specific usergroup (special customers) and when i update a woocommerce product i get Error 504 Gateway time-out (notifications has been sent)

    At this moment i disabled the plugin because can’t work like this.

    Is there any suggestion to fix this? I assume the plugin sends automatically notifications at the time i press Update on the product update.

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

    (@voltronik)

    Hi @maldboy,
    Thanks for your message.

    It sounds as if you’re server is timing out when sending the notification.
    How many users are in the user role that you’re sending it to?

    Thread Starter maldboy

    (@maldboy)

    My server works perfect for the last 2 years.

    With your plugin i like the feature to send notification email to all customers + registered users.

    To specific product i’m testing your plugin the customers are 54,when i press Update button your plugin immediately send the notification to 54 customers, bcz of this the page keeps loading until your plugin send all notifications and i get the server time out.

    Your plugin should schedule the emails mate, doesn’t make sense the page to keep loading till your plugin send all notifications.

    I prefer your plugin because it’s the perfect plugin with the add-ons you have,but doesn’t work for me like it should.

    Think, if you want to send notification to 2000 registered users for a discount on your product(s) the page will return to server time out.And the best server will turn to server time out.
    That’s why you should schedule the emails my friend, 10 emails per hour or more. I’m just saying.

    If you consider fixing this let me know so i can test it and to buy some add-ons i like.

    Best Regards and sorry for the big message.

    • This reply was modified 6 years, 3 months ago by maldboy.
    Plugin Author bnfw

    (@voltronik)

    Hi @maldboy,
    The issue isn’t so much scheduling as it is timeout duration on your server. I’ve tested BNFW with small servers with a good timeout duration that can handle sending to 2000 users in one go without issue and large ones that can send to thousands more.

    What you can try though, is to put the User Role in the BCC field instead of the Send To field. This will send one emails but with all users BCCed in as opposed to one notification per user.

    It’s also worth checking what timeout you have on your server just to see if this can be increased. If your site is growing, this may become an issue for other plugins in the near future too.

    Hope this helps.

    Thread Starter maldboy

    (@maldboy)

    Hey,
    Well,i’m using for 1 year a plugin from codecanyon for this purpose.But that plugin sends the update like Envato… only to customers who have bought the specific product.
    That plugin uses scheduling and never had issue.

    I understand what you’re saying but this doesn’t mean i’m wrong. Even if increase the timeout duration when i’m going to send notification to 2000 users i have to wait till the plugin will send the notification to 2000 users.

    With the plugin WCDPUE Pro from codecanyon i have created my notification and i’m doing this….

    WCDPUE Pro – edit product – press update – DONE
    BNFW – edit product – press update – wait (loading) – wait (loading) – wait (loading) – wait (loading) …..

    I hope you get it what i mean.
    Doesn’t make sense to wait with the page loading till the plugin send the notification to 2000 users.

    btw. with “timeout duration” you mean the “max execution time”?

    Plugin Author bnfw

    (@voltronik)

    Hi @maldboy,
    Yes, that’s true. Better handling / scheduling / staggered sending is on my roadmap but it’s a complicated problem and each plugin that I’ve seen do it does it in a different way. I would like to tackle this next year if I can.

    Yes, to the max execution time.

    Did you try the BCC option as I suggested?

    Thread Starter maldboy

    (@maldboy)

    Did you try the BCC option as I suggested?

    this seems to work.
    Keeps the page loading 10sec but it works.
    Thanks for the suggestion.

    Plugin Author bnfw

    (@voltronik)

    Hi @maldboy,
    Great. I’d recommend using that for the time being. It seems to be a good workaround.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Server time out’ is closed to new replies.