strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. #75

Open erich2121 opened 8 months ago

erich2121 commented 8 months ago

Hello! I have a problem. The front view stopped appearing on some pages. Literally 2-3 days ago. When i disable a plugin - everything is ok.

<?php
    $post_author_id = get_post_field('post_author', get_the_ID());

    echo get_avatar($post_author_id, 86);
?>

If i remove get_avatar - everything is ok. But i have a same code on another page:

<a href="<?php echo get_author_posts_url($user->ID); ?>" class="community-item">
     <div class="community-item__avatar">
           <?php
               echo get_avatar($user->ID, 80);
           ?>
      </div>
</a>    

That code causes an error...

The uploading page where used a shortcode <?= do_shortcode('[basic-user-avatars]'); ?> stopped appearing too.

Please help.

andrewlimaza commented 7 months ago

Hi @erich2121

Sorry to hear about this issue you are having here.

Are you still having issues with this?

To confirm the steps to replicate the issue:

  1. Activate Basic User Avatars
  2. Create a custom output for get_avatar function that WordPress provides and it does not display the avatar (in a custom plugin or page template).

Do you have any other plugins installed that might filter the get_avatar?

Our GitHub repositories aren't monitored for support requests like this, in the future you may post site specific issues to https://wordpress.org/plugins/basic-user-avatars/

Thanks for your patience.