Forum

MamboHacks.com => Mambo-SMF Forum 1.3.0 Support => Topic started by: Wolfgang Bornath on May 20, 2005, 07:59:56 PM



Title: Login problem - not yet discussed
Post by: Wolfgang Bornath on May 20, 2005, 07:59:56 PM
Here's a login problem which seems to be different from the already known and/or discussed probs:

Using Mambo 4.5.2, SMF 1.0.3 and MamboSMF 1.3.1

My smf runs inside Mambo and users are known in both parts (aka synched).

Problem:

1. A user logs in in the Mambo sidebar login. He gets an error message "Please fill in username and password correctly!" although he did so and he is logged in after klicking away this message.

2. User logs in in the Mambo login, goes to the integrated smf and has to login again.

3. User logs in in the integrated smf (top menu bar in smf) and is logged in both in Mambo and smf. After a while he gets logged out of Mambo (user menu vanishes) but he is still logged in in smf.

Unforunately problem 1&2 does only occur with some users And I myself don't have these problems.

The problems - if they occur - they show with all browsers in Linux (firefox, opera, galeon, konqueror, ...) and with IE6 in Windows as well.

Looks like a cookie problem, but the problem stays even if the user erases all cookies and re-starts his browser.

URL is http://mandrivauser.de

wobo


Title: Re: Login problem - not yet discussed
Post by: cowboy on June 19, 2005, 01:34:00 AM
This should be fixed in 1.3.2.2 (not guaranteed for all servers and configs). Let me know if this still an issue.


Title: Re: Login problem - not yet discussed
Post by: Wolfgang Bornath on June 20, 2005, 03:08:43 AM
Are you sure about the version number? :)

All I can see is the 1.3.1.x in the announcement and download areas.

wobo


Title: Re: Login problem - not yet discussed
Post by: Danee on June 20, 2005, 05:26:34 AM
Hi,

Problem 1 and 3 are also shown on my website.

I haven't really figured out when it apears, but to me it also appears it has to do with session lengths (or Cookie expire times)

For problem 3 I removed the 'logon forever' checkbox cause the Mambo-SMF logon module does not logon mambo as login forever though it does for SMF.

Another problem (which I think is closely related) I have is that when I logon to SMF (or mambo for that matter) when it's wrapped in mambo and open up another browser, the mambo will be logged on, but smf won't (it doesn't read/find the cookie).
When I open SMF unwrapped it IS logged on
(I want to add that the forum folder is NOT in the root, our website is still underconstruction and runs in /mambo and the forum is a subfolder off that, so /mambo/forum. I see that the cookie is written to /forum, so I hope that this is solved when I move the site to the root)

Cheers,

Danee

The site uses:
Mambo 4.5.2
SMF 1.0.3
Mambo-SMF 1.3.1.2

URL: http://m8d.org/mambo


Title: Re: Login problem - not yet discussed
Post by: Azrul on June 21, 2005, 10:51:28 AM
I had the exact same problem, and here is why:

When i first set up mambo i use address x.x.com (which is associated with Admin). Then, i went on and install smf, also using x.x.com (associated with a differnt username).

So, in short, if you already have an acount in both mambo and forum, sharing the same email with diffrent address, the login will get screwed.


Title: Re: Login problem - not yet discussed
Post by: cowboy on June 21, 2005, 11:16:44 AM
Therefore, use the same username/email as admin in setting up mambo and smf. Just modify the values in smf member table manually.


Title: Re: Login problem - not yet discussed
Post by: wax on June 21, 2005, 01:26:31 PM
When SMF wrapped - can`t login from forum`s own login page.
Quote:
1. A user logs in in the Mambo sidebar login. He gets an error message "Please fill in username and password correctly!" although he did so and he is logged in after klicking away this message.

3. User logs in in the integrated smf (top menu bar in smf) and is logged in both in Mambo and smf. After a while he gets logged out of Mambo (user menu vanishes) but he is still logged in in smf.

All the same.

Mambo 4.5.2.2
SMF 1.0.4
Mambo-SMF 1.3.1.2


Title: Re: Login problem - not yet discussed
Post by: cowboy on June 21, 2005, 01:42:11 PM
In #3, the session expired in mambo. This is not really a major issue. This will be fixed in future release.

In #1, what login module are you using? Did you try the optional login module?


Title: Re: Login problem - not yet discussed
Post by: keymaster on June 26, 2005, 05:58:41 AM
Hi Cowboy,

I'm afraid I have to add my hat to the ring of those being stopped cold by this very same bug, and I am using all the latest updates from you.

Unfortunately for me, this is a showstopper. I cannot use the component as is. I'll try and provide as much detail, as concisely as possible to help you understand and reproduce the problem. I'm sure in the end it is somthing simple. The quality of your component is otherwise very good.

Configs:
=========
- Mambo 4.5.2.3
- Mambo-SMF Forum 1.3.1.3
- SMFMamboMod_1.3.1b
- SMF 1.0.5
- index.php was downloaded from your forum from here: http://www.mambohacks.com/component/option,com_smf/Itemid,77/expv,0/topic,164.msg1375#msg1375
(could this be the problem?)

- Login modules: problem occurs with all the login modules, CB, Mambo, Even your special mod_mambo_smf_login_1.3.1a

PROBLEM:
========
- Without SMF installed login/logout to/from Mambo works fine.
- Install SMF per instructions.
- Login to mambo, enter uid and password as normal.
- Receive popup window Javascript: Please complete the user name and password fields."
- You are given a choice: OK or CANCEL.
- if you choose OK, you get another window "The page you are trying to view contains POSTDATA that has expired from cache...to resend the data click OK or CANCEL to exit..." If you choose cancel, you get an empty browser window and it says "Done" at bottom. If you choose OK, the process of prompting for entry of the uid/password followed by the POSTDATA warning repeats again and again. Never stops.
- If you choose CANCEL to the "please complete uid/password" window (the first window), you hang. If you close the browser window and reopen a new one, you find you are logged in to mambo, but not SMF. Logging out of mambo brings you to the SMF window (wrapped).

- Now here's a REALLY weird part. This inability to login occurs most of the time, but not always. Sometimes you can login fine. The way to bring back the problem is to logout, then close your browser window. When you try and login again to mambo in the new browser window, the problem is back. This has always been reproducable for me.

Different login modules (mambo, CB, SMF optional login module) all have a variation of this problem, although they each behave a little differently.

Although this may be a pretty simple problem to fix, it is pretty serious because it prevents login.

I am happy to help you, give you a uid/password, etc., if you like. Just send me your email address (I assume you have mine).

Thanks.

BTW - you have one of the best supported forums in all of mambo. Keep up the good work.


Title: Re: Login problem - not yet discussed
Post by: Michael on June 26, 2005, 07:54:24 AM
I too have problem #1 - but it's a bit weird:

I can log in with no problems from my own computer, and from one at work. Others can also log in from my computer and from my work computer, again with no problem. It works with both firefox and internet explorer.

But when the others try and log in from their computer, they get the "Please complete username and password fields". If they try a second time, they are logged in and all works fine until they close all open browser windows. They get the error with either firefox (1.0.4) or internet explorer (version 6).

All I can think of is that my work computer has a static IP address, as does my home computer (well, the home one is on the same intranet). Actually come to think of it, I'm pretty sure my mate's laptop worked when on my internal network too but now that he's back on a dynamic IP the problem is back.

The problem is the same for both the mod_mambo_smf login module and for the standard mambo login module.

I'm using mambo 4.5.2.3; smf 1.0.5; mambo smf forum 1.3.1.2

I had a browse through the login code but couldn't see any reason why the IP address of the client should make any difference. Anyone got any ideas on this one?


Title: Re: Login problem - not yet discussed
Post by: keymaster on June 27, 2005, 08:16:23 AM
Ok, I know this sounds silly, but...

The problem seems to goes away when you change (in mamboroot/configuration.php):

$mosConfig_live_site = 'http://mysite.com';

to:

$mosConfig_live_site = 'http://www.mysite.com'; (added the 'www.')

I retried this several times. I reset the live_site and the problem comes back. I added the 'www.' and the problem goes away. 

I came across this by chance while debugging another application.

... have no idea why this happens(am almost embarrassed to post it)... perhaps Cowboy can shed some light?

Not sure if this solves the problem or just makes it happen less often. Anyways, so far there seems to be something here.


Title: Re: Login problem - not yet discussed
Post by: cowboy on June 27, 2005, 11:53:08 AM
Ok, this seems to be a cookie issue and you found the solution. Good job!

Time to sticky this.


Title: Re: Login problem - not yet discussed
Post by: Wolfgang Bornath on June 27, 2005, 08:00:02 PM
Yes, looks like the problem is solved - at least the problems which made me start this thread. One of my guinea-pig users had the login probs all the time from start and he got so used to need several login attempts that he sent a mail, asking what's wrong because he could login at first try. :)

Thanks a lot keymaster!

wobo


Title: Re: Login problem - not yet discussed
Post by: -Wolverine on June 28, 2005, 05:06:34 PM
I thought about starting a new thread for this, but I will try here first.  I installed the latest optional login module (1.3.1a) and have been trying to use it.  However, the logout will not log me out of the forums, it just logs me out of mambo.  Here are the steps

1) Login using the optional login module
2) After successful login, select logout from the optional login module

This displays and error and the pathway changes to home -> upload media
Error states: "You are not authorized to view this resource.  You need to login."  If I look at the optional login module I see that I am still logged into smf but not mambo. 

I went through and deleted all cookies from my site and cleared the cache.  I also verified that my live_site has the www. as suggested previously.  Nothing has worked to resolve this issue.

Things to note:
1) I have the user menu enabled with the mambo logout unpublished.  The reason is so I can have the upload media feature of the zoom media gallery available to registered users.
2) Upload media is the first item on the user menu.  It is not a coincidence that the pathway changes to home -> upload media when I select logout from the optional login module
3) If I select logout from the forum itself I am correctly logged out of both mambo and smf without an issue.


Title: Re: Login problem - not yet discussed
Post by: kdizzle on July 21, 2005, 11:36:34 AM
Quote from: -Wolverine on June 28, 2005, 05:06:34 PM
I thought about starting a new thread for this, but I will try here first.  I installed the latest optional login module (1.3.1a) and have been trying to use it.  However, the logout will not log me out of the forums, it just logs me out of mambo.  Here are the steps

1) Login using the optional login module
2) After successful login, select logout from the optional login module

This displays and error and the pathway changes to home -> upload media
Error states: "You are not authorized to view this resource.  You need to login."  If I look at the optional login module I see that I am still logged into smf but not mambo. 

I went through and deleted all cookies from my site and cleared the cache.  I also verified that my live_site has the www. as suggested previously.  Nothing has worked to resolve this issue.

Things to note:
1) I have the user menu enabled with the mambo logout unpublished.  The reason is so I can have the upload media feature of the zoom media gallery available to registered users.
2) Upload media is the first item on the user menu.  It is not a coincidence that the pathway changes to home -> upload media when I select logout from the optional login module
3) If I select logout from the forum itself I am correctly logged out of both mambo and smf without an issue.


I have almost exactly the same problem.  Has this beedn fixed in another thread .....I'll keep looking.


Title: Re: Login problem - not yet discussed
Post by: Goody on August 09, 2005, 10:26:24 PM
Same thing on my site, if I logout from SMF it logs out both from Mambo and SMF no errors.  But I logout from the module I get this:
*******
Notice: Undefined index: Itemid in /home/main/smf/index.php on line 74

Notice: Undefined index: Itemid in /home/main/smf/index.php on line 80
*********

-Goodman-


Title: Re: Login problem - not yet discussed
Post by: johnnydement on August 13, 2005, 07:33:49 PM
Think the problem I have has not yet discussed, it just happens since the last smf/hack update.

When loging out, I just get logged from mambo, not from forums, and I have to log also from there, this happened me when using old custom login screen, not with official one, but now, Iit happens with both, and I get this error message:

Fatal error: Hacking attempt... in /home/iberianm/public_html/foro/Sources/Errors.php on line 302

anyway, I'm using again your custom login (miself and the people in site loved it :D) and there's no difference with the official one, I noticed this just after reinstalling it, but just cause it's when I started triing things to see if it still missworked for us...


Title: Re: Login problem - not yet discussed
Post by: evcj on August 16, 2005, 11:13:56 PM
A solution that I have found for users being logged out automatically involves changing the way mambo handles cookies since smf uses the same name as mambo for the session cookie "sessioncookie"

Go to /includes/mambo.php then wherever you find an instance of "sessioncookie" replace it with "msessioncookie"

This will stop smf from overwriting the session cookie that causing mambo to not be able to find your session info in the sessions table of the db among other problems that having the same name for the cookie with the same variables creates.

Since its implementation, there have been zero negative side effects.

[update]
This is for the staying logged into smf and being partially logged out of mambo bug.


Title: Re: Login problem - not yet discussed
Post by: Bryan on August 22, 2005, 05:07:39 PM
Has there been any other resolutions for this problem? The fix Keymaster brings up will work for most but I am behind a corp fire wall and use IP addresses. Still having the same login issues described.

Thankx for the help.


Title: Re: Login problem - not yet discussed
Post by: Pete on August 29, 2005, 02:12:44 AM
Quote from: keymaster on June 27, 2005, 08:16:23 AM
Ok, I know this sounds silly, but...

The problem seems to goes away when you change (in mamboroot/configuration.php):

$mosConfig_live_site = 'http://mysite.com';

to:

$mosConfig_live_site = 'http://www.mysite.com'; (added the 'www.')

My live site is listed as 'http://www.mysite.com' in global config but if I went to 'http://mysite.com'I most often had a pop up box that would read "Please complete the username and password fields" when I went to log in and I usually was not able log in.  My problem was fixed by using a redirect to use www. everytime, see the thread here: http://forum.opensourcematters.org/index.php/topic,1474.msg13133.html#msg13133


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.