Error message on my user profile
-
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 51Thankfully 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.
You must be logged in to reply to this topic.