WordPress.org

Forums

BuddyPress Follow
[resolved] Not Compatible with PHP 5.4 and above (2 posts)

  1. Joseph G.
    Member
    Posted 2 years ago #

    Hi! For everyone who experienced the same issue, it might help if I paste my problem and solution here:

    Errors with PHP > 5.4

    1. Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in C:\xampp\htdocs\buddy\wp-content\plugins\buddypress-followers\bp-follow.php on line 720

    // solution
    // in line 720
      return apply_filters( 'bp_follow_is_following', (int)$follow->id,    &$follow );
    // change it to:
     return apply_filters( 'bp_follow_is_following', (int)$follow->id, $follow );

    2.Warning: Creating default object from empty value in C:\xampp\htdocs\buddy\wp-content\plugins\buddypress-followers\bp-follow.php on line 38
    Warning: Creating default object from empty value in C:\xampp\htdocs\buddy\wp-content\plugins\buddypress-followers\bp-follow.php on line 41
    Warning: Creating default object from empty value in C:\xampp\htdocs\buddy\wp-content\plugins\buddypress-followers\bp-follow.php on line 42

    // solution
    // add this code just above line 35
        $bp->follow = new stdclass();
        $bp->follow->followers = new stdclass();
        $bp->follow->following = new stdclass();

    Thanks

  2. Joseph G.
    Member
    Posted 2 years ago #

    BTW, I love this plugin. Looks like this plug-in isn't updated anymore. I would like to update this plugin if given a chance. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Follow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.