WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Group Email Subscription
Daily Digest items getting queued but not being sent (4 posts)

  1. nickharambee
    Member
    Posted 2 years ago #

    Hi,

    I have enabled this plugin, and checked that all items for daily digests are correctly showing up in ?sum=1, but no daily digests are getting sent to users.

    I am not sure if the issue is to do with the plugin or my server. Do I need to set up a cron job?

    Instant notifications appear to be being sent out OK (at least I have been receiving them). I haven't tested any other options (e.g. weekly digests).

    I'd be glad of some help with this, as this feature is central in the successful operation of my website!

    Thanks,

    Nick

    http://wordpress.org/extend/plugins/buddypress-group-email-subscription/

  2. nickharambee
    Member
    Posted 2 years ago #

    AN UPDATE:

    I followed the advice of hughes.chad in this support thread and I managed to successfully manually trigger a Daily Digest email, and confirmed that all emails had been removed from the Digest queue visible in ?sum=1.

    I tried again to send a digest without manually triggering it, and no digest was sent at the time it was supposed to be sent.

    I then added:

    define( 'ALTERNATE_WP_CRON', true );

    to wp-config.php, as suggested by Boone Gorges in the thread I have linked to, but again no automated Daily Digests were sent.

    So it seems that I have narrowed the issue down to the triggering of wp-cron.php.

    On the last attempt to check what was in ?sum=1 the URL changed to ?sum=1&doing_wp_cron=1340741443.4746210575103759765625, suggesting it was trying to activate the cron_job.

    What else can I try to get this working?

    Thanks,

    Nick

  3. nickharambee
    Member
    Posted 2 years ago #

    I have now switched to setting up a cron job on my server. I understand that this a better solution for low traffic websites anyway.

    After trying many different commands, it appears that the following command works:

    php -q -f /home/[user]/public_html/[site url]/wp-cron.php

    It doesn't work all the time though, and I am wondering if this is due to the setting in the Group Email Subscription settings page, i.e. that the cron job on my server will only run daily after the time set for daily digests in the settings page. Initially I thought, having disabled the built in WP pseudo cron job, i.e.

    define('DISABLE_WP_CRON', true);

    that the setting for the daily digest on the Group Email Subscription settings page would make no difference. Items are showing in the digest queue, and running the above cron job would be enough. But because the above cron job doesn't seem to trigger any emails until after the time I have set the digests to be sent on the Group Email Subscription settings page, I now think that this setting does still make a difference and that I need to set the cron job on my server to run 5 minutes after the time set for digests on the Group Email Subscription settings page.

    Can anyone illuminate this for me?

    Thanks,

    Nick

  4. nickharambee
    Member
    Posted 2 years ago #

    A further update, in case it is of help to others. I finally got this working on my Cirtex server by using the following command for a cron job that I set up in cPanel:

    php -q -f /home/[user]/public_html/[site url]/wp-cron.php

    It would seem that commands for cron jobs are quite server specific so this may not work for others. I set it to run once a day 5 minutes after the time I have set for daily digests in the settings for the BuddyPress Group Email Subscription plugin. I am not sure if the settings in the plugin actually have any impact on cron jobs once the internal WP pseudo cron job is disabled, but it didn't seem to work quite as expected until I did this.

    Nick

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags