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

Call to undefined method Grav\Plugin\AdminPlugin::shouldLoadAdditionalFilesInBackground #1145

Closed
benface opened this issue Jun 23, 2017 · 2 comments

Comments

@benface
Copy link

benface commented Jun 23, 2017

After updating to v1.5.0-rc.3, I am getting this on every page of the admin panel:

screen shot 2017-06-23 at 11 07 54 am

Fatal error:  Uncaught Error: Call to undefined method Grav\Plugin\AdminPlugin::shouldLoadAdditionalFilesInBackground

Removing this block of code fixes it: https://github.com/getgrav/grav-plugin-admin/blob/develop/admin.php#L528

@OleVik
Copy link
Contributor

OleVik commented Jun 23, 2017

A quick search reveals that the problem is where the method is called from: Its not in Grav\Plugin\AdminPlugin, but in Grav\Plugin\Admin\Admin.

@rhukster
Copy link
Member

Please try the fix in develop:

            if ($this->admin->shouldLoadAdditionalFilesInBackground()) {
                $this->admin->loadAdditionalFilesInBackground();
            }

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

3 participants