BuddyDev

Search

[Resolved] Group Activities Notifier on my server

  • Participant
    Level: Initiated
    Posts: 5
    Occhi on #51733

    Hello Brajesh,

    The plugin “Group Activities Notifier” works like a charm on my localhost but not on my server.
    There is no notification…

    I put an error_log on the notify_members() function :

    [21-Feb-2024 08:27:28 UTC] params: Array
    (
    [id] =>
    [action] =>
    [content] => test message group
    [component] => groups
    [type] => activity_update
    [primary_link] =>
    [user_id] => 2
    [item_id] => 54
    [secondary_item_id] =>
    [recorded_time] => 2024-02-21 08:27:28
    [hide_sitewide] => 1
    [is_spam] =>
    [error_type] => bool
    )
    [21-Feb-2024 08:27:28 UTC] activity_id:

    The activity_id is empty, i can figure out why… i’v missed something ?

    Thanx for your help

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #51738

    Hi Occhi,
    Please share your BuddyPress/BuddyBoss version.

    I had a look and I see that we are using pre BP 4.0 code where activity_id was not available, so that output is normal.

    It is probably this line

    
    $activity_id = bp_activity_get_activity_id( $params );
    

    or

    
    if ( apply_filters( 'bp_local_group_notifier_skip_notification', false, $activity ) ) {
    			return;// do not notify.
    		}
    
    

    is failing.

    I thought about it and remembered that you had requested for limiting whose activity will trigger notification.
    https://buddydev.com/support/forums/topic/group-activities-notifier-when-admin-moderator/#post-51422

    Is there any chance that you posted as a non group admin/mod.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Occhi on #51746

    Hi Brajesh,

    No, my code to limit notifications is disabled at the moment.
    I don’t understand why everything works locally but not online, the plugins are the same.

    On localhost, $activity_id returns a value.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #51754

    Hi Occhi,
    Thank you.
    In that case, probably this function

    
    bp_activity_get_activity_id()
    

    is failing. There is an easy solution though. Please allow me to find some time and push the release.

    I will post back by Monday or before with the update.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Occhi on #51765

    Hi Brajesh,

    Ok thank you very mush !

  • Participant
    Level: Initiated
    Posts: 5
    Occhi on #51810

    Hi Brajesh,
    Do you have some news about my issue ?
    Thanx, have a nice day 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #51814

    Hi Occhi,
    Thank you for your patience.

    Please upgrade to 1.0.7 and let me know if that works for you or not?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Occhi on #51818

    Hi Brajesh,

    It works !!
    Thank you very much 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #51837

    You are welcome!

The topic ‘ [Resolved] Group Activities Notifier on my server’ is closed to new replies.

This topic is: resolved