wpsnoop Fatal error: Cannot redeclare get_recent_comments()

If you are dealing with a WordPress issue where a PHP Function get_recent_comments() 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 get_recent_comments() (previously declared in wp-content/plugins/comment-rating-widget/get-recent-comments.php:875)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/mootools-accessible-accordion/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/fluid-accessible-progressbar/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/fluid-accessible-sorting-grid/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/fluid-accessible-sorting-list/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/mootools-accessible-dropmenu/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/fluid-accessible-sorting-portlet/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/mootools-accessible-tabpanel/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/get-recent-comments/get-recent-comments.php:866)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/themes/wpcomic/functions.php:331)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/jquery-accessible-accordion/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/jquery-accessible-menu/getRecentComments.php:5)

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

PHP Fatal error: Cannot redeclare get_recent_comments() (previously declared in wp-content/plugins/jquery-accessible-tabs/getRecentComments.php:5)

This file is part of the WordPress plugin JQuery Accessible Tabs 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.