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

Sftp Problem Flysystem - Laravel 8.21.0 #297

Open
derryberni opened this issue Jan 12, 2021 · 8 comments
Open

Sftp Problem Flysystem - Laravel 8.21.0 #297

derryberni opened this issue Jan 12, 2021 · 8 comments

Comments

@derryberni
Copy link

derryberni commented Jan 12, 2021

PIease Help, I Got Error When using flysystem

My Environment

Laravel Version : 8.21.0
PHP : 8.0

composer.json

require": {
        "php": "^7.3|^8.0",
        "barryvdh/laravel-elfinder": "^0.4.7",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5"
    },

this my config

filesystems.php

'disks' => [
        'sftp' => [
            'driver' => 'sftp',
            'host' => '192.168.2.1',
            'username' => 'mysftpuser',
            'password' => 'pwd'
        ],

    ],

elfinder.php

'disks' => [
      'sftp'
    ],

and when i open elfinder i got it

message: "Class "League\Flysystem\Sftp\SftpAdapter" not found"

i'am try to install self but conflict

composer require league/flysystem-sftp
./composer.json has been updated
Running composer update league/flysystem-sftp
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - league/flysystem-sftp[2.0.0, ..., 2.x-dev] require league/flysystem ^2.0.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - league/flysystem-sftp[2.0.0-alpha.1, ..., 2.0.0-RC1] require php ^7.2 -> your php version (8.0.1) does not satisfy that requirement.
    - Root composer.json requires league/flysystem-sftp ^2.0 -> satisfiable by league/flysystem-sftp[2.0.0-alpha.1, ..., 2.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions```
@luqmanulh25
Copy link

same here

@espitiamx
Copy link

same here; any clue please?

@barryvdh
Copy link
Owner

barryvdh commented Aug 5, 2021

Yeah needs V2 support; barryvdh/elfinder-flysystem-driver#80

@dnsimmons-aaa
Copy link

Same issue here ... anxiously awaiting a fix ....

@marco987
Copy link

marco987 commented Aug 13, 2021

I solved it this way:

  • Delete file composer.lock
  • Clean cache: php artisan optimize:clear
  • Run composer require league/flysystem-sftp ~1.0

@asadsajjad
Copy link

what should be the next step as its still not uploading the files to the server?

@csantisgallegos
Copy link

@marco987 muchas gracias, a mi me funciono y tenia el mismo inconveniente

@alessandrofuda
Copy link

try composer require league/flysystem-sftp -W

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

9 participants