Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TGM_Bulk_Installer missing #185

Closed
ctalkington opened this issue Apr 3, 2014 · 14 comments
Closed

TGM_Bulk_Installer missing #185

ctalkington opened this issue Apr 3, 2014 · 14 comments
Assignees
Milestone

Comments

@ctalkington
Copy link
Contributor

I'm getting the following when trying to bulk install with v2.4.0. Haven't done much research on the issue but wanted to post it. One-off installs work fine.

PHP Fatal error: Class 'TGM_Bulk_Installer' not found in lib/class-tgm-plugin-activation.php on line 1579

WP 3.8.1 / PHP 5.4.26

@ctalkington
Copy link
Contributor Author

upon further review it would appear that the check for class exists would only run when WP_Upgrader isnt defined as its nested.

@anikitas
Copy link

anikitas commented Apr 4, 2014

Same problem here.
I updated to 2.4.0 and i cannot run bulk installations anymore.

@themeblvd
Copy link

I'm having the same problem, as well, after updating to 2.4.0. I've found that this problem only occurs if you've changed "menu" parameter in your configuration array passed into tgma() when you setup the plugin.

It looks like here you're checking to include the TGM_Bulk_Installer class, and you check the current admin page against TGM_Plugin_Activation::$instance->menu -- However, it seems at this point TGM_Plugin_Activation::$instance->menu is always stored as the default "tgmpa-install-plugins" value, opposed to whatever we have setup with the plugin. So, there's never a match and the TGM_Bulk_Installer class doesn't get included on the bulk install process.

I really appreciate all the hard work on the recent update and love how cleaned up everything is. Hopefully this observation can help to fix this one little issue. Keep up the solid work!

@thomasgriffin
Copy link
Contributor

@themeblvd ahh, nice catch! I had not noticed that. I will add this to admin_init so that the config has time to register the updated menu item.

@fk
Copy link

fk commented Mar 4, 2015

@thomasgriffin As far as I understand the fix has not made it into master yet?!

@Anydog
Copy link

Anydog commented Mar 25, 2015

It seems fix is not there yet ... I have same issue with 2.4.0 ...
So I switched back to 2.3.6 ... :(

@matyushen
Copy link

Same here with 2.4.0

@yohnjang
Copy link

Still getting this error as well. But, it's nice to know you can install each plug in individually.

@dingo-d
Copy link
Contributor

dingo-d commented Apr 14, 2015

Found the fix.

@GaryJones
Copy link
Member

1e98e42 fixed this in the develop branch.

@lumberman
Copy link

@GaryJones

Still having:
Fatal error: Class 'TGM_Bulk_Installer' not found in /srv/users/*/inc/plugins-integration/class-tgmpa.php on line 1781

What ever branch master/develop I use. What ever I use for 'menu' => 'tgmpa-install-plugins',

Can anyone, please, let me know what way to debug it?

@lumberman
Copy link

Just found that id key in $config array cause the problem. Removed the id completely and all works now.

$config = array(
'id' => 'tgmpa',

@Mina88
Copy link

Mina88 commented May 10, 2015

Following link help you to fix it in your latest version. I solved it in my own product

[Fixed] "TGM_Bulk_Installer" missing issue in wordpress version

@jrfnl
Copy link
Contributor

jrfnl commented May 10, 2015

@Mina88 This is already fixed in the 2.4.2 release. Please point people to the latest release instead of to the raw develop code.
https:/TGMPA/TGM-Plugin-Activation/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests