TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Fatal Error with tgmpa and plugin installation #628

Closed esaria closed 7 years ago

esaria commented 7 years ago

Hi, I installed a plugin called Tweet Old post in my Wordpress theme (geodirectory) and it crashed my site and I received this fatal error:

Fatal error: Cannot redeclare tgmpa_load_bulk_installer() (previously declared in //wp-content/plugins/tweet-old-post-pro/inc/lib/dependencies/class-tgm-plugin-activation.php:3154) in //wp-content/themes/GeoDirectory_framework/admin/tgm/class-tgm-plugin-activation.php on line 2204

I contacted the plugin support and they told me to:

"Please contact your theme developer and tell them update their TGMPA plugin to the latest version so your theme could work with our plugin."

So I contacted my theme developer who told me:

I've just checked with our developer and he mentioned that you have to contact the TGMPA support regarding the issue since the error message you received contains an "error message with something about TGMPA.

Now I am contacting you. Can you please assist? I'm not technical but I think the TGMPA plugin needs to be updated???

Thank you.

jrfnl commented 7 years ago

I'm so sorry that everyone is pointing to someone else. Let me try and help you.

First off: Plugin support was correct. This is an issue with your theme and the theme developer should update the version of the TGMPA library they ship with the theme.

Please do tell your theme developer this as this might also cause issues for other users of the theme - you can point them to this issue when you do and I'll add some instruction at the bottom specifically for the theme developer.

In the mean time, you can fix this yourself by applying the upgrade to your installation.

As the Tweet Old Post Pro plugin is a commercial plugin, I can't check what version of TGMPA they currently include, but just to be sure, let's update the TGMPA version in both the theme as well as in the plugin.

Steps:

Once you've done that, all should be fine again.

Hope this helps!


For the theme developer:

Please upgrade the included version of the TGM plugin activation class you use in your theme(s) to the latest version (2.6.1). From what I can tell, you are currently using version v2.4.0 which is very old, out-of-date, buggy and has some minor - but well publicized - security issues.

If you download a fresh copy of TGMPA using the Custom TGMPA Generator, it will serve you with a customized download of TGMPA which will pass the Theme Check rules used by WordPress.org and ThemeForest.

Also - be aware of some minor changes to the TGMPA configuration options in v2.5.0. See the changelog for more information or the Configuration page for more detail on the current options.

esaria commented 7 years ago

Thank you for your responses. I'll go back to the "chain."

jrfnl commented 7 years ago

@esaria Just checking: did you manage to fix this for your install with the steps I provided ?

esaria commented 7 years ago

I haven't done that yet, I was going to approach the developer of the theme first, but I'll try it now.

esaria commented 7 years ago

I've downloaded the file/unzipped, but I'd better wait til later tonight to try it out when web traffic is lower. I'll update you tomorrow.

esaria commented 7 years ago

Hi,

All good to go.

Thank you for your help.


From: Juliette notifications@github.com Sent: September 23, 2016 12:56:53 PM To: TGMPA/TGM-Plugin-Activation Cc: esaria; Mention Subject: Re: [TGMPA/TGM-Plugin-Activation] Fatal Error with tgmpa and plugin installation (#628)

@esariahttps://github.com/esaria Just checking: did you manage to fix this for your install with the steps I provided ?

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/TGMPA/TGM-Plugin-Activation/issues/628#issuecomment-249245692, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVUVSOiSo6kPaREeNxRd5EwRMZA29UVrks5qtATVgaJpZM4KDJPD.

jrfnl commented 7 years ago

Glad to hear. I'll close the issue in that case.

esaria commented 7 years ago

Thank you.


From: Juliette notifications@github.com Sent: September 30, 2016 9:36:24 AM To: TGMPA/TGM-Plugin-Activation Cc: esaria; Mention Subject: Re: [TGMPA/TGM-Plugin-Activation] Fatal Error with tgmpa and plugin installation (#628)

Glad to hear. I'll close the issue in that case.

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/TGMPA/TGM-Plugin-Activation/issues/628#issuecomment-250745874, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVUVSIUfK2H6epVJzu3HaHzCB4wzcZBbks5qvRBYgaJpZM4KDJPD.

Berny-Design commented 6 years ago

I got the same problem!! Thank you very much!

riyasrahman commented 2 years ago

Dear all i am also facing the same issue. i have 10 plugins to install via TGMPA but the installation get stooped in 7.