wpsnoop Fatal error: Cannot redeclare get_current_url()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/parse-url/url-parse-plugin.php:468)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/my-center-deals/inc/functions.php:97)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/serbian-transliteration/inc/Functions.php:19)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/wptao/functions.php:29)

This file is part of the WordPress plugin WordPress淘宝客插件 and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/wplupload/i8/functions.php:178)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/transfinanz/functions.php:101)

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

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

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/pods/deprecated/deprecated.php:65)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/thinkit-wp-contact-form/functions.php:69)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/sms-notifications/smsnotifications.php:202)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/primal-for-wp/utils.php:29)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/visual-real-estate-agency-directory-and-management/sw_win_helpers.php:1490)

This file is part of the WordPress plugin Visual Real Estate - Agency Directory and Management and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/async-background-worker/async-background-worker.php:120)

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

PHP Fatal error: Cannot redeclare get_current_url() (previously declared in wp-content/plugins/404-redirect/functions.php:3)

This file is part of the WordPress plugin All 404 Redirect to Homepage 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.