Topic-icon 404 Error on redirect

Active Subscriptions:

None
12 years 6 months ago #14903 by dsa787
404 Error on redirect was created by dsa787
I've been getting 404 errors on redirect when a user tries to log in to the site with the wrong username/password. The user gets an error message which is correct but after the second try using the correct u/p combo the page loads a 404 error. The current settings is to stay on the same page after logging in but if the user logs in from a login page then the site attempt to redirect to the user profile page but the page doesn't load and therefore the 404 page.

Could you please let me know how to fix this.

Thank you,
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #14928 by dsa787
Replied by dsa787 on topic 404 Error on redirect
I'm sorry to be rushing you but is there a way for you to let me know how to resolve this? I also PM-ed you a few days ago and haven't heard either.

I'm using JFBC 4.0.3 and Joomla 1.6.6.

Thank you
The topic has been locked.
Support Specialist
12 years 6 months ago #14929 by alzander
Replied by alzander on topic 404 Error on redirect
Very sorry for not getting back to you sooner.

When you enter the wrong username/password, you really shouldn't be getting to a 404 page. A 404 error is for a page that doesn't exist, and if it's coming up after a bad login, then something sounds wrong with your configuration. For instance, if you try to login on our demo site, you'll simply be left on the same page.. not redirected to a 404 page (that site is J1.5, but 1.7 behaves the same):
www.sourcecoast.com/jfbconnect/demo/demo-1-registerlogin

If that's not the case, and you have something configured to redirect the user to a special "Username/password" incorrect page, let us know how that is configured so we understand more.

Finally, can you let me know if you have the "Returning User Redirection" enabled? If that's set to no, then JFBConnect will leave the user on the same page they were on when they tried to log in. If that happens to be a 'bad' page, there's no way for JFBConnect to be able to detect that, so that's possible. Again, we'd need to understand more about how the redirection to the initial 404 HTML error page is occurring in the first place to help understand how to fix (and that's likely what would need to be fixed, not JFBConnect).

Hope that helps explain, and sorry again for the delay,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #14933 by dsa787
Replied by dsa787 on topic 404 Error on redirect
Hi Alex,

I have the "Enable Returning User Redirection:" set to "No".

The 404 error page shows up in this order:

1. User tries to login using the wrong u/p combo
2. Joomla Error page shows up with a warning message
3. User enters the correct u/p
4. 404 Error page shows up
5. Options are "Go Back" or "Home" - neither one works, user remain on the same page

Could you please let me know what I can do?

Thank you

File Attachment:
File Attachment:
The topic has been locked.
Support Specialist
12 years 6 months ago #14934 by alzander
Replied by alzander on topic 404 Error on redirect
What SEF extension are you using? That doesn't look like Joomla's built in one. If you are using another SEF extension, you may just be able to look up the URL of that 404 page and simply redirect it somewhere else.

Additionally, can you post the URL for the page this is happening on so we can test (you can PM it to us if you don't want it public).

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #14935 by dsa787
Replied by dsa787 on topic 404 Error on redirect
Hi Alex,

I'm not using a SEF extension. We built our own code to rewrite urls.

I'll send you a PM for testing.

Thank you
The topic has been locked.
Support Specialist
12 years 6 months ago #14946 by alzander
Replied by alzander on topic 404 Error on redirect
I just tested on your site, and can see the 404 page you mention. I don't think that is related to JFBConnect at all.

The login page that your redirected to when the login fails (/login-page) is Joomla's own login page. JFBConnect's login module also uses Joomla's own code for the Joomla login portion, and we don't interfere with the Joomla login process.. just if they want to use Facebook.

I'd recommend trying to enable the standard Joomla login module and see if you run into the same issue. My guess is that you will, which will hopefully help you narrow down the problem. Unfortunately though, I don't think we can help as I don't know the cause and it doesn't seem to be related to JFBConnect.

Let us know if you do (or don't) run into the same issue with the normal Joomla login module, and what you figure out overall.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #14961 by dsa787
Replied by dsa787 on topic 404 Error on redirect
Hi

The easy fix was to enable redirect to Home page on Login. It works after you're trying to use the wrong username/password and there is no 404 page however it's not very user friendly if you want users to remain on the same page after successful login.

The reason for the 404 page is when "No Redirect" is enabled the site doesn't know what to do since the login page is not a real page for the user to remain on. What I think it will be a lot more useful if you create another option to add a redirect only on a Login Error page than redirect from all pages.

Thank you for your help
The topic has been locked.
Support Specialist
12 years 6 months ago #14963 by alzander
Replied by alzander on topic 404 Error on redirect
Where did you enable that setting? That's not a setting in JFBConnect, so just trying to understand what the fix was.

When I was testing, I was seeing that the 404 page was a redirect to "/my-profile". In Joomla, in general, the login page is an ok place for the user to be and shouldn't generate a 404. The user component is smart enough to show a logout button, instead of the Login form, if the user hits the login page when they're already logged in. There is no "Login Error" page in Joomla that's standard, so we wouldn't be able to add the setting your talking about. Normally, a login error will redirect you to the Login page with a system message saying your credentials are incorrect. That's what I'm seeing on your page. The next login is weird though, and I don't think that's a normal problem.

Hope that all makes sense, but if you have any other questions or suggestions, just let me know!
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #14965 by dsa787
Replied by dsa787 on topic 404 Error on redirect
Hi

I enabled the redirect in the actual module:

1. under Basic Options,
2. Joomla Login Redirection:
3. Redirect on Joomla Login: Yes,
4. Joomla Login Redirection URL: Home.

We'll do some more testing and try to figure this out.

Thank you for your help.
The topic has been locked.