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 League\Flysystem\Filesystem::getAdapter() #35

Open
mengnarorth opened this issue Mar 1, 2022 · 10 comments
Open

Comments

@mengnarorth
Copy link

Call to undefined method League\Flysystem\Filesystem::getAdapter()
line 62
if (!$this->storage->getDriver()->getAdapter() instanceof Local) {
Handler::error('Error', '[laravel-admin-ext/media-manager] only works for local storage.');
}

PHP 8.1.0
laravel 9.2.0

@pandeyjames
Copy link

Any update on this I encounter the same issue for media manager

@carlospinhod
Copy link

hope that you can answer, problems here aswell

@lazerg
Copy link

lazerg commented Apr 21, 2022

This error is causing in laravel 9 only

@Adizbek
Copy link
Contributor

Adizbek commented Apr 22, 2022

@mengnarorth, @pandeyjames, @carlospinhod, @lazerg I have provided PR for resolving this issue: #36

For a while you can use https://packagist.org/packages/adizbek/laravel-admin-media-manager#3.0.x-dev

@AiFxApp
Copy link

AiFxApp commented May 20, 2022

Same Here:

 Error In MediaManager.php line 62 :
  Call to undefined method League\Flysystem\Filesystem::getAdapter()

I followed your link
https://github.styleci.io/analyses/Vr6LrK?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
and made the changes to MediaManager.php but still the error persists.
Please advise - Thank you

@AiFxApp
Copy link

AiFxApp commented May 20, 2022

Tried your alternative package suggested :
For a while you can use https://packagist.org/packages/adizbek/laravel-admin-media-manager#3.0.x-dev

 Error In MediaManager.php line 73 :
  Call to undefined method League\Flysystem\Filesystem::getAdapter()

@danneljt2020
Copy link

Call to undefined method League\Flysystem\Filesystem::getAdapter() line 62 if (!$this->storage->getDriver()->getAdapter() instanceof Local) { Handler::error('Error', '[laravel-admin-ext/media-manager] only works for local storage.'); }

PHP 8.1.0 laravel 9.2.0

hello @mengnarorth, @pandeyjames, @carlospinhod, @lazerg, have you been able to solve this error? It gives me the same error in laravel 9.0 , or have you found an alternative package while this problem is solved by the team.
Thanks

@IVEN2022
Copy link

any update

@bearislove
Copy link

composer require bearlove/media-manager:dev-master

@irisvn
Copy link

irisvn commented Jul 12, 2023

https://github.com/irisvn/media-manager

  • Fixed: Filesystem::getAdapter()
  • Add pagination

Sorry, something went wrong.

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

10 participants