laravel-admin-extensions / media-manager

Provides a web interface to manage local files
MIT License
134 stars 66 forks source link

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

Open mengnarorth opened 2 years ago

mengnarorth commented 2 years ago

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 commented 2 years ago

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

carlospinhod commented 2 years ago

hope that you can answer, problems here aswell

lazerg commented 2 years ago

This error is causing in laravel 9 only

Adizbek commented 2 years ago

@mengnarorth, @pandeyjames, @carlospinhod, @lazerg I have provided PR for resolving this issue: https://github.com/laravel-admin-extensions/media-manager/pull/36

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

AiFxApp commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

any update

bearislove commented 1 year ago

composer require bearlove/media-manager:dev-master

irisvn commented 1 year ago

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