wpsnoop Fatal error: Cannot redeclare add_scripts()

If you are dealing with a WordPress issue where a PHP Function add_scripts() 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 add_scripts() (previously declared in wp-content/plugins/abc-test/abctest.php:444)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/wp-code-editor-with-syntax-highlighter/syntax-highlighter.php:18)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/sfdc-lead-generation/lead-generate.php:463)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/global-body-mass-index-calculator/gbmicalc.php:619)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/shopsite-plugin/shopsite.php:533)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/banner-manager/banner-manager.php:49)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/ajaxified-contact-form/ajaxified-contact-form-widget.php:12)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/wp-max-social-widget/wp-max-social-widget.php:599)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/comment-captcha-anti-spam/captcha.php:49)

This file is part of the WordPress plugin Comment Captcha Anti-spam and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/auto-youtube/auto-youtube.php:125)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/cute-facebook-likebox/index.php:15)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/audioboo-advanced/audioboo-advanced.php:123)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/primal-for-wp/primal.php:42)

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

PHP Fatal error: Cannot redeclare add_scripts() (previously declared in wp-content/plugins/hijri-calendar-widget/hijri-calendar-widget.php:23)

This file is part of the WordPress plugin Hijri Calendar Widget 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.