wpsnoop Fatal error: Cannot redeclare my_action_javascript()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/wp-gcalendar/admin/partials/functions.php:4)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/huskerportfolio/huskerPortfolio.php:21)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/woocommerce-hss-extension-for-streaming-video/includes/add-download.php:148)

This file is part of the WordPress plugin WooCommerce HSS Extension for Streaming Video and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/pr-graumailing/pr-admin-functions.php:235)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/pr-wpcf7-locaweb/pr-admin-functions.php:213)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/display-content-piece-widget/display-content-piece.php:17)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/tumblr-images-importer/plugin.php:207)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/advanced-recent-posts/backend/lptw-recent-posts-backend.php:5)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/word-and-character-counter/count-word.com.php:13)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/design-approval-system/includes/ajax-load-designs.php:8)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/neat-skype-status/widget/sci-widget2.php:6)

This file is part of the WordPress plugin Neat Skype Status (AJAX and Custom Images) and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/hierarchical-custom-fields/hierarchical-custom-fields.php:414)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/themes/swift/lib/admin/swift-design-options-input.php:4)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/themes/swift-basic/lib/admin/swift-design-options-input.php:4)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/wordcounternet-word-and-character-counter/wordcounter.net.php:13)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/wp-subscribe-form/includes/sfba-subscription-ajax.php:6)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/memoria-ticket-system/memoria-ticket-system.php:927)

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

PHP Fatal error: Cannot redeclare my_action_javascript() (previously declared in wp-content/plugins/tpro3-payment-gateway-for-woocommerce/tpro3.php:2590)

This file is part of the WordPress plugin WooCommerce TPro3 Payment Gateway 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.