[buddypress-trac] [BuddyPress Trac] #8093: Field Visibility Not Honored in PHP 7.1 & above

buddypress-trac noreply at wordpress.org
Thu May 16 18:23:40 UTC 2019


#8093: Field Visibility Not Honored in PHP 7.1 & above
------------------------------+---------------------
 Reporter:  brianbws          |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  5.0.0
Component:  Extended Profile  |     Version:  4.3.0
 Severity:  normal            |  Resolution:
 Keywords:  needs-testing     |
------------------------------+---------------------
Changes (by boonebgorges):

 * keywords:   => needs-testing
 * milestone:  Awaiting Review => 5.0.0


Comment:

 It appears that the value coming back from the `bp_get_user_meta()` call
 on 1286 is a string rather than an array:
 https://buddypress.trac.wordpress.org/browser/tags/4.3.0/src/bp-xprofile
 /bp-xprofile-functions.php?marks=1286#L1281 More recent versions of PHP
 treat this kind of thing differently from previous versions.

 How the string got to be in the database, I'm unsure. But we can likely
 work around the issue by enforcing the array. Could you try
 [attachment:8093.diff] to see if it does the trick for you?

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


More information about the buddypress-trac mailing list