WPIntell

Source evidence

Double mail

BP Disable Activation Reloaded · support · 2014-08-22T21:05:00+00:00

complaintsentiment
mediumseverity
0.92relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
hugblue71 unresolved
After i installed this plugin. Then it post double on buddypress wall when new people register. And i get 2 emails. What can i do to fix this ? https://wordpress.org/plugins/bp-disable-activation-reloaded/ I am experiencing the same issue Wordpress version 4.0 BP version 2.1.1 BP Disable Activation Reloaded version 1.2.1 When a new user registers two ‘New user registration’ emails are sent to my admin email address. I suspect this is because in your code you are calling wp_new_user_notification() and bp_core_activate_signup() . Since bp_core_activate_signup() is a core bp function that aldeady calls wp_new_user_notification() two emails are sent. Removing wp_new_user_notification() on line 199 of bp-disable-activation-loader.php will probably stop this. Removing the following lines from bp-disable-activation-loader.php will fix all issues. Furthermore, you probably didn’t notice that a new user registration also appeares twice in the Activitystream. //Add note on Activity Streamif ( function_exists( 'bp_activity_add' ) ) {$userlink = bp_core_get_userlink( $user_id );bp_activity_add( array('user_id' => $user_id,'action' => apply_filters( 'bp_core_activity_registered_member', sprintf( __( '%s became a registered member', 'buddypress' ), $userlink ), $user_id ),'component' => 'profile','type' => 'new_member') );}//Send email to adminwp_new_user_notification( $user_id ); I tried removing the lines but it doesn’t seem to be working. I still get 2 emails. Can anyone help? The code from Mr3lade is spot on. (Thanks Mr3lade by the way – I hadn’t spotted it was also causing duplicate entried in the activity stream) Posted code can get a bit messed up when posting to WordPress support so make sure you haven’t forgotten to comment out that last line. The specific line that causes the duplicate email to be sent is wp_new_user_notification( $user_id ) Thanks a lot for the solution. Checking it out.

Comments

5 shown
SinOB 2014-10-22T13:01:00+00:00

I am experiencing the same issue Wordpress version 4.0 BP version 2.1.1 BP Disable Activation Reloaded version 1.2.1 When a new user registers two ‘New user registration’ emails are sent to my admin email address. I suspect this is because in your code you are calling wp_new_user_notification() and bp_core_activate_signup() . Since bp_core_activate_signup() is a core bp function that aldeady calls wp_new_user_notification() two emails are sent. Removing wp_new_user_notification() on line 199 of bp-disable-activation-loader.php will probably stop this.

Mr3lade 2014-11-08T11:33:00+00:00

Removing the following lines from bp-disable-activation-loader.php will fix all issues. Furthermore, you probably didn’t notice that a new user registration also appeares twice in the Activitystream. //Add note on Activity Streamif ( function_exists( 'bp_activity_add' ) ) {$userlink = bp_core_get_userlink( $user_id );bp_activity_add( array('user_id' => $user_id,'action' => apply_filters( 'bp_core_activity_registered_member', sprintf( __( '%s became a registered member', 'buddypress' ), $userlink ), $user_id ),'component' => 'profile','type' => 'new_member') );}//Send email to adminwp_new_user_notification( $user_id );

nelsonq 2015-02-23T10:18:00+00:00

I tried removing the lines but it doesn’t seem to be working. I still get 2 emails. Can anyone help?

SinOB 2015-02-25T10:27:00+00:00

The code from Mr3lade is spot on. (Thanks Mr3lade by the way – I hadn’t spotted it was also causing duplicate entried in the activity stream) Posted code can get a bit messed up when posting to WordPress support so make sure you haven’t forgotten to comment out that last line. The specific line that causes the duplicate email to be sent is wp_new_user_notification( $user_id )

hugblue71 2015-02-25T16:14:00+00:00

Thanks a lot for the solution. Checking it out.