wpsnoop Fatal error: Cannot redeclare register()

If you are dealing with a WordPress issue where a PHP Function register() 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() (previously declared in wp-content/plugins/yet-another-github-widget/github-widget.php:56)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/event-registration-pro-calendar/admin/class-event-registration-pro-admin.php:89)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/mediashare-imageembedtext/wordpress.php:23)

This file is part of the WordPress plugin Media Share - Share Button On Image And Embed and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/custom-api-for-wp/customer_register_ui.php:3)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/ip2location-world-clock/ip2location-world-clock-menu.php:8)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/themes/mansar/admin/settings.php:3)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/google-adsense-report-pro/Google_Adsense_Report_PRO.php:77)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/wp-related-video-search/wp-related-video-search.php:147)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/tagforme/tagforme.php:134)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/themes/wiles/admin/settings.php:3)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/captcha-in-thai/captcha-in-thai.php:164)

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

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/plugins/captcha-in-thai-2nd/captcha-in-thai.php:180)

This file is part of the WordPress plugin CAPTCHA In Thai 2nd and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare register() (previously declared in wp-content/themes/sanasar/admin/settings.php:3)

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