Check letter case, linux is case sensitive. And check storage permissions.
Login works on local server but not on production [HELP]
Hi,
I am facing an odd issue. My school uses my website and so I want to get the login back up and running as soon as possible.
When I log in to my website locally, I successfully do so but on my production website, I get the following error below. I put debug = true for forge env for my site to see if any more descriptive text would appear but none. I am perplexed because I did not recently alter anything to my login flow so as to cause this issue. What's even weirder is I can successfully log in on my local server so I am thinking maybe the issue is isolated to me using digital ocean + forge stack.
Has anyone experienced this issue before or have any steps they suggest I take?
Also, I added a dd statement to the beginning of my login function in my LoginController and I don't believe the request hits that code.
Browser shows
This page isn’t working If the problem continues, contact the site owner.
HTTP ERROR 400
The console shows
Failed to load resource: the server responded with a status of 400 (Bad Request)
Hi,
I solved the issue the 400 request error issue. First, this article helped: https://airbrake.io/blog/http-errors/400-bad-request
One of the steps it suggested was "Uninstall New Extensions, Modules, or Plugins". I knew I had introduced the bug in the last 24 hours and I had installed a package for cors stuff specifically "Neomerx\Cors-illuminate" in that time period. So I took the file out of my composer.json, ran composer update, and tested on my prod website and the issue was resolved.
I am assuming there was a package conflict somewhere with the Laravel login.
Thanks for the help everyone. This one really snuck by me and has motivated me to invest into a robust testing suite so critical issues like these don't flow into production.
Please or to participate in this conversation.