wpsnoop Fatal error: Cannot redeclare comment_count()

If you are dealing with a WordPress issue where a PHP Function comment_count() 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 20 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 20 different instances of potential conflicts where different plugins or themes share the function name.

Examples of this error include:

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/simple-indy/functions.php:301)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/illustrative/functions.php:23)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/sthblue/functions.php:223)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/sunshine/functions.php:340)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/nanoplex/functions.php:147)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/music-illustrated/functions.php:523)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/deep-mix/functions.php:237)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/oxydo/functions.php:56)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/garland-revisited/functions.php:46)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/plugins/shortcode/shortcode.php:187)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/zenpro/functions.php:103)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/me3/functions.php:387)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/black-hat/functions.php:16)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/corner/functions.php:142)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/bootstrap-ultimate/functions.php:167)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/worldoweb/functions.php:16)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/wpelegance2col/functions.php:427)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/istudio-theme/functions.php:211)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/khaki-traveler/functions.php:20)

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

PHP Fatal error: Cannot redeclare comment_count() (previously declared in wp-content/themes/fazio/libs/display.php:145)

This file is part of the WordPress theme Fazio 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.