Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error When Activating Pending Account


  • baby.face
    Participant

    @babyface-1

    Hello –

    In the Manage Pending Memberships page when I click to Activate a Pending Account I get the following fatal error.

    Despite the error, the pending account does get activated and the requesting member gets a confirmation notification.

    Any assistance with this would be greatly appreciated.

    Thank you –

    Fatal error: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249 Stack trace: #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array) #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array) #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array) #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array) #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”) #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php on line 249

    WordPress: 6.0
    BuddyPress: 10.3.0
    Website: https://nondualhealersassociation.org/

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

  • pycc
    Participant

    @pycc

    I have same issues when I try to Activate a Pending Account manually


    KaineLabs Team
    Participant

    @kainelabsteam

    Hi @babyface-1 @pycc

    You may try disable all non BuddyPress plugin and change your WP theme to default theme for temporary.

    Check site to see if issue still exists. If issue goes away after deactivating other plugins and switching theme then this means that either the theme or one of the plugins was conflicting with BuddyPress. If it turns out to be a plugin/theme conflict, then you need to activate the plugins/theme one by one until you find the plugin/theme that causes the issue to come back.

    If the issue still exists then it is not a plugin or theme conflict. And do these things

    1. If you have a custom code in bp-custom.php, please remove it for temporary
    2. Make sure to use the latest version of BuddyPress
    3. Check your PHP version, and upgrade it to minimum 7.4 version.

    PS: Backup your website first before do those steps!


    pycc
    Participant

    @pycc

    Its not work for me,
    I disabled all plugins, and change my theme to a wordpress theme,
    I upgrade my PHP version to 7.4

    I don’t found the bp-custom.php file
    And I have the last version of buddypress 10.3.0


    pycc
    Participant

    @pycc

    Its not work for me,
    I disabled all plugins, and change my theme to a wordpress theme,
    I upgrade my PHP version to 7.4

    I don’t found the bp-custom.php file
    And I have the last version of buddypress 10.3.0

    the issue still exists
    Fatal error: Uncaught Error: Class 'BP_Notifications_Notification' not found in /home/logimtqa/sites/giz/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249


    baby.face
    Participant

    @babyface-1

    I disabled all the plugins and switched the theme to twenty-twenty-two. There is no bp-custom.php file. I also downloaded the latest version of BuddyPress and replaced the original BP 10.3.0 plugin folder with the newly downloaded one. I am running PHP 7.4.

    The same fatal error persists while the user requesting site access gets approved.

    Here is the fatal error from the error screen:
    Fatal error: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249 Stack trace: #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array) #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array) #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array) #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array) #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”) #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php on line 249

    Also, from WordPress’s built-in fatal error detection feature:

    WordPress version 6.0.1
    Active theme: Twenty Twenty-Two (version 1.2)
    Current plugin: BuddyPress (version 10.3.0)
    PHP version 7.4.30

    Error Details
    =============
    An error of type E_ERROR was caused in line 249 of the file /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php. Error message: Uncaught Error: Class ‘BP_Notifications_Notification’ not found in /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/bp-members-membership-requests.php:249
    Stack trace:
    #0 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(309): bp_members_membership_requests_delete_notifications_on_change(Array)
    #1 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(false, Array)
    #2 /home/nondualhealersas/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-signup.php(961): do_action(‘bp_core_signup_…’, Array, Array)
    #4 /home/nondualhealersas/public_html/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php(1816): BP_Signup::activate(Array)
    #5 /home/nondualhealersas/public_html/wp-includes/class-wp-hook.php(307): BP_Members_Admin->signups_admin_load(”)
    #6 /home/nondualhealersas/public_html/wp-includes/class-wp-h

    In addition, the only other BP plugin I had been using was BuddyPress Xprofile Custom Field Types Version 1.2.4 by BuddyDev. This has been disabled along with everything other than the BP plugin so I’m not sure if this has any relevance.

    Assistance would be appreciated.


    MickFrench
    Participant

    @mickfrench

    Hello, I got the same error at same line 249 when I want to activate a pending account manually.
    This happen with
    WordPress version 6.0.1
    Active theme: Sydney
    Current plugin: BuddyPress (version 10.3.0)
    PHP version 7.4.30
    I tried with no plugin only the Sydney Theme. It happens also with precedent WP version.
    I see nothing bad except this error on an alert page.
    I have to go back and continue as admin.

    I’ve seen a topic where Mathieu Viet & David Cavins are working on it last 8 month.
    /bp-members/bp-members-membership-requests.php:249
    May be they can take a look ?
    Thank you

    Hi thanks for the report, it looks like a bug with the site membership request feature @dcavins could you look at it?

    I wonder if it’s relative to https://buddypress.trac.wordpress.org/ticket/8693


    MickFrench
    Participant

    @mickfrench

    Thanks a lot Mathieu for your fast response

    I have found this in my search of uncaught errors:

    “Compatibility Fix: Added support for a define to disable a feature of Sync that sets the WP_ADMIN define to true when handling an authenticated request from the Sync server. This feature exists to prevent compatibility issues with some security plugins yet can also cause a conflict with some plugins. To disable this feature, add the following to the site’s wp-config.php file:
    define( ‘ITHEMES_SYNC_SKIP_SET_IS_ADMIN_TO_TRUE’, true );”

    Do you think that it will do the job looking forward a solution ?
    I mean adding into the wp-config.php file:
    define( ‘BP_SIGNUPS_SKIP_USER_CREATION’, true );
    Thank you ! et merci beaucoup 😉

    Mick

    Thank you for reporting this issue. The fix is in this commit: https://buddypress.trac.wordpress.org/changeset/13320

    We’ll release a maintenance release to address it, but if you need it fixed now, add the conditional in the commit is the solution.

    This issue only affects admin users using the Pending Memberships screen, so the problem shouldn’t cause any problems for your members. It also appears that it doesn’t break the membership requests workflow, as it occurs after the appropriate emails are sent.

    Thanks again for the reports!


    baby.face
    Participant

    @babyface-1

    Brilliant!! I replaced the bp-members-membership-requests.php with the version you provided and no more fatal errors. Thank you.


    MickFrench
    Participant

    @mickfrench

    Thank you David for you help !
    It works great now !

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