wpsnoop Fatal error: Cannot redeclare get_avatar()

If you are dealing with a WordPress issue where a PHP Function get_avatar() was already declared it is most likely due to a plugin/theme conflict.

wpsnoop scanned and analyzed over 100,000 WordPress plugins and themes to find and locate potential conflicts including functions that share the same name.

This page has information on the 16 places where that function is declared and used in WordPress plugins and themes.

Note: Our database currently only taps into the free themes and plugins available in the publicly available WordPress plugins and themes, if your site uses paid plugins, themes or custom code there may be additional conflicts.


Our database has uncovered 16 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/0gravatar/index.php:67)

This file is part of the WordPress plugin 0gravatar and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/incarnate-for-wordpress/incarnate-for-wordpress.php:98)

This file is part of the WordPress plugin Incarnate for WordPress and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/smartava/smartAva.php:560)

This file is part of the WordPress plugin smartAva and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/wp-notifications/ln_livenotifications.php:5051)

This file is part of the WordPress plugin Wordpress Social Network and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/nnd-facebook-profile-for-gravatar/NNDFBProfGrav.php:29)

This file is part of the WordPress plugin NND Facebook Gravatar Grabber and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/author-image/wp-custom-author-image.php:720)

This file is part of the WordPress plugin WP Custom Author Image and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/custom-profile-avatar/modules/get_avatar.php:69)

This file is part of the WordPress plugin Custom Profile Avatar and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/default-gravatar-sans/default-gravatar-sans.php:38)

This file is part of the WordPress plugin Default Gravatar Sans and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/author-or-user-image/author_image.php:327)

This file is part of the WordPress plugin WordPress Author Image and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/post-author/post_author.php:299)

This file is part of the WordPress plugin Post Author and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/usersidebarpanel/functions.php:167)

This file is part of the WordPress plugin User Sidebar Panel and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/sem-author-image/sem-author-image.php:728)

This file is part of the WordPress plugin Author Image and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/add-local-avatar/avatars.php:1316)

This file is part of the WordPress plugin Avatars and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/expire-password/pluggable.php:1655)

This file is part of the WordPress plugin PassExpire and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/bbpress-social-network/ln_livenotifications.php:5051)

This file is part of the WordPress plugin BBPress Social Network and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_avatar() (previously declared in wp-content/plugins/baw-gravatar-google-image/bawggi.php:217)

This file is part of the WordPress plugin BAW Gravatar Google image and could be interacting with another theme or plugin and causing a fatal error.

The error occurs because two (or more) plugins that you are using are both trying to declare a function with the same name.