laravel-admin-extensions/media-manager

Call to undefined method League\Flysystem\Filesystem::getAdapter()

mengnarorth opened this issue · 10 comments

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

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

hope that you can answer, problems here aswell

This error is causing in laravel 9 only

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

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()

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

any update

composer require bearlove/media-manager:dev-master

irisvn commented

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

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