Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: iqapps - toukokuu 30, 2006, 02:21:33 IP

Otsikko: Password incorrect and Bridge 1.1.4
Kirjoitti: iqapps - toukokuu 30, 2006, 02:21:33 IP
Hi

I help one user to install bridge and I have same issuse and settings!

Settings on both site :

J! 1.0.8
VirtueMart 1.0.5 "without session close"
SMF 1.1 RC2 + fixes
Bridge 1.1.4

SMF
Enable local storage of cookies                 off
Use subdomain independent cookies           on
Enable compressed output                        off
Use database driven sessions                    on
Allow browsers to go back to cached pages off
No erors at all in forum error log.

J!
SEO            on
Compression off
Cache         off

Folowing issuse I get on both site same browser:

User1 log in write some new forum topic then log out.
User2 login or User1 try to login again then both users redirects to forum and "Incorrect password" write password again and user's is loged in.

Is it this issuse related to VirtueMart and it's this posible to fix this?

I tryed to set on Allow browsers to go back to cached pages but no difference.


Regards
IQAPPS
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: Orstio - toukokuu 30, 2006, 06:27:54 IP
Do you have a URL?
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: iqapps - toukokuu 30, 2006, 10:43:45 IP
Hi

I PM you now....


Regards
IQAPPS
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: Orstio - toukokuu 30, 2006, 11:29:52 IP
The problem on your own site, and the problem on the other site are completely unrelated.

The problem on your site is most often caused by the double header information.  I would suggest the Mambo Joomla tag cleanup mod, but it does not work on non-default themes.

The problem on the other site is indeed related to VM.

Comment out this in mod_smf_login.php:

//VirtueMart compatibility
if (file_exists($mosConfig_absolute_path . '/components/com_virtuemart/virtuemart.php')){
$sc = $_COOKIE['PHPSESSID'];
$result = mysql_query("SELECT data FROM {$db_prefix}sessions WHERE session_id = '".$sc."'");
list($sqldata) = mysql_fetch_row($result);
if (strpos($sqldata,'rand_code'))
$sc = substr($sqldata, strpos($sqldata,'rand_code')+16,32);
if ($sc)
$context['session_id'] = $sc;
}
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: iqapps - toukokuu 30, 2006, 11:34:02 IP
Hi

Opps... ;) I will try this then write results here. Thank you.

Regards
IQAPPS
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: iqapps - toukokuu 31, 2006, 04:02:00 IP
Hi

LainaaThe problem on your site is most often caused by the double header information.  I would suggest the Mambo Joomla tag cleanup mod, but it does not work on non-default themes.
I applyed this mod manually. Problem still remaining...!

LainaaThe problem on the other site is indeed related to VM.
Comment out this in mod_smf_login.php:

I goot this e-mail from site owner:
I commented those lines out, but it's still happening. You get the incorrect password the first time you try and log in  from the module, then if you return and try again it works. If you log out and log in again the error is there again.

:(

Some another tip...?

Regards
IQAPPS
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: jocke4u - kesäkuu 01, 2006, 04:23:56 IP
I have the exact same problem and the same setup with Virtuemart etc. Have also commented out the lines that Orstio tells about but doen't make a difference
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: jocke4u - kesäkuu 08, 2006, 06:27:00 IP
Starting a new browser and go to Joomla SMF login module and logging in, having the same smf_session_id and also have that after logging out. Now trying to login again but this time it fails and are redirected to SMF login page but now I have got a new smf_session_id in my header. Trying to login now works very well.

Could it be that SMF invalidate the session but Joomla/SMF brigde isn't updated with a new session id and then cause this error??
Otsikko: Re: Password incorrect and Bridge 1.1.4
Kirjoitti: Orstio - kesäkuu 08, 2006, 07:08:14 IP
LainaaCould it be that SMF invalidate the session but Joomla/SMF brigde isn't updated with a new session id and then cause this error??

Since the bridge reads the session from SMF, this is impossible.  The bridge does not store any information itself.