Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress "bp-core.php" fatal error


  • critta10
    Participant

    @critta10

    Hello, I recently discovered I have a fatal error on one of my sites “http://www.universalonehealing.com/” I believe recently it was automatically updated.

    The buddypress version, I am not sure of because I can’t get onto the site, but its an older version. I want to say it was last updated in 2012 or 11

    And wordpress 8.3 I believe. Two updates occurred an auto update of WordPress and I believe a PHP update with Hostgator.

    The error I get when trying to log in or go to pages on the site is “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 /home4/unione/public_html/wp-content/plugins/buddypress/bp-core.php on line 565”

    However I can’t log into the site to update my buddypress. I do have the bp-core.php open via ftp and can update the file as needed. I just need direction on what I should be replacing on line 565?
    Currently it says, “return apply_filters( ‘bp_core_get_users’, BP_Core_User::get_users( $type, $per_page, $page, $user_id, $include, $search_terms, $populate_extras ), &$params );”

    Any direction is beyond appreciated! Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

  • shanebp
    Moderator

    @shanebp

    That is an old version of BP.

    You could try changing the apply_filters to
    return apply_filters( 'bp_core_get_users', BP_Core_User::get_users( $type, $per_page, $page, $user_id, $include, $search_terms, $populate_extras ), $params );

    That might get you past the fatal error.
    You should update BP, but you cannot jump all the way to BP 2.0.
    You’ll have to step up thru each version.
    You can get older versions here:
    https://wordpress.org/plugins/buddypress/developers/


    critta10
    Participant

    @critta10

    Thanks did that and now I am getting this fatal error:
    Fatal error: Call-time pass-by-reference has been removed in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core/bp-core-classes.php on line 228

    Line 228 says “$paged_users = BP_Core_User::get_user_extras( &$paged_users, $user_ids, $type );”

    And suggests?

    Once I am able to log in I will upgrade through the versions like you suggest.


    shanebp
    Moderator

    @shanebp

    You’re probably going to get a series of fatal errors.

    If they are all similar – as these 2 were – remove the ampersand &
    So for the latest error:
    &$paged_users will be $paged_users


    critta10
    Participant

    @critta10

    I went through all the files and deleted out the “&” sign as the fatal error called for and then when finished this popped up:

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/invite-anyone/by-email/by-email.php on line 51

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core.php on line 101

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core.php on line 114

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core.php on line 160

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core.php on line 177

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 79

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-blogs.php on line 69

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-forums.php on line 20

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-friends.php on line 39

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-groups.php on line 75

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-messages.php on line 72

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-xprofile.php on line 105

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-core/bp-core-settings.php on line 10

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 980

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 980

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 980

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 980

    Warning: Creating default object from empty value in /home4/unione/public_html/wp-content/plugins/buddypress/bp-activity.php on line 980

    Warning: Cannot modify header information – headers already sent by (output started at /home4/unione/public_html/wp-content/plugins/invite-anyone/by-email/by-email.php:51) in /home4/unione/public_html/wp-includes/pluggable.php on line 876

    Recommendations?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Buddypress "bp-core.php" fatal error’ is closed to new replies.
Skip to toolbar