• Resolved larnoult

    (@larnoult)


    Hello,
    I’m running a multisite install (simple, not multi network). Buddypress and BuddyPress Group Email Subscription are both network activated.
    BuddyPress Group Email Subscription only sends mails if users choose “receive every mail” option.
    Summary (daily and weekly) mails or admin notice are not being sent. I would like to debug, so following your guide, I added in my config.php

    define( 'BPGES_DEBUG', true );// https://github.com/boonebgorges/buddypress-group-email-subscription/wiki/How-to-troubleshoot-missing-emails
    define( 'BPGES_DEBUG_LOG_PATH', dirname( __FILE__ ) . '/wp-content/uploads/BPGES/');
    

    Yet, no log shows up in this folder.
    Furthermore, when I visit this /?sum=1 page, I can see many many mails.. I guess this confirms they haven’t been sent? Simiarly, I visited the wp_bpges_queued_items SQL table, and it’s populated by many entries (of sum, dig and immediate types).

    I also installed WP-cron. In the event tab, I cannot see any BPGES looking job (although I could’nt find which job title to look for – I tried emp_cron_emails_queue, based on this support thread)

    Thanks for directing me how I can advance in the debugging.
    Best,

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

    (@boonebgorges)

    Hello – The BPGES_DEBUG_LOG_PATH won’t work because it’s not a full file path. Try:

    
    define( 'BPGES_DEBUG_LOG_PATH', dirname( __FILE__ ) . '/wp-content/uploads/BPGES/bpges.log');
    

    > I also installed WP-cron. In the event tab, I cannot see any BPGES looking job (although I could’nt find which job title to look for – I tried emp_cron_emails_queue, based on this support thread)

    I assume you mean wp-crontrol? You should be looking for ass_digest_event. If you don’t see it, try visiting the settings panel, then changing the digest send time and saving the changes. This should reschedule the event.

    Thread Starter larnoult

    (@larnoult)

    Thanks @boonebgorges for your kind and usefull feedback.
    Updating the full path did the trick.
    And yes, changing digest send time and saving changes made ass_digest_event appear in the wp-control tab … And digest were successfuly sent! Maybe adding this 2 informations to your debugging/troubleshoot github page would help others like me?

    Last issue concerns the “All Email notifications”. I tested that send one in a public group containing 7 members … The only user receiving mail is the one that set its option to “all mails”. I was expecting this feature to overcome the choice of users (for daily or weekly digest), right?
    The log works, but does not look to helpful unfortunately:

    [11-Dec-2020 14:27:13] Beginning batch of immediate notifications for 6540.
    [11-Dec-2020 14:27:14] Finished sending immediate notifications for 6540. A total of 1 notifications were sent over all batches.

    Any idea what might go wrong?
    Thanks again!

    Plugin Author Boone Gorges

    (@boonebgorges)

    > And digest were successfuly sent! Maybe adding this 2 informations to your debugging/troubleshoot github page would help others like me?

    Very glad to hear it! Thanks for the suggestion – I will add this information.

    > Last issue concerns the “All Email notifications”. I tested that send one in a public group containing 7 members … The only user receiving mail is the one that set its option to “all mails”. I was expecting this feature to overcome the choice of users (for daily or weekly digest), right?

    Can you explain what you mean by “All email notifications”? Exactly what are you testing?

    Thread Starter larnoult

    (@larnoult)

    Sorry the last part of my thread was not very clear.. I’m talking about the admin notification feature: according to your plugin’s description “Group admins can send out an email to all group members from the group’s admin section. The email will be sent to all group members regardless of subscription status”

    When I’m sending such admin notification from a group’s admin section, members of this group do not receive the corresponding mail (unless they have set their digest notification option to ‘all Email’).
    Who can I debug this feature? Since there is not much in the log.
    Thanks again!

    Plugin Author Boone Gorges

    (@boonebgorges)

    > When I’m sending such admin notification from a group’s admin section, members of this group do not receive the corresponding mail (unless they have set their digest notification option to ‘all Email’).

    Aha, thanks for the clarification. This feature changed its behavior in version 4.0.0. See https://github.com/boonebgorges/buddypress-group-email-subscription/issues/183#issuecomment-545129795 for some discussion, and for a description of how to override the new behavior.

    Thread Starter larnoult

    (@larnoult)

    Thx for the feedback!
    Adding
    add_filter( 'bpges_force_immediate_admin_notice', '__return_true' );
    indeed fixed the feature.
    I guess adding that to your wiki would also be valuable 🙂
    Thanks again for your great plugin, a must have! I just left a 5 star review!

    Plugin Author Boone Gorges

    (@boonebgorges)

    Excellent, thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Debugging a multisite install’ is closed to new replies.