[buddypress-trac] [BuddyPress Trac] #9010: PHP Fatal error: Uncaught TypeError: Illegal offset type in /buddypress/bp-activity/bp-activity-functions.php:798

buddypress-trac noreply at wordpress.org
Tue Oct 24 07:10:07 UTC 2023


#9010: PHP Fatal error: Uncaught TypeError: Illegal offset type in /buddypress/bp-
activity/bp-activity-functions.php:798
--------------------------+-------------------------------
 Reporter:  btwebdesign   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  11.4.0
Component:  Activity      |    Version:  11.3.2
 Severity:  normal        |   Keywords:  changes-requested
--------------------------+-------------------------------
 PHP Fatal error: Uncaught TypeError: Illegal offset type in
 /html/wordpress/wp-content/plugins/buddypress/bp-activity/bp-activity-
 functions.php:798

 Error:
 if ( isset( $bp->activity->track[ $activity_type ]->{$arg} ) ) {
    return $bp->activity->track[ $activity_type ]->{$arg};

 Solution (wrong set ]-brackets):
 if ( isset( $bp->activity->track[ $activity_type ->{$arg}] ) ) {
    return $bp->activity->track[ $activity_type ->{$arg}];

 Buddpress Version 11.3.2 and several older versions

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9010>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list