wpsnoop Fatal error: Cannot redeclare safely_add_stylesheet()

If you are dealing with a WordPress issue where a PHP Function safely_add_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 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 safely_add_stylesheet() (previously declared in wp-content/plugins/responsive-admin-maintenance-pro/inc/functions.php:20)

This file is part of the WordPress plugin Responsive Maintenance Pro With Countdown and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/wiki-on-medal/wiki-medal.php:100)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/wikipedia-for-tag-pages/wiki-tags.php:104)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/js-contact-form/Js Contact Form.php:134)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/qbot-question-answer/qbot.php:532)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/wp-dogecoin/wp-dogecoin.php:34)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/mobile-friendly-twenty-ten/mobile-friendly-twenty-ten.php:19)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/new-recent-posts-select-categories-by-thao-marky/index.php:337)

This file is part of the WordPress plugin New Recent Posts Select Categories By Thao Marky and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/floating-login/floating-login.php:30)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/language-icons-flags-switcher/functionsfile.php:128)

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

PHP Fatal error: Cannot redeclare safely_add_stylesheet() (previously declared in wp-content/plugins/cookies-pro/libs.php:3)

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