• Resolved boca jo

    (@boca-jo)


    Hello Bangbay,

    Thanks again for this great plugin, and for keeping it updated so well.

    My members-only site uses WP User Avatar with a custom front-end Edit Profile page. (I’ve basically copied a bit of your HTML code into my page template so members can update avatars without seeing the WP admin backend.)

    I have a problem that showed up after updating WP User Avatar from 1.8.2 to 1.8.8. When my custom edit profile page does this:

    $current_user = get_userdata( $current_user->id );
    $first_name = get_user_meta(  $current_user->id, 'first_name', true);
    $last_name = get_user_meta(  $current_user->id, 'last_name', true);
    $wp_user_avatar = get_user_meta ($current_user->id, 'wp_user_avatar', true);

    I get this:

    Fatal error: Call to a member function wpua_is_author_or_above() on a non-object in /home/worldlead/www/www/wp-content/plugins/wp-user-avatar/includes/class-wp-user-avatar.php on line 53

    Any ideas?

    Joanne Wilson

    https://wordpress.org/plugins/wp-user-avatar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I use the variable $wp_user_avatar in my plugin, so I think there is a conflict. Try changing your variable to something else, e.g. $my_wp_user_avatar.

    Thread Starter boca jo

    (@boca-jo)

    Thank you, Bangbay. Your suggestion fixed the fatal error, so I will mark this topic as resolved.

    After getting past the fatal error, another issue arises where only the administrator can update their avatar. (I use a front-end edit profile page and customized roles & capabilities, perhaps similar to LabSecrets and myvancity in this forum.) I’ll re-post the second issue after experimenting a bit more…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Edit Profile page error after 1.8.2 -> 1.8.8 update’ is closed to new replies.