-
Notifications
You must be signed in to change notification settings - Fork 645
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 trying to change password #3224
Comments
I’m not able to reproduce this. Are you getting it consistently? Maybe try clearing your browser’s cache? |
@brandonkelly I'm getting this exact same error consistently trying to "Copy password reset URL" for a user I just created. Getting the "An error occured" message and "/index.php?p=admin/actions/users/get-password-reset-url 400 (Bad Request)". I'm sending you an email through support with some logs and composer files. |
Yes, I was. I tried it several times and kept getting the same error.
However, today when I tried again, it did work.
… On Aug 27, 2018, at 5:03 AM, Brandon Kelly ***@***.***> wrote:
I’m not able to reproduce this. Are you getting it consistently? Maybe try clearing your browser’s cache?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#3224 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgI84uJofS5XrYEgwfLK5Wbvn17YOpu1ks5uU8PjgaJpZM4WGcPW>.
|
After a lot of back and forth with my service provider, we finally found out that the issue came down to the session.auto_start setting in PHP. If it is set to 1, Craft 3 seems to be creating a second session cookie and those 2 get confused. So that setting needs to be set to 0. @brandonkelly I think that's something you might want to look into to make sure you are not creating a second session if it already exists ? Checking the "Keep me logged in" box mitigated the issue, letting me log in, but I still had issues trying anything that required an elevated session or even adding stuff to the Commerce Cart was not possible. |
Does that happen to be the case for you too, @kmmartinez? |
@echantigny Huh, interesting. I’m wondering where/how exactly the second session could be created, though, as Yii’s session handler does ensure that there is no active session before calling So in theory, if And even if
In other words, there’s no real harm in calling it when there’s already an active session; it won’t create a second session. So I’m a little skeptical that this is the culprit. Is this on a load-balanced environment? If it is, then it seems more likely that each server is only getting a single session, but perhaps they are not sharing session data (e.g. using a shared Redis server), in which case you’d only be able to maintain a session on one server at a time (as each server will be setting its own session ID cookie values.). If this is the case you should be having other session-related issues as well, like getting logged out unexpectedly. |
@brandonkelly Well, I'm just speaking with the experience I went through yesterday. The server is not behind any load balancing. session.auto_start = 1:
session.auto_start = 0:
If you can't reproduce any of this, well, I really don't know what to tell you. I'd love to help more on this, but it would need to involve the IT team where the site is hosted as I don't have access to the configs. EDIT: I sent an email to IT to see if they did anything else on the server. The answer is no. The only thing they changed to get rid of the issue is session.auto_start. Also, they confirmed it is not behing any load balancer. |
Brad,
It could have, it worked this latest time for me to reset my password so it’s hard for me to test it out anymore.
… On Aug 27, 2018, at 6:21 PM, Brad Bell ***@***.***> wrote:
we finally found out that the issue came down to the session.auto_start setting in PHP. If it is set to 1, Craft 3 seems to be creating a second session cookie and those 2 get confused.
Does that happen to be the case for you too, @kmmartinez <https://github.com/kmmartinez>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3224 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgI84uIMzQy32qzAA6DNn3k94EE-v7PXks5uVH7wgaJpZM4WGcPW>.
|
I'm having this issue as well, looks like perhaps has something to do with the url from the email? The ampersand before the id param is not getting encoded/decoded correctly: /admin/actions/users/set-password?code=UScZdBbUjarXXqifLUsxflro9reKbPH4&id=2e340bb6-7d3c-486f-adcf-26c952463a5e I'm seeing the error related to a missing required param, "id" which would make sense. |
I'm having the same issue with the activation emails. Please let me know if I can provide any additional details. |
This might be related to #3288, which was fixed in Craft 3.0.24. @rachelrine are you running at least that version? If so and this is still an issue, can you check your |
Running 3.0.25. I checked out #3288, to be clear, what I'm experiencing isn't a line break, the No rows in my |
@rachelrine if you create a
Save it then load yoursite.com/phpinfo.php, then search for |
Both directives are |
It may have something to do with Sendgrid, which I'm using to send emails via SMTP. If I change my email settings to Gmail, everything works as expected. |
@rachelrine Ah interesting. Can you please compare the raw emails sent by both Sendgrid and Gmail? For example, you can view that in Gmail by clicking the “Show Original” menu item when viewing an email. You should see a section like this at the bottom of the message:
It sounds like maybe somehow if the email was sent using Sendgrid, the URL of that |
Looks like SendGrid is intercepting the link, presumably to track link clicks. Here's what it looks like ing the original:
Gmail sent links look fine, obviously. |
Hm ok, so sounds like a SendGrid bug then. |
Description
I receive this error when trying to change my password.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: