[buddypress-trac] [BuddyPress Trac] #5719: "Undefined index: Name" when Cancelling Friendship

buddypress-trac noreply at wordpress.org
Wed Jul 9 13:13:51 UTC 2014


#5719: "Undefined index: Name" when Cancelling Friendship
-------------------------------+------------------------------
 Reporter:  Faison             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Core               |     Version:  2.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by boonebgorges):

 Related ticket: #3725

 The issue appears to be that the name of your field_1 'Display Name' is
 not properly synced to your general BP settings ('bp-xprofile-fullname-
 field-name'). This can happen in a couple of odd edge cases, including
 where the field was modified by another plugin.

 For your specific case, you should be able to resolve the issue as
 follows:

 - Make sure that the `BP_XPROFILE_FULLNAME_FIELD_NAME` constant is not
 defined in bp-custom.php or wp-config.php. (Or, if it is defined, make
 sure it reads 'Display Name', exactly like the field name is saved in the
 database.)
 - Force a re-sync of the names by resaving the field. Dashboard > Users >
 Profile Fields. Then act as if you're going to edit the Display Name
 field. Save the field without changing any values.

 This should solve the problem for your installation.

 In the future, I would like for us to move away from using this kind of
 dynamic reference at all (or at least switch to a direct query). See eg my
 commit message in r7812.

 Thanks for the report.

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


More information about the buddypress-trac mailing list