wpsnoop Fatal error: Cannot redeclare add_script()

If you are dealing with a WordPress issue where a PHP Function add_script() 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 11 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 11 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_script() (previously declared in wp-content/plugins/travelbloggersru-rating/travelbloggers-rating.php:14)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/wp-mortgagecalculator/wp-mortgagecalculator.php:73)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/opensaucerecipes/opensaucerecipes.php:604)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/real-wp-shop-lite/real-wp-shop-lite.php:1644)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/smoothscrollto/smoothscrollto.php:15)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/smart-post-lists-light/splw.php:600)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/advanced-videobox/advanced-videobox.php:24)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/feed-seo/feed-seo.php:102)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/e-mailit/emailit_widget.php:87)

This file is part of the WordPress plugin WordPress Share Buttons Plugin – E-MAILiT and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/awesome-contact-form7-for-elementor/includes/aep-notice/admin-notice.php:30)

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

PHP Fatal error: Cannot redeclare add_script() (previously declared in wp-content/plugins/simple-contact-form-revisited-plugin/simple-contact-form-revisited-plugin.php:45)

This file is part of the WordPress plugin Simple Contact Form Revisited 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.