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.
Hi Stella,
On one of my websites I have enabled lightbox for the login box. After I upgraded to the new version (5.x-2.9), if the user makes a mistake with the login username/pass, s/he is redirected to the URL /user/login/lightbox2?destination= which is not picked up by Lightbox and only the unstyled HTML of the box is displayed.
Is this a problem in my configuration or it is a Lightbox2 issue?
Thanks in advance!
Tisho
Comment | File | Size | Author |
---|---|---|---|
#9 | lightbox2-356834-d5.patch | 2.65 KB | gnat |
#8 | lightbox2-356834-d6.patch | 2.81 KB | gnat |
Comments
Comment #1
wmnnd CreditAttribution: wmnnd commentedI have the very same problem with the current D6 version.
Comment #2
hankpalan.com CreditAttribution: hankpalan.com commentedHaving same issue.
Comment #3
elanghout CreditAttribution: elanghout commentedSame issue here. In version 6.x-1.9 and the v6.x DEV from feb 9.
Comment #4
floris-1 CreditAttribution: floris-1 commentedanyone figured this out ?
i seem to have the same problem, havent found a solution just yet
Comment #5
floris-1 CreditAttribution: floris-1 commentedComment #6
wmnnd CreditAttribution: wmnnd commentedWill this be fixed?
Comment #7
stella CreditAttribution: stella commentedeventually - just rather busy at the moment. If you feel like investigating it yourself and creating a patch, then it's more likely to get done quicker.
Cheers,
Stella
Comment #8
gnat CreditAttribution: gnat commentedThis bug is caused by the fact that lightbox2 prints the login form directly to get a clean version used in the pop-up. The problem is, that when you get a failed form validation, like a bad password, the form gets printed cleanly, and you miss out on the drupal_set_message() letting you know about the error. Since Drupal spools those messages until the next usable page, you will see it when you go back to a fully rendered page.
This patch solves the problem by only printing a clean form if there is no POST information. This allows successful logins to proceed as normal, and failed logins to occur on the standard Drupal generated login page, with errors noted and flagged.
This is for the D6 version.
Comment #9
gnat CreditAttribution: gnat commentedAnd the D5 version.
Comment #10
gnat CreditAttribution: gnat commentedComment #11
wmnnd CreditAttribution: wmnnd commentedThe patch works great, thank you very much.
Comment #12
marcvangendThe patch works, but it's not the most beautiful method. Am I asking too much when I say: Can't I go back to the same page with a lightbox over it?
Comment #13
stella CreditAttribution: stella commentedCommitted, thanks!! The fix will be included in the next dev release of the module later today.
Cheers,
Stella
Comment #15
csc4 CreditAttribution: csc4 commentedSorry for reopening this - but I have the latest dev version with this patch installed and I'm getting redirected on a successful login to user/login/lightbox2 which is throwing an access denied error.
Comment #16
redijedi CreditAttribution: redijedi commentedsubscribing
Comment #17
NickTech CreditAttribution: NickTech commentedsubscribing
Comment #18
SeanBannister CreditAttribution: SeanBannister commentedI'm running the current dev and it's working great, no errors.
Comment #19
stella CreditAttribution: stella commented@csc4 : are you logging in via the login block, the full login page, or something else?
Comment #20
stella CreditAttribution: stella commentedComment #22
vardas CreditAttribution: vardas commentedCan anyone point me at the documentation that describes how to enable Lightbox2 for login. I have searched but can't find any mention of how to do this.
Comment #23
marcvangendPlease don't hijack other issues for support questions, but open a new one instead.
Comment #24
dorijrs CreditAttribution: dorijrs commentedhow do i apply that patch into the lightbox 2 module?
Comment #25
rpataca CreditAttribution: rpataca commentedThis still appears to be an issue in D7???