After upgrading to 7.2 my redirects have stopped working. They worked just fine before I updated last week. I use the Login Redirect module.
Using the Login Redirect module I set up some conditions based on user role to take the user to certain pages upon login. It worked well with the Fancy Login module up until I updated the FL module last week. If I leave the box "Keep User on Same Page" unchecked, all users are directed to /user/* (user profile page). If I check the box, users are not redirected, just taken to the same page. With the box unchecked, before the update, the Login Redirect conditions worked. Now, after the update, they do not. Hopefully this is an easy fix back to the way it was before this update.
I am also seeing this in my error logs (which may or may not be related)
Notice: Undefined index: error in fancy_login_user_login_block_ajax_callback() (line 214 of modules/fancy_login/fancy_login.module).
Comments
Comment #1
jaypanI'll take a look at this over the next couple days and fix it. In the meantime, if this is required functionality, you're best off downgrading to 7.x-1.0-beta1 for the time being (or whatever the last 7.x-1.0 beta was, I can't remember off the top of my head).
Comment #2
jrealsteed commentedIs there a new release that includes a fix for this yet?
Comment #3
Cowntess commentedExperiencing the same problem. Additionally, if you choose "Keep on the same page," the fancy login quits working. You can't logout, and it won't log you in.
Comment #4
jaypanI am trying to fix this issue, however I have run into an issue in that I cannot understand what the Login Redirect module is supposed to do. The module documentation says to append destination=some/path to the URL, and users will be directed to that URL upon login. However, this happens in Drupal anyways, without needing this module. For example, without enabling Login Redirect (or Fancy Login), I can go to www.example.com/user/login?destination=admin, and after the user logs in they will be redirected to the www.example.com/admin
So I don't see what this module is supposed to be doing, though I'm assuming I'm just missing something. So:
Can you please give me an example or two, with steps, on how I can reproduce this problem? I'll need something that I can test to see how it should work without the fancy login module enabled, so that I can then compare when the Fancy Login module is enabled.
Thank you.
Comment #5
jaypanI cannot reproduce this, which means it must be a conflict with another of your modules or your theme. Please take the following steps to figure out which module it is conflicting with, so that I can then take steps to solve the issue:
0) Backup your database
1) Change your theme to a different theme
2) Test to see if this fixes the problem (if it does, tell me what theme you are using, switch back to it, and stop here).
3) Start disabling modules one-by-one, re-testing after each disable until the problem is solved. Let me know what the last module you disabled was (as this is where the conflict will lie).
4) Re-install your backup.
5) Let me know which module caused the conflict, and how I can reproduce the issue.
And actually, you should start a new topic on this issue, as it is not related to the original issue.
Thank you.
Comment #6
mattia.cristalloanyone resolve? I have the same problem.
Comment #7
jaypanPlease see my previous two posts before yours.
Thank you.
Comment #8
rdent4 commentedI have the same problem. When I use Fancy Login, the Login Destination module that I also use no longer brings the user to my previously specified page - the user dashboard.
Jaypan has asked for more details to help find the problem.
I note that Login Destination requires a programmer to specify which page the redirect should start from and end. In my case, I have specified that the redirect should only occur when started at the front page - where the login fields are located. Is it possible that the javascript based, lightbox-style of Fancy Login is not being recognised by Login Destination as starting from the front page (the page I specified in their module)?
Comment #9
jaypanI actually asked for steps to recreate the issue.
Comment #10
rdent4 commentedAs per your request.
Install Login Destination
Go to configure/people/login destination
Add rule that redirects to an internal page
Set rule to redirect from only the front page
allow redirect for all users
Confirm that using standard user logon block that the logged on user is redirected to the specified internal page.
Install Fancy Login
Configure so that "keep user on same page"is not checked.
Replace standard user logon block with Fancy Login
You will find that Fancy Login sends the user to their account page and not the previously specified internal page.
I am also using Loggin Toboggan.
Comment #11
jrealsteed commentedI have also tested with Bartik and Seven themes. Using the built-in login method works fine with Login Destination going to the configured page. Using Fancy Login with these themes results in going to the user account page.
Using Colorbox login settings works correctly.
Comment #12
jaypanThis thread is on the login_redirect module, not the login_destination module. Can you please open a new thread on the matter? It will be confusing if users end up coming to this thread looking for Login Redirect assistance, and they get a solution for Login Destination.
For anyone still having problems with the Login Redirect module, I still need the steps to recreate the issue.
Comment #13
jaypanI think I may have fixed the issue for both the login redirect and the login destination modules in fancy_login 7.x-2.1. Please test this version and see if it solves your issue.
If the problem still exists with Login Redirect, please re-open this thread and change the status to 'Active' and provide steps to reproduce the issue.
If the problem still exists with the Login Destination module, please open a new thread with specifics as to the issue you are seeing.
Comment #14
rdent4 commentedThank you for your assistance, Jaypan.
It appears to be working for me with regard to Login Destination.
Cheers
Comment #15
jrealsteed commentedThanks! 7.x-2.1 version works for me.
Comment #17
Cowntess commentedIt is now working, thanks. However, dual sessions are not, and that was working before. People are having to login twice to get the SSL cookie, even with SSL login enabled, but I'll start a new thread for that.