• hotmaddycool

    (@hotmaddycool)


    Hi

    I hope you’re doing great!

    We’ve a serious problem.

    In a group with 118 members, daily digest is only being delivered to 92 members, not to all 118 members.

    We’re using SMTP of one of our G-Suite accounts to send emails. We got the logs of sent email from the reports of G-Suite and also our members confirmed this with us.

    I’ve crosschecked and increased max_execution_time and other required variables to big numbers. I’ve already posted a message in other topic –
    https://www.ads-software.com/support/topic/bpges_queued_items-ballooning-admin-ajax-timout/

    Right now we’re in a situation where we don’t know what to do to solve this problem.

    Please help!
    Thanks & Regards,
    -Mohit

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

    (@boonebgorges)

    Sorry you’re still having issues. My last response to your question was at https://www.ads-software.com/support/topic/bpges_queued_items-ballooning-admin-ajax-timout/#post-13409060 Have things changed since then?

    Is it always the same 92 members? Is it always *exactly* 92 members? Is there any logic to the specific members? Ie are they always the oldest members (those with the lowest IDs)? Any clues of this sort would help to narrow down what’s happening.

    Thread Starter hotmaddycool

    (@hotmaddycool)

    Hi Boone

    Thank you so much for the reply!

    It’s not always 92.
    For example :
    12th Nov, 90 emails were sent
    11 Nov, 89 emails were sent
    10th Nov, 92 emails were sent
    8th Nov, 96 emails were sent

    are they always the oldest members (those with the lowest IDs
    Oldest are getting the emails

    Please suggest further

    Thanks & Regards,
    -Mohit

    Plugin Author Boone Gorges

    (@boonebgorges)

    The fact that it’s not always 92 suggests strongly that this is a timeout issue. It sounds like the first batch is running as expected, but the second batch either is not being triggered, or it’s being triggered but the HTTP request is not being sent properly, or the HTTP request is being held up in transit – any of which would result in the second batch not being sent.

    Is it still the case that your bpges-debug.log shows “Digests were sent to a total of 143 users”?

    All I can suggest at this point is that you start introducing your own debug statements into the codebase to try understanding where things are going awry. You can use the bpges_log() function for this purpose, which will put the debug statements into your bpges-debug.log file. For example, at https://github.com/boonebgorges/buddypress-group-email-subscription/blob/399879e6fdf407fdda63d6ef099b888ab8ad9471/classes/class-bpges-async-request-send-queue.php#L179 you can put something like:

    bpges_debug( 'Sending digest for user ' . $user_id );

    This could, in turn, indicate whether the missing users are being processed in this do...while loop, which would help to determine whether the problem is that the missing users aren’t being turned up in the get_users_with_pending_digest() query, or if the problem is in the email sending mechanism.

    Thread Starter hotmaddycool

    (@hotmaddycool)

    Hi Boone,

    I hope you’re doing great!

    Thanks you so much for the suggesting the starting steps to debug.

    We’ve applied the changes. Now, daily digest was sent to only one person.

    In the log, we’ve got ‘[15-Nov-2020 05:01:26] Beginning digest batch of type dig for timestamp 2020-11-15 05:01:25.’

    But there’s no finished information. Upon checking the queue ‘https://ourdomain.org//?sum=1’, There are items from the same date. So I can say it’s not processed.

    I’ve update the plugin ‘BuddyPress Group Email Subscription’ to 4.0.0

    Version of BuddyPress is ‘5.2.0’.

    Please suggest what should we do further.

    Thanks & Regards,
    -Mohit

    Plugin Author Boone Gorges

    (@boonebgorges)

    The fact that only one digest was sent suggests that there was a fatal error, which in turn suggests that there’s a syntax issue with the mods you made to the plugin file. I’d recommend you check your server’s error logs to confirm, and double-check the syntax of the log statement you inserted.

    Thread Starter hotmaddycool

    (@hotmaddycool)

    Hi Boone,

    We’ve cross-checked the logs.

    But there’s no fatal error. In addition to this, I’ve crosschecked the syntax which is fine too.

    Interestingly, We were using 3.8.2 version of this this plugin and 92 emails were being sent. After updating it to 4.0.0, only one email is being sent. Rest of the queue is not being sent.

    Please suggest. We can pay you to solve this problem as my boss really need to solve this problem.

    Waiting for your reply.
    Thanks & Regards,
    -Mohit

    Plugin Author Boone Gorges

    (@boonebgorges)

    Hi Mohit,

    Feel free to reach out [boone] at [hardg.com] and we can talk about getting some more hands-on help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Daily digest not sending all emails’ is closed to new replies.