wpsnoop Fatal error: Cannot redeclare register_script()

If you are dealing with a WordPress issue where a PHP Function register_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 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 register_script() (previously declared in wp-content/plugins/wpsmart-sms/wpsend-sms.php:85)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/stats-widget/stats-widget.php:98)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/responsive-attention-box/alert-box.php:29)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/om-contact-form/including_js_css.php:4)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/ad-box-widtget-for-az-invest-affiliate-program/az_invest_affiliate.php:99)

This file is part of the WordPress plugin AZ-INVEST affiliate program and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/via-crm-forms/via-gravityforms-salesforce.php:44)

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

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

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 register_script() (previously declared in wp-content/plugins/canvasflow/canvasflow-plugin.php:172)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/drop-down-cities-for-woocommerce/class_cities_and_towns.php:12)

This file is part of the WordPress plugin WooCommerce Drop-Down Cities and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/planaday-api/src/includes/functions.php:3)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/hs-blog/hslink.php:119)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/quizleads/init.php:42)

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

PHP Fatal error: Cannot redeclare register_script() (previously declared in wp-content/plugins/smart-visitor-tracker/class-visitor-popup.php:6)

This file is part of the WordPress plugin Smart Visitor Tracker 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.