wpsnoop Fatal error: Cannot redeclare dbg()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/wp-businessdirectory/site/helpers/utils.php:34)

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

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/geniuscontacts-signup-form-45/GeniusContacts.php:690)

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

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/actus-xfields/includes/actus-xf-main.php:128)

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

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/threewp-global-message/ThreeWP Global Message.php:14)

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

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/wp-imagezoom/wp-imagezoom.php:17)

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

PHP Fatal error: Cannot redeclare dbg() (previously declared in wp-content/plugins/custom-post-type-cpt-cusom-taxonomy-ct-manager/rtm-core-functions/rtm-core-functions.php:207)

This file is part of the WordPress plugin Custom Post Type and Taxonomy GUI Manager 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.