wpsnoop Fatal error: Cannot redeclare sample_admin_notice__success()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/magnific-popup-one/abExport.php:8)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/best-maintenance-mode/maintenance-mode.php:867)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/scroll-to-top-one/abExport.php:7)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/social-icons-one/abExport.php:7)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/smarttag-client/wpsmarttagclient.php:67)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/cf7-bot-forms-add-on/cf7-bot-forms-addon.php:262)

This file is part of the WordPress plugin Conversational Form Add-on For Contact Form 7 and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/gallery-for-users/init.php:77)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/explara-events/includes/classes/helper-functions.php:3)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/explara-lite/includes/classes/helper-functions.php:3)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/covid-19-live-tracker/corona_virus_tracker.php:75)

This file is part of the WordPress plugin Covid-19 Live Tracker and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/soundcloud-is-gold/soundcloud-is-gold-notice.php:28)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/themes/slresponsive/inc/admin-notices.php:2)

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

PHP Fatal error: Cannot redeclare sample_admin_notice__success() (previously declared in wp-content/plugins/comment-mention/comment-mention.php:70)

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