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

Error when entering wrong password to login into CP #952

Closed
smcyr opened this issue Nov 22, 2019 · 6 comments
Closed

Error when entering wrong password to login into CP #952

smcyr opened this issue Nov 22, 2019 · 6 comments
Labels

Comments

@smcyr
Copy link
Contributor

smcyr commented Nov 22, 2019

I have this error when I enter the wrong password into the CP:

ErrorException
file_put_contents(D:\projects\test\storage\framework/cache/data/[email protected]|192.168.1.XXX/e5/c5/e5c593373173624acd2c2af96207c7cd): failed to open stream: No such file or directory 

Illuminate\Foundation\Bootstrap\HandleExceptions::handleError :133
D:\projects\mutation\vendor\laravel\framework\src\Illuminate\Filesystem\Filesystem.php:133

I'm on Windows 10, so it's maybe a path problem?

@jasonvarga
Copy link
Member

What's the XXX.XXX.X.XXX bit? Are there any :: in it?

@smcyr
Copy link
Contributor Author

smcyr commented Nov 22, 2019

It's my local IP which is 192.168.1.XXX with no ::

@eleista
Copy link

eleista commented Dec 31, 2019

I'm receiving the same error. After a bit of testing, it appears to be related to Windows. I did a fresh install on my Mac and on Windows. The Mac doesn't have the problem.

Windows 10, latest update, using Laragon.

You can type anything into the username with no password and it works as expected (the screen shakes). As soon as you provide a password that's incorrect, the error is displayed. If you use the correct username and password, the control panel loads correctly.

@amadeann
Copy link

I'm also getting the same error, and from what I remember the same thing happened to me with v2 as well. It's probably because Windows doesn't allow pipes in directory names.

Statamic\Auth\ThrottlesLogins@incrementLoginAttempts sets the cache key with | and then Statamic\Extensions@path takes that cache key, and tries to use it as a directory name.

The solution could be replacing | with / inside Statamic\Extensions@path, but I have no idea whether other parts of the app depend on | in the cache directories names.

@innocenzi
Copy link

I have this issue on Windows as well, when entering a wrong password. That pipe is indeed problematic.

rrelmy added a commit to rrelmy/statamic-cms that referenced this issue Aug 25, 2020
@jasonvarga
Copy link
Member

Sorry this issue has been so neglected. It's fixed now and will be available in 3.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants