wpsnoop Fatal error: Cannot redeclare pluginname_ajaxurl()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/wp-time-slots-availability-calendar/wp-time-slots-availability-calendar.php:39)

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

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/simple-custom-post-likes/index.php:87)

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

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/unc-gallery/unc_gallery.php:73)

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

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

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 pluginname_ajaxurl() (previously declared in wp-content/plugins/mail-masta/plugin-interface.php:65)

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

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/shane-web-guy-portfolio/app/init.php:18)

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

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/better-admin-pointers/better-admin-pointers.php:437)

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

PHP Fatal error: Cannot redeclare pluginname_ajaxurl() (previously declared in wp-content/plugins/fantasy-sports/class.init.php:827)

This file is part of the WordPress plugin Fan Victor 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.