-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
Bug : Oops something went wrong on Login (and a dirty fix) #1110
Comments
If I try logging in at discuss.flarum.org with incorrect details it simply adds the "details incorrect message". What I can imagine is that you have debug enabled which returns more detailed information when the authentication fails. Can you confirm this issue cannot be reproduced on discuss.flarum.org? |
Yes, I can't reproduce with discuss.flarum.org . But I encounter the problem when the authentication success ( when it fails, there is a specific message, as expected). |
I'd really like to see the json response that is truncated. We can't evaluate whether this is a bug in Flarum without steps to reproduce. |
That's what I get from the developer console in firefox : |
If you cannot reproduce this on discuss.flarum.org you can safely assume the issue has already been resolved (for the upcoming version). Feel free to reopen if you think closing this issue is a mistake. |
@luceos Well, to be honest, this doesn't look like something that was wrong in Flarum, not even in the past. I am curious what it could be, though. Maybe a misconfigured server or some weird combination that leads to problems. @jacquarg Can you show us the entire HTTP response from the server, please - including headers? You can find (and copy to clipboard) this in your browser's developer tools, network tab. |
@franzliedke I was assuming the same. But without more information it's hard to further identify a cause. |
@franzliedke: Header:
body
|
Some research based on this:
|
Another report of this issue, also on OVH. Not sure, but this seems to be related to the hosting environment. |
I've noticed this issue on Laravel homestead before. |
@dav-is any explanation back then, because this is the second report for a customer on OVH.. |
It seemed to appear repeatibilly on certain errors when debugging extensions. I don't know what those errors were because it seemed to cut off most of it but I would refresh and get the same cut off message. |
Hi. I have the same bug, also with OVH hosting. When i write |
Where is that |
Looks like this actually has to do with our use of zend-diactoros, which does set the header. |
I don't know if this information helps you, but I can confirm this issue (including the truncated response) for shared hosting with another hoster than ovh.com (german hoster called strato.de) Login with right credentials leads to the Oops...you should reload error, debug shows 200 and truncated response and after reload the user is actually logged in. |
Is this still an issue? Looks like |
Yeah, I think we can close this. See zendframework/zend-diactoros#251 (comment). If somebody has a problem like this again, feel free to comment - we can reopen then. |
Durring login, when the user enter its valid credentials, the popup show a red message 'Oops something went wrong, you should relaod the page'.
After some investigation, it appears that the response from the server to the request /login , is troncated, and then, not a valid JSON.
I am not a PHP expert, so I don't know where the problem come from. But, I found a quick and totally dirty fix which seems to work for my installation:
I just add a line of code with
print_r($response);
just there : https://github.com/flarum/core/blob/06c32b668d87e88eddd928b470299e308b46fa42/src/Forum/Controller/LogInController.php#L86and magically, the bug is fixed : )
I hope you will find the valid fix for this issue : )
Bug report
Flarum info
Additional comments
Log files
NONE
The text was updated successfully, but these errors were encountered: