wpsnoop Fatal error: Cannot redeclare register_foo_widget()

If you are dealing with a WordPress issue where a PHP Function register_foo_widget() 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 register_foo_widget() (previously declared in wp-content/plugins/quotations-book-quotes-of-the-day/qb_widget.php:108)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/quote-of-the-day-by-brainyquote/brainyquote_widget.php:117)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/quote-of-the-day-by-quotetab/qt-widget.php:149)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/quote-of-the-day-itslum/quoteofday_itslum.php:1605)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/quote-of-the-day-tellmequotes/tellmequotes_widget.php:109)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/wp-responsive-videos/lib/widgets/wp-responsive-video-widget.php:56)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/quotetour/quotetour-widget.php:189)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/donation-button/admin/partials/class-donation-button-admin-widget.php:148)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/bmi-imc-calculator/esw_imc_calculator.php:378)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/wp-users-cabinet/includes/class-wp-users-cabinet-widget.php:83)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/lead-generator-by-enchantier/includes/widget.php:3)

This file is part of the WordPress plugin Générateur de leads - EnChantier and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/daily-quote-by-quote-land/dailyquote_widget.php:123)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/socialmediafeedwidget/SocialMediaFeedWidget.php:198)

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

PHP Fatal error: Cannot redeclare register_foo_widget() (previously declared in wp-content/plugins/inaturalist/inat-widgets.php:92)

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