Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error of buddypress after updating wordpress


  • Arshad Hussain
    Participant

    @hussainarsh

    I am using following of buddypress:

    BuddyPress: 2.4.3
    BP Profile Search: 4.4.1
    BP Registration Options: 4.2.10
    BuddyPress Custom Profile Menu: 1.5.1

    I had a wordpress version 4.4.1

    When I tried to update wordpress from version 4.4.1 to latest version of wordpress (i.e 4.9.5), it gives me following error on the website:

    Fatal error: Call to undefined function bp_is_user_inactive() in /public_html/dev/wp-content/plugins/buddypress/bp-core/bp-core-caps.php on line 237

    I am very frustrated now as this error comes.

    Please help somebody.

    Thanks

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

  • Venutius
    Moderator

    @venutius

    Just to be sure, did you try updating to the latest version of BP before you updated WP?


    Arshad Hussain
    Participant

    @hussainarsh

    Thanks for your kind response.

    Actually, previous developer has done some customization in BP core files instead of overriding them.

    Is there any solution to fix this error without updating buddypress?


    Venutius
    Moderator

    @venutius

    The issue is that I updated several sites to the latest WP without an error, so I can’t replicate your fault. It could well be that your own mods to BP Core have caused this, so it’s not possible to advise how to fix it.

    One thing I’d try though is deactivating BP, updating WP then reactivating BP. The only issue with this is you may find yourself unable to reactivate BP. If that happened then you would need to install the latest version of BP and re-implement your bp customisations.

    Technically, once you fork BP, it’s up to you to support it, since it’s impossible for us to know what changes were made and therefore how to approach any issues that you may face.


    Arshad Hussain
    Participant

    @hussainarsh

    Can you please tell me that why this error comes so that I can research on that. Am I missing something or anything you may advice.

    Your remark: It could well be that your own mods to BP Core have caused this
    My remark: Can you explain or hint on this so that I can turn it off or do any custom coding to fix it.

    Thanks


    Venutius
    Moderator

    @venutius

    Well what your error is saying is that on line 237 of /public_html/dev/wp-content/plugins/buddypress/bp-core/bp-core-caps.php there is a call to a function called bp_is_user_inactive, which it’s not recognising as being defined. There can be a number of reasons for this:

    The function has not been defined
    The core file that loads this function is missing or not found
    A plugin or some other file is interacting with WP to the effect that it can’t see that function.

    Installing Query Monitor and Debug Bar, turned on Error Logging in wp-config.php may help you gather more information about the error.

    This function should be defined in plugins/buddypress/bp-members/bp-members-functions.php around line 1129 so one check you could make is to see if it’s there.


    Venutius
    Moderator

    @venutius

    Standard debugging practice would be to deactivate all other plugins except BuddyPress, switch to a default theme such as 2017 and see if the error remains. If not then it’s a plugin or theme that is causing the problem, if the fault remains then there’s something wrong with the BP installation.


    Arshad Hussain
    Participant

    @hussainarsh

    I am really frustrated now.

    I have take a look buddypress new version 2.9.4 that has file/folder structure changed.

    What I have done is that I replace bp-members and bp-core folders with new versions folder.

    I also replaced bp-loader.php and upload class-buddypress.php file to the root of buddypress plugin and then updated wordpress core to the latest version. it worked successfully.

    But I don’t want this. I simply want wordpress core update without updating/editing buddypress plugin files/folders.

    Please help.


    Varun Dubey
    Participant

    @vapvarun

    @hussainarsh contact your developer, you will need to move all customization out of core file edits. It’s hard to suggest anything code fixes with customized BuddyPress version.


    Paul Gibbs
    Keymaster

    @djpaul

    Yes, do not ever edit another plugin’s or theme’s files. This’ll happen, you’ll loose the changes when they get updated, and you’ll have to move them out into separate plugins etc.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar