WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. classicrockonline
    Member
    Posted 5 years ago #

    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....

  2. chaoskaizer
    Member
    Posted 5 years ago #

    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');  ?>

Topic Closed

This topic has been closed to new replies.

About this Topic