WordPress.org

Support

Support » Themes and Templates » Fatal error: Call to undefined function: get_avatar() using Gear Theme

Fatal error: Call to undefined function: get_avatar() using Gear Theme

  • We’re running 2.3.2 with the gear.1.2.9 theme. Posts result in this error:

    Fatal error: Call to undefined function: get_avatar() in /home2/username/truth-www/wordpress/wp-content/themes/gear.1.2.9/gear/comments.php on line 33

    Do we dump the theme (rather keep it) or change something?

    Thanks….

Viewing 1 replies (of 1 total)
  • FYI the undefined function get_avatar() is available for WordPress 2.5 & above. The theme is obviously made for WordPress 2.5++.

    You either need to upgrade your WordPress or fixes the theme so it wont throw fatal error.

    find the get_avatar() code on line 33 comments.php replace it with

    <?php if(function_exists('get_avatar')) echo get_avatar($comment, '50');  ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Call to undefined function: get_avatar() using Gear Theme’ is closed to new replies.
Skip to toolbar