Title: Gravatar Error
Last modified: August 19, 2016

---

# Gravatar Error

 *  [de3r7](https://wordpress.org/support/users/de3r7/)
 * (@de3r7)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/gravatar-error/)
 * I get this fatal error where the visitors are suposed to comment and i think 
   it as something to do with my gravatar plugging!
 * here is the error: <img border=”0″ style=”padding:1px; float:left; margin:0px
   10px 5px 0px; border:1px solid #ccc;” alt=”avatar” src=”
    Fatal error: Call to
   undefined function gravatar() in /home/de3r7/public_html/wp-content/themes/Simplism/
   comments.php on line 18
 * can anyone help me! :S

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

 *  [do77](https://wordpress.org/support/users/do77/)
 * (@do77)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/gravatar-error/#post-1185783)
 * Check your comment.php file. There is probably a minor error with your gravatar
   template tag.
 *  Thread Starter [de3r7](https://wordpress.org/support/users/de3r7/)
 * (@de3r7)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/gravatar-error/#post-1185798)
 *     ```
       <?php if ($comments) : ?>
       <div id="commentwrap">
        <ol class="commentlist">
   
        <?php foreach ($comments as $comment) : ?>
   
         <li class="<?=$oddcomment;?>">
          <img border="0" style="padding:1px; float:left; margin:0px 10px 5px 0px; border:1px solid #ccc;" alt="avatar" src="<?php gravatar("R", 48, get_option('home')."/wp-content/themes/Simplism/images/avatar.gif"); ?>" />
   
          <a name="comment-<?php comment_ID() ?>"></a><cite><?php comment_author_link() ?></cite> Says:<br />
   
          <div class="comment-inside">
          <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
   
          <?php comment_text() ?>
          </div>
       </li>
       ```
   
 * cant you help me i really don’t know what it the minor error lol:P

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

The topic ‘Gravatar Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [de3r7](https://wordpress.org/support/users/de3r7/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/gravatar-error/#post-1185798)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
