wpsnoop Fatal error: Cannot redeclare _acf_get_field_by_name()

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

Examples of this error include:

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/swp-contact-form-7-analytics/acf/api/api-field.php:976)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/tweetboost/assets/plugins/acf/includes/api/api-field.php:1033)

This file is part of the WordPress plugin TweetBoost Free - Simple Tweet Scheduler For WordPress and could be interacting with another theme or plugin and causing a fatal error.

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/lemm-toolbar/vendor/advanced-custom-fields-pro/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/cta/shared/assets/plugins/advanced-custom-fields/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/navthemes-employee-ratings/admin/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/navthemes-landing-pages/admin/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/checkout-freemius-rewamped/pro/3rd_party/acf/includes/api/api-field.php:1030)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/wp-church-center/advanced-custom-fields/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/landing-pages/shared/assets/plugins/advanced-custom-fields/includes/api/api-field.php:1076)

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

PHP Fatal error: Cannot redeclare _acf_get_field_by_name() (previously declared in wp-content/plugins/leads/shared/assets/plugins/advanced-custom-fields/includes/api/api-field.php:1076)

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