• HI

    When i used the link View queued digest items in the wp-admin panel, i got my items. But in the email notification, i got (0 items).

    I debug and i saw something strange. In file bp-activity-subscription-digest.php line 110 to 115 there’s a sql query with a from{$bp->activity->table_name}. The $bp object is not instantiate or is null. So i got an sql error because i miss the table name after the FROM. I tried to hardcode directly in the query the table name it needs (wp_bp_activity) and i got my items. It’s not a good solution because $bp variable is used everywhere. It happens only for the email notification. When i click on link View queued digest items everything is fine.

    https://www.ads-software.com/plugins/buddypress-group-email-subscription/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter weetouches

    (@weetouches)

    Fixed i’m not sure if it’s ok but it works

    in file bp-activity-subscription-digest.php in the function ass_daily_digest_fire. I added a do_action(‘bp_init’); just before ass_digest_fire( ‘dig’ );

    Thread Starter weetouches

    (@weetouches)

    It sounds like when the function is throwd by the cron it miss 2 things
    $bp initialization and translation initialization

    in file bp-activity-subscription-digest.php

    there’s my new function with translation

    function ass_daily_digest_fire() {
    load_plugin_textdomain( ‘bp-ass’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );
    do_action(‘bp_init’);
    ass_digest_fire( ‘dig’ );
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘0 items in email notification’ is closed to new replies.