wpsnoop Fatal error: Cannot redeclare endswith()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/fasterimage/inc/core.php:101)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/mendeleyplugin/wp-mendeley.php:2202)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/tx-onepager/src/functions.php:157)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/traveledmap-trip-itinerary-embedded-map/src/metabox/metabox.php:228)

This file is part of the WordPress plugin TraveledMap Trip itinerary: Embedded map and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/wordstress/wordstress.php:98)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/flowpaper-lite-pdf-flipbook/flowpaper.php:238)

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

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

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 endswith() (previously declared in wp-content/plugins/tandora/inc/tandora_shortcode.php:10)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/advanced-meta-widget/advanced-metainfo-widget.php:11)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/passqi-mfactor/passqi-mFactor.php:443)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/ebook-store/functions.php:3591)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/adminpress/adminpress.php:261)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/wp-flogin/wpf-login.php:549)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/dynamic-user-directory/includes/core.php:3364)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/wp-xintaoke/xt-core/xt-functions.php:1849)

This file is part of the WordPress plugin 新淘客WordPress插件 and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/easydigitaldownloads-hoststreamsell-extension/includes/add-download.php:2023)

This file is part of the WordPress plugin Easy Digital Downloads HSS Extension for Streaming Video and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/appstore/AppFunctions.php:642)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/divebook/divelog.php:302)

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

PHP Fatal error: Cannot redeclare endswith() (previously declared in wp-content/plugins/code-for-cj-affiliate-network/inc/inc.php:4)

This file is part of the WordPress plugin CJ Tracking Code 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.