[buddypress-trac] [BuddyPress Trac] #8332: Token {{recipient.name}} is not processed by BuddyPress

buddypress-trac noreply at wordpress.org
Thu Jul 16 16:19:14 UTC 2020


#8332: Token {{recipient.name}} is not processed by BuddyPress
-------------------------------+------------------------------
 Reporter:  connorwexc         |       Owner:  imath
     Type:  defect (bug)       |      Status:  assigned
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Emails             |     Version:  6.1.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by imath):

 Thanks for your feedback @connorwexc,

 FYI, I've copy-pasted the bp-custom.php content into an attached file.

 I believe the issue is not in BuddyPress as all tests I've made are using
 a regular WordPress site just like yours. Unfortunately the theme is a
 premium one and we cannot afford to test such themes.

 All tests I've made led to a good token replacement for
 `{{recipient.name}}`. Here's what I'd suggest:
 1. open a support topic on https://wplms.io/support/ to get their opinion
 about this issue.
 2. clone the Website on a staging/testing environment,
 3. Deactivate the theme and use a TwentyYear theme to see if the issue is
 due to the theme.
 4. If not, deactivate all plugins except BuddyPress to confirm the issue
 is not a BuddyPress one.
 5. Reactivate plugins one by one, making sure to test user registration to
 find the problematic plugin between each reactivation.

 In the meantime for the production site, here's a quick workaround to fix
 the issue, BuddyPress is using an email template located into:
 {{{
 /wp-content
   /plugins
     /buddypress
       /bp-templates
         /bp-nouveau
           /buddypress
              /assets
                 /emails
                   /single-bp-email.php
 }}}

 You can copy the `single-bp-email.php` file and put it into your active
 theme making sure it's located into

 {{{
 /wp-content
   /themes
     /YOUR-ACTIVE-THEME
        /buddypress
           /assets
              /emails
                /single-bp-email.php
 }}}

 Once there replace `<?php bp_email_the_salutation( $settings ); ?>` with
 any string like `Hi,`. This will remove completely the
 `{{recipient.name}}` token for all email types.

 Please keep me informed about your debugging of this issue. I'd like to
 understand what's going wrong to try to prevent this from happening even
 if it's due to a plugin or a theme overriding our code.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8332#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list