Title: Fatal error: Cannot redeclare plugins_api()
Last modified: August 22, 2016

---

# Fatal error: Cannot redeclare plugins_api()

 *  Resolved [adamcs](https://wordpress.org/support/users/adamcs/)
 * (@adamcs)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/)
 * Hi there,
 * I’ve recently updated this plugin and whilst it is working correctly on the page
   that the shortcode is on, the plugin seems to break the add new plugin (plugin-
   install.php) page with fatal error: Cannot redeclare plugins_api(). Disabling
   the plugin fixes the issue and i can re-add other plugins to the site.
 * Is anyone else having this issue?
 * Many thanks
 * [https://wordpress.org/plugins/store-locator/](https://wordpress.org/plugins/store-locator/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Viadat](https://wordpress.org/support/users/viadat/)
 * (@viadat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823542)
 * [@adamcs](https://wordpress.org/support/users/adamcs/), fixed in Store Locator
   v3.38.1
 *  Thread Starter [adamcs](https://wordpress.org/support/users/adamcs/)
 * (@adamcs)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823553)
 * Thats great, thanks [@viadat](https://wordpress.org/support/users/viadat/), appreciate
   it, have a good day!
 *  [gmaagroup](https://wordpress.org/support/users/gmaagroup/)
 * (@gmaagroup)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823633)
 * I just updated my plugin to v3.38.1 and am getting the same fatal error and cant
   add any plugins.
    Fatal error: Cannot redeclare plugins_api() (previously declared
   in SITE FOLDER wp-admin/includes/plugin-install.php:29) in SITE FOLDER /wp-admin/
   includes/plugin-install.php on line 108
 *  Plugin Author [Viadat](https://wordpress.org/support/users/viadat/)
 * (@viadat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823638)
 * [@gmaagroup](https://wordpress.org/support/users/gmaagroup/) … what is “SITE 
   FOLDER”? Is that what the error says? or are you substituting out your site path…
   v3.38.1 adds an If statement preventing the file containing plugins_api() from
   being included if it already exists as a function. Please contact directly on
   our site to figure out the issue, you can reference this thread.
 *  Plugin Author [Viadat](https://wordpress.org/support/users/viadat/)
 * (@viadat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823647)
 * Sounding like must be caused by another plugin including the same file for plugins_api()
   afterwards, but not performing the check to see if it already exists, so will
   only occur for those with plugins that do that .. however, should now not occur
   on v3.38.2, just released
 *  [gmaagroup](https://wordpress.org/support/users/gmaagroup/)
 * (@gmaagroup)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823660)
 * Did the update and that solved the problems. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal error: Cannot redeclare plugins_api()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/store-locator_343c21.svg)
 * [Store Locator for WordPress with Google Maps – LotsOfLocales](https://wordpress.org/plugins/store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/store-locator/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [gmaagroup](https://wordpress.org/support/users/gmaagroup/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-plugins_api/#post-5823660)
 * Status: resolved