wpsnoop Fatal error: Cannot redeclare my_deactivation()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare my_deactivation() (previously declared in wp-content/plugins/the-guardian-news-feed/gu-open-platform-settings.php:387)

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

PHP Fatal error: Cannot redeclare my_deactivation() (previously declared in wp-content/plugins/wp-notices/index.php:115)

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

PHP Fatal error: Cannot redeclare my_deactivation() (previously declared in wp-content/plugins/auto-schedule-posts/auto-schedule-posts.php:240)

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

PHP Fatal error: Cannot redeclare my_deactivation() (previously declared in wp-content/plugins/the-codetree-password-changer/codetree-pass-changer.php:31)

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

PHP Fatal error: Cannot redeclare my_deactivation() (previously declared in wp-content/plugins/tpro3-payment-gateway-for-woocommerce/tpro3.php:2578)

This file is part of the WordPress plugin WooCommerce TPro3 Payment Gateway 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.