• Resolved adamcs

    (@adamcs)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Viadat

    (@viadat)

    @adamcs, fixed in Store Locator v3.38.1

    Thread Starter adamcs

    (@adamcs)

    Thats great, thanks @viadat, appreciate it, have a good day!

    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

    (@viadat)

    @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

    (@viadat)

    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

    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.