wpsnoop Fatal error: Cannot redeclare enqueue_scripts()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/google-calendar-for-wordpress/WPGCalendar.php:75)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/woocommerce-product-quick-view/woocommerce-product-quick-view.php:56)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/tonal/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/writr/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/simple-melody/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/opencart-product-in-wp/ocpwp.php:18)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/simple-perle/inc/plugin-enhancements.php:367)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/boardwalk/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/portfolio-grid/wp_portolio.php:396)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/wp-design-awards/files/functions.php:66)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/newsletter-sms-smsapi/smsapi.php:92)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/simple-photoswipe/simple-photoswipe.php:14)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/capoverso/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/affinity/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/hexa/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/wp-before-after-viewer/wp-before-after.php:26)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/hexa/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/2-klicks-button-socialshareprivacy-plugin/2-klicks-button-socialshareprivacy.php:178)

This file is part of the WordPress plugin 2-Klicks-Button - Socialshareprivacy Plugin and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/bebetterhotels-booking-form/bbh-booking-form.php:136)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/gazette/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/apostrophe/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/booktrope-counter/main.php:55)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/ryu/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/ldw-recaptcha/ldw-recaptcha.php:23)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/enamag/functions/ena-functions.php:271)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/harmonic/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/localmoney/classes/frontend.php:28)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/sorbet/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/hiflow-billder-connect/assets/assets.php:4)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/woo-paysimple/woo-paysimple.php:793)

This file is part of the WordPress plugin Woocommerce PaySimple Payment Gateway Integration and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/quietly-insights/quietly-analytics.php:109)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/bushwick/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/hexa/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/plugins/sms-widget/sms-widget.php:81)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/beatrix-lite/includes/dashboard/beatrix-how-it-work.php:31)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/blaskan/inc/class-blaskan-theme-plugin-enhancements.php:317)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/boardwalk/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/singl/inc/plugin-enhancements.php:376)

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

PHP Fatal error: Cannot redeclare enqueue_scripts() (previously declared in wp-content/themes/wp-iclean-responsive/includes/dashboard/wpiclt-how-it-work.php:34)

This file is part of the WordPress theme WP iClean Responsive 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.