• Resolved Joseph G.

    (@dunhakdis)


    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

Viewing 1 replies (of 1 total)
  • Thread Starter Joseph G.

    (@dunhakdis)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Not Compatible with PHP 5.4 and above’ is closed to new replies.