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

PHP Fatal error: Call to undefined method GridFieldBulkManager #80

Closed
ghost opened this issue Mar 3, 2014 · 7 comments
Closed

PHP Fatal error: Call to undefined method GridFieldBulkManager #80

ghost opened this issue Mar 3, 2014 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 3, 2014

I get a server error in Silversripe CMS when I click the comments module. In my apache error log I see this error:

PHP Fatal error: Call to undefined method GridFieldBulkManager::addBulkAction() in /home/broval/domains/broval.biz/public_html/comments/code/CommentAdmin.php on line 53, referer: http://www.broval.biz/admin/comments/

@tractorcow
Copy link
Contributor

You need to install http://addons.silverstripe.org/add-ons/colymba/gridfield-bulk-editing-tools in order to make this module work. This is a new dependency as of 2 months ago.

However, I feel that although this module solves a valid problem, perhaps it should be an optional dependency rather than a mandatory one? It would be ideal if all "core" silverstripe modules only relied on one another. What do you feel about this @wilr?

@ghost
Copy link
Author

ghost commented Mar 3, 2014

Hi tractorcow,

Thanks for reply. But the thing is that GridFieldBulkEditingTools is already installed and works well for other modules.

@tractorcow
Copy link
Contributor

I should have seen that, sorry!

The method does seem to exist in the bulk manager module at https://github.com/colymba/GridFieldBulkEditingTools/blob/master/code/GridFieldBulkManager.php#L35

Can you please confirm which version of the module you are using? Version 1.5 of the bulk manager module doesn't have this method, so you will need to use the master branch (or just do composer update if you're managing your dependencies with composer).

@ghost
Copy link
Author

ghost commented Mar 4, 2014

Hi tractorcow,
I think you couldn't see that, bcause I didn't tell :)
Where can I find the version number of the bulk manager?

@ghost
Copy link
Author

ghost commented Mar 4, 2014

Well, that was the probleem indeed: I updated GridFieldBulkEditingTools to the current master and now it works.
Thanks a lot!

@tractorcow
Copy link
Contributor

Great. :)

@mertenhanisch
Copy link

This should be documented in the "Requirements" section of the readme!

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

No branches or pull requests

2 participants