WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress FollowMe
Please Help! (6 posts)

  1. projutt
    Member
    Posted 1 year ago #

    Hi,
    I am getting this massage and my my site crashed completely. I am using latest versions of WordPress and BuddyPress. As I activate buddypress followme plugin I got this message. Please tell me how to fix this.
    Thanks in Advance.

    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\www\mysite\wp-content\plugins\buddypress-follow-me\includes\bp-follow-functions.php on line 105

    http://wordpress.org/extend/plugins/buddypress-follow-me/

  2. meg@info
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I think you use PHP 5.4.

    You need to edit line 105 of C:\xampp\htdocs\www\mysite\wp-content\plugins\buddypress-follow-me\includes\bp-follow-functions.php :

    return apply_filters( 'bp_follow_is_following', (int)$follow->id, &$follow );

    replace it with

    return apply_filters( 'bp_follow_is_following', (int)$follow->id, $follow );

    feedback please if wrok.

    Regards.

  3. projutt
    Member
    Posted 1 year ago #

    Hi meg@info;
    I did as you told me now it seems working but now I have these messages regarding this plugin:

    Warning: Creating default object from empty value in C:\xampp\htdocs\www\mysite\wp-content\plugins\buddypress-follow-me\includes\bp-follow-loader.php on line 256

    Warning: Creating default object from empty value in C:\xampp\htdocs\www\mysite\wp-content\plugins\buddypress-follow-me\includes\bp-follow-loader.php on line 257

  4. meg@info
    Member
    Plugin Author

    Posted 1 year ago #

    Hi projutt,

    Add this code before ligne 256 in bp-follow-loader.php

    if (version_compare(PHP_VERSION, '5.4.0') >= 0){
        $bp->{$this->id}->followers = new stdClass;
        $bp->{$this->id}->following = new stdClass;
    }

    feedback please if wrok.
    Regards.

  5. projutt
    Member
    Posted 1 year ago #

    hi meg@info,
    I think it is working properly with out adding code in line 256. I don't know how but it stopped sending me that message. There is another thing that my theme is CBOX (common in a box) it is not compatible with it. CBOX theme sub menus shows vertically but this plugin's shows horizontally. They are conflicting with each other. Can I fix this and how?
    Thanks your very much for your support and help.

  6. redbullfx
    Member
    Posted 1 year ago #

    reply to meg@info
    I had the same problem and messages as Projutt, and I did as you said.

    I edited bp-follow-functions.php @ line 105 with

    return apply_filters( 'bp_follow_is_following', (int)$follow->id, $follow );

    and then I edited bp-follow-loader.php by adding

    if (version_compare(PHP_VERSION, '5.4.0') >= 0){
    $bp->{$this->id}->followers = new stdClass;
    $bp->{$this->id}->following = new stdClass;
    }

    before line 256.

    The result. Everything is working awesome. Thank you meg@info. Awesome plugin. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.