wpsnoop Fatal error: Cannot redeclare contains()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/ppc-fraud-detctor/ppc_fraud_detector.php:180)

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

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/fixed-menu-anchor/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php:102)

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

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/avectra-netforum-single-sign-on/src/helpers.php:214)

This file is part of the WordPress plugin fusionSpan | netFORUM Single Sign On and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/webtexttool/includes/webtexttool-template.php:191)

This file is part of the WordPress plugin Textmetrics (formerly webtexttool) and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/themes/thewest/navthemes_fuctions.php:17)

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

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/no-function-language-widget/no-function-language-widget.php:17)

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

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/internet4associations-single-sign-on/src/helpers.php:225)

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

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/fusionspan-impexium-single-sign-on/wp-bootstrap/src/WP/helpers.php:348)

This file is part of the WordPress plugin fusionSpan | Impexium Single Sign On and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/fusionspan-memsuite-single-sign-on/wp-bootstrap/src/WP/helpers.php:348)

This file is part of the WordPress plugin fusionSpan | Membersuite Single Sign On and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare contains() (previously declared in wp-content/plugins/media-library-categories/media-categories.php:1115)

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