Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress causing fatal error when upgrading to PHP 8.2


  • usercba
    Participant

    @usercba

    We’re encountering a fatal error (which appears to have been a warning in php 7.4.33)
    We are using the following:
    WordPress version 6.6.2
    Active theme: Astra Child (version 1.0.0)
    Current plugin: BuddyPress (version 14.1.0)
    PHP version 8.2.24

    Error Details
    =============
    An error of type E_ERROR was caused in line 942 of the file /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php. Error message: Uncaught Error: Undefined constant “BP_XPROFILE_BASE_GROUP_NAME” in /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-content/plugins/buddypress/bp-core/admin/bp-core-admin-tools.php:942
    Stack trace:
    #0 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-includes/class-wp-hook.php(324): bp_core_admin_debug_information(Array)
    #1 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #2 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-admin/includes/class-wp-debug-data.php(1487): apply_filters(‘debug_informati…’, Array)
    #3 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-admin/site-health-info.php(36): WP_Debug_Data::debug_data()
    #4 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-admin/includes/class-wp-site-health.php(68): require_once(‘/home/customer/…’)
    #5 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-includes/class-wp-hook.php(324): WP_Site_Health->show_site_health_tab(‘debug’)
    #6 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #7 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #8 /home/customer/www/staging18.cbatraininginstitute.org/public_html/wp-admin/site-health.php(220): do_action(‘site_health_tab…’, ‘debug’)
    #9 {main}
    thrown

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

  • emaralive
    Participant

    @emaralive

    Hi @usercba, thanks for reporting this issue,

    I can duplicate this issue by:

    • Disabling the Extended Profiles component.
    • Visit the Site Health Info tab.

    PHP 7.4 provides error warning, i.e., Use of undefined constant, for 2 Constants – BP_XPROFILE_BASE_GROUP_NAME and BP_XPROFILE_FULLNAME_FIELD_NAME. With PHP 8.x, operation halts with a fatal error for BP_XPROFILE_BASE_GROUP_NAME.

    A Trac ticket will be opened to resolve this issue ASAP.


    usercba
    Participant

    @usercba

    Great! Thank you


    emaralive
    Participant

    @emaralive

    Trac ticket #9245 was created to resolve the reported issue.


    emaralive
    Participant

    @emaralive

    This topic has been resolved by BuddyPress 14.2.1 Maintenance & Security release.

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