wpsnoop Fatal error: Cannot redeclare stats_function()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/strangebutfunnys-random-funny-picture/strangebutfunny-random-funny-picture.php:14)

This file is part of the WordPress plugin StrangeButFunny's Random Funny Picture! and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/easiest-contact-form/easiest-contact-form.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/easiest-imageshack-uploader/imageshack.php:13)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/easiest-newsletter/easiest-newsletter.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/image-and-link-scraper/alex.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/user-counter/user-counter.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/wordpress-sql-backup/alex-wp-backup.php:13)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/set-favicon/set-favicon.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/alex-syntax-highlighter/alex.php:11)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/alex-wrong-password/wrong-password.php:12)

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

PHP Fatal error: Cannot redeclare stats_function() (previously declared in wp-content/plugins/is-user-logged-in/is_user_logged_in.php:12)

This file is part of the WordPress plugin Alex Is User Logged In 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.