Title: PHP Fatal error: Uncaught Error
Last modified: May 18, 2021

---

# PHP Fatal error: Uncaught Error

 *  [lordmatt](https://wordpress.org/support/users/lordmatt/)
 * (@lordmatt)
 * [5 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-9/)
 * I have found a bug in bp-follow-notifications.php
 * Line 308 was throwing a fatal error in my logs.
 * The line:
    `$has_notified[] = $r['leader_id'];`
 * The error:
    `PHP Fatal error: Uncaught Error: [] operator not supported for strings
   in /[snip]/wp-content/plugins/buddypress-followers/_inc/bp-follow-notifications.
   php:308`
 * This is because line 301 asks for a string by setting the single flag to true
 * `$has_notified = bp_get_user_meta( $r['follower_id'], 'bp_follow_has_notified',
   true );`
    -  This topic was modified 5 years ago by [lordmatt](https://wordpress.org/support/users/lordmatt/).
      Reason: tiny markup correction

The topic ‘PHP Fatal error: Uncaught Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-followers_ffe5b1.svg)
 * [BuddyPress Follow](https://wordpress.org/plugins/buddypress-followers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-followers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-followers/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-followers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-followers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-followers/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lordmatt](https://wordpress.org/support/users/lordmatt/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-9/)
 * Status: not resolved