Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This appears after requesting a new password.
Your password and further instructions have been sent to your e-mail address.
warning: Cannot modify header information - headers already sent by (output started at /modules/securesite/securesite.inc:41) in /modules/securesite/securesite.module on line 66.
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal-head.securesite.junyor.patch | 1.72 KB | Junyor |
#4 | securesite_3.patch | 1.73 KB | Junyor |
Comments
Comment #1
batigolixthis bug still exists in the 4.6.0 version
the full error is
Comment #2
NaX CreditAttribution: NaX commentedTry removing the securesite_goto(); on line 45 in the securesite.inc file. It is printing out error messages on line 39 and 43, then it is redirecting on line 45. This redirect should be unnecessary since you would want the users to see the message. The exit on line 56 should end page output.
Comment #3
Junyor CreditAttribution: Junyor commentedWhile that does fix the error message, it also leaves me on the logout page. So, if I try to reload the page, I'll end up resubmitting the POST information from the form and my password will change again. If I try to go back to the password form page and reload, I get logged out immediately (since I'm on the logout page). There needs to be a redirect.
Comment #4
Junyor CreditAttribution: Junyor commentedI think I've solved this. I left the _goto() in place and added in a session variable. At the top of _init(), if that variable is set, I output the password message and exit(). Seems to work well.
This approach also makes it possible to simply reload the page showing the password message to get an auth dialog. That didn't work before (probably because the _goto() failed).
Comment #5
Junyor CreditAttribution: Junyor commentedHere's a patch for HEAD.
Comment #6
Junyor CreditAttribution: Junyor commentedComment #7
Darren OhCommitted to DRUPAL-4-7 and HEAD. The 4.6 patch won't commit after the patch for issue 28408 was applied.
Comment #8
Darren OhCommitted to DRUPAL-4-6.
Comment #9
Darren OhComment #10
(not verified) CreditAttribution: commented