wpsnoop Fatal error: Cannot redeclare add_defaults_fn()

If you are dealing with a WordPress issue where a PHP Function add_defaults_fn() 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 add_defaults_fn() (previously declared in wp-content/themes/justcss/functions/cpanel.php:201)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/onelinerz-free/includes/options.php:8)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/agile-video-player/admin.php:255)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/buoy-conditions/buoyalerts_wp_buoy.php:63)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/under-construction/index.php:47)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/simple-image-watermark/simple-image-watermark.php:31)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/javascript-snowflake-generator/index.php:14)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/videojs-html5-video-player-for-wordpress/admin.php:190)

This file is part of the WordPress plugin Video.js - HTML5 Video Player for WordPress and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/persian-bbpress-tools/persian-bbpress-tools.php:130)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/syntax-highlighter-mt/stxhighlightmt.php:41)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/jp-social-bookmarks/settings.inc.php:79)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/wp-video-html5-video-player/admin.php:259)

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

PHP Fatal error: Cannot redeclare add_defaults_fn() (previously declared in wp-content/plugins/text-expander/text-expander.php:49)

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