• Resolved SomniumLucidus

    (@somniumlucidus)


    Hi! I’m in trouble. I’ve added an avatar field to the user profile and everything looks fine except for my own backend profile.

    Just where the avatar should appear, I get the following error:

    Fatal error: Uncaught TypeError: basename(): Argument #1 ($path) must be of type string, array given in /home18/soci94c/public_test/wp-content/plugins/profile-builder/front-end/default-fields/avatar/avatar.php:51 Stack trace: #0 /home18/soci94c/public_test/wp-content/plugins/profile-builder/front-end/default-fields/avatar/avatar.php(51): basename(Array) #1 /home18/soci94c/public_test/wp-includes/class-wp-hook.php(324): wppb_avatar_handler('', 'back_end', Array, 4, Array, Array) #2 /home18/soci94c/public_test/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array) #3 /home18/soci94c/public_test/wp-content/plugins/profile-builder/front-end/default-fields/fields-functions.php(30): apply_filters('wppb_admin_outp...', '', 'back_end', Array, 4, Array, Array) #4 /home18/soci94c/public_test/wp-includes/class-wp-hook.php(324): wppb_display_fields_in_admin(Object(WP_User)) #5 /home18/soci94c/public_test/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home18/soci94c/public_test/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home18/soci94c/public_test/wp-admin/user-edit.php(884): do_action('show_user_profi...', Object(WP_User)) #8 /home18/soci94c/public_test/wp-admin/profile.php(18): require_once('/home18/soci94c...') #9 {main} thrown in /home18/soci94c/public_test/wp-content/plugins/profile-builder/front-end/default-fields/avatar/avatar.php on line 51

    Thankfully I’m in a test site.

    This error does not happen on other users’ backend profile pages, just on mine. Since the error prevents the Update Profile button from appearing, I can’t modify the info in my own profile.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @somniumlucidus,

    Thank you for reproting this!

    I’ve created a task and this issue will be fixed in our next updates to Profile Builder

    Thread Starter SomniumLucidus

    (@somniumlucidus)

    Thanks, @alexandrubodea!

    I even tried deactivating all plugins except Profile Builder, and the error persisted, so I’m pretty confident that this is some kind of bug from the plugin.

    Meanwhile, I’ve noticed that the error also shows up if I display my profile on the frontend via shortcode.

    Plugin Support alexandrubodea

    (@alexandrubodea)

    Indeed, this error is related to the plugin.

    Thank you for the additional details. It will be fixed as soon as possible.

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

You must be logged in to reply to this topic.