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

ftp_chdir(): Invalid number of parameters in when trying to access or create or delete file or directory in laravel 11 #1785

Open
aeprograme opened this issue Apr 24, 2024 · 3 comments

Comments

@aeprograme
Copy link

Bug Report

Q A
Flysystem Version 3.8.0
Adapter Name FTP
Adapter version

Summary

Whenever i try to put/delete or list files/directories it throws "ftp_chdir(): Invalid number of parameters" error. The only thing currently working is get

How to reproduce

Try to create/append content/delete/list a file(s) or directories

Workaround

The only way i got it to work is by commenting the line [122] in [FtpAdapter.php]:
ftp_chdir($this->connection, $this->connectionOptions->root());

@frankdejonge
Copy link
Member

What PHP version are you on?

@aeprograme
Copy link
Author

sorry for the late reply, internet was out all day yesterday.

PHP version : php-8.2.10RC1-Win32-vs16-x64

@frankdejonge
Copy link
Member

I'm not having a lot of luck debugging his, the version you specify doesn't correspond with the line-number you're reporting, which is odd: https://github.com/thephpleague/flysystem/blob/3.8.0/src/Ftp/FtpAdapter.php#L122 the last version that had this particular line was from more than 2 years ago. You've not specified your FTP adapter version btw, so it's a little bit hard to pin down. The error is also super weird, because the ftp_chdir function has always 2 parameters as far as I know.

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

2 participants