403 error in IE or E_SESSION_TIMEOUT in firefox

16 years 3 months ago #55421 by mayeska
I'm running joomla 1.5 stable with CB1.1. No big problems with login or registration. However, I'm having a little, nit-picky bug which is driving me nuts. Hope someone can help.

If you attempt to submit a blank login form, or if you enter the wrong password, the correct error message appears on the screen. However, if you then try to login while the error message is still displayed, you get an http 403 error (in IE) or an E_SESSION_TIMEOUT error (in firefox.) If you back up to the homepage and refresh, you'll discover that you really ARE logged in. The login was accepted -- but there's no way you could know that, since all you saw was an error screen.

I'm not alone with this error -- forum.joomla.org/index.php?topic=257556.msg1173414 -- which makes me wonder if this is a bug.

Help??

Post edited by: mayeska, at: 2008/01/30 19:23

Please Log in to join the conversation.

16 years 3 months ago #55582 by mayeska
Can anyone give me an idea of where to start looking to fix this? I've reached the end of my debugging skills.

Please Log in to join the conversation.

16 years 3 months ago #56037 by beat
added this to things to check for upcoming CB 1.2. Will keep you posted. :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

16 years 2 months ago #57311 by vickyh
I'm also getting this problem, and am getting complaints from users.

Any expected date for CB1.2 or at least a fix for this?

Thanks.

Please Log in to join the conversation.

16 years 2 months ago #58011 by daa
Me too, this make CB impossible to use, I've disabled CB until the issue is resolved. This is disastrous as I needed the extra registration fields.

All washed up!:dry:

Please Log in to join the conversation.

16 years 1 month ago #59143 by StefanF
To fix CB login issues in Joomla 1.5, try the following (tested in IE and Firefox):

in mod_cblogin.php, change:
[code:1]$request_uri = mosGetParam( $_SERVER, 'REQUEST_URI', null );[/code:1]
to:
[code:1]$request_uri = base64_decode(mosGetParam( $_GET, 'return', '' ));[/code:1]

in comprofiler.php, add:
[code:1]$return = str_replace( '&', '&', $return );[/code:1]
after:
[code:1]$return = trim( cbGetParam( $_POST, 'return', null ) );[/code:1]

Moderators: please re-post this wherever this problem is mentioned.

Edit: The above only works when a return path is definded. Add the following (to the above) to cater for all scenarios.

in mod_cblogin.php, add:
[code:1]if (strlen($request_uri) == 0)
$request_uri = request_uri();[/code:1]
just below:
[code:1]$request_uri = base64_decode(mosGetParam( $_GET, 'return', '' ));[/code:1]

in mod_cblogin.php, add:
[code:1]function request_uri() {
if (isset($_SERVER)) {
$uri = $_SERVER;
}
else {
if (isset($_SERVER[0])) {
$uri = $_SERVER .'?'. $_SERVER[0];
}
elseif (isset($_SERVER)) {
$uri = $_SERVER .'?'. $_SERVER;
}
else {
$uri = $_SERVER;
}
}
return $uri;
}[/code:1]
at the top of the file

Post edited by: StefanF, at: 2008/03/17 20:46

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.277 seconds

Facebook Twitter LinkedIn