• Resolved Pascal

    (@pgworks)


    Hi,

    We encountered a fatal error on our WordPress site when using the BuddyPress XProfile Image Field plugin. The error occurs when attempting to activate a user via the BuddyBoss platform’s signup process.

    Error Details:

    WordPress Version: 6.6.2

    PHP Version: 8.2.24

    Active Theme: BuddyBoss Theme (Version 2.6.80)

    Plugin Causing the Error: BuddyPress XProfile Image Field (Version 3.0.0)

    Error Type: E_ERROR

    File: /wp-content/plugins/buddypress-xprofile-image-field/bp-xprofile-image-field.php

    Line: 478

    Strack trace:
    Stack trace:
    #0 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(324): BP_XProfile_Image_Field->bpxp_image_field_update_on_user_activation(27, '...', Array)
    #1 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #2 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/bp-members-functions.php(2098): do_action('...', 27, '...', Array)
    #4 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-signup.php(735): bp_core_activate_signup('...')
    #5 /data/sites/web/b32jxcydmyrdbxio/www/wp-content/plugins/buddyboss-platform/bp-members/classes/class-bp-members-admin.php(1909): BP_Signup::activate(Array)
    #6 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(324): BP_Members_Admin->signups_admin_load('')
    #7 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #8 /data/sites/web/b32jxcydmyrdbxio/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /data/sites/web/b32jxcydmyrdbxio/www/wp-admin/admin.php(237): do_action('...')
    #10 /data/sites/web/b32jxcydmyrdbxio/www/wp-admin/users.php(11): require_once('...')
    #11 {main}
      thrown

    Looking forward to your support. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alex Githatu

    (@kalengi)

    Hello @pgworks,

    I suspect that BuddyBoss is not using the latest version of BuddyPress. There was a change in version 14 that altered how user registrations are handled. I do not have a copy of BuddyBoss on hand to perform a test.

    I can look into your particular installation to figure out exactly what is causing the error. This, however comes at a fee. Alternatively, you can get in touch with BuddyBoss devs for assistance on how to get to the bottom of the issue.

    Plugin Author Alex Githatu

    (@kalengi)

    On taking a second look, I think you may be able to sort out the issue with the following alterations:

    File: /wp-content/plugins/buddypress-xprofile-image-field/bp-xprofile-image-field.php

    Line 478: Replace the whole line with

    $field = new BP_XProfile_Field( $xprofile_field_id );

    Line 480: Replace the whole line with

    if($field->type !== $this::FIELD_TYPE_NAME) {

    These changes should allow you to proceed with your project pending the next plugin update that shall incorporate them.

    Thread Starter Pascal

    (@pgworks)

    Thanks a lot for the quick bugfix!

    Plugin Author Alex Githatu

    (@kalengi)

    You’re welcome!

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

The topic ‘Uncaught Error: Call to undefined function bp_xprofile_get_field_type()’ is closed to new replies.