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

jaypan’s picture

I'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).

jrealsteed’s picture

Is there a new release that includes a fix for this yet?

Cowntess’s picture

Experiencing 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.

jaypan’s picture

Assigned: Unassigned » jaypan
Status: Active » Postponed (maintainer needs more info)

I 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:

Using the Login Redirect module I set up some conditions based on user role to take the user to certain pages upon login.

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.

jaypan’s picture

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.

I 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.

mattia.cristallo’s picture

anyone resolve? I have the same problem.

jaypan’s picture

Please see my previous two posts before yours.

Thank you.

rdent4’s picture

I 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)?

jaypan’s picture

I actually asked for steps to recreate the issue.

rdent4’s picture

As 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.

jrealsteed’s picture

I 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.

jaypan’s picture

This 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.

jaypan’s picture

Status: Postponed (maintainer needs more info) » Fixed

I 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.

rdent4’s picture

Thank you for your assistance, Jaypan.
It appears to be working for me with regard to Login Destination.
Cheers

jrealsteed’s picture

Thanks! 7.x-2.1 version works for me.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Cowntess’s picture

It 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.