wpsnoop Fatal error: Cannot redeclare add_my_stylesheet()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/artisteer-buddy/artisteerbuddy.php:64)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/golf-tracker/golf-tracker.php:709)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/wp-best-practices/wp-best-practices.php:223)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/rl2/rl2.php:595)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/interesting-links-list/int-list.php:491)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/music-backgrounds/themusicase.php:24)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/how-tipsy-is-your-town/TipsiestPostcode.php:267)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/android-application-widget/android-app-widget.php:164)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/pending-notification-plus/index.php:40)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/adsense-custom-placement/cr-adsense-custom-placement.php:35)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/wordpress-weather-widget/index.php:25)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/nanowrimo-word-count/nwc-word-count.php:4)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/wp-quick-contact-form/wp-quick-contact-form.php:37)

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

PHP Fatal error: Cannot redeclare add_my_stylesheet() (previously declared in wp-content/plugins/search-light/searchLight.php:60)

This file is part of the WordPress plugin Search Light 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.