| Author |
Message |
fayth
Beginner


Joined: Feb 20, 2008 Posts: 1
|
Posted: Thu Mar 06, 2008 8:29 am Post subject: Admins cannot log in after installation |
|
|
I finished my gallery 2/phpbb3 integration last night and everything seemed to be working fine. I was able to upload pictures and everything. This morning I'm trying to sign on to the regular forum and am unable. My other admins are also unable, however the members can login. I cannot even login under a members username. However, one of my members (my husband actually) is able to login using my name from a different computer and different location. He's able to get into the ACP and everything.
For the record, he is using IE and I use Firefox.
I'm not getting any error messages about the password being wrong. In fact, it seems to log in just fine, but when I get back to the index page I am unable to see the forum. Obviously, I am not able to access the ACP either.
Any ideas on what I could have screwed up?
Edit:
I just tried to login using IE, and I am able to. So, I am guessing that it's an issue with firefox |
|
| Back to top |
|
|
AdBot
|
| Post subject: Admins cannot log in after installation |
|
|
|
|
|
| Back to top |
|
 |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1144
|
Posted: Thu Mar 06, 2008 12:20 pm Post subject: Re: Admins cannot log in after installation |
|
|
| Try deleting the cookies for your board in firefox and clearing the browser cache. The integration will sometimes change cookie settings to make the embedded gallery logins work properly and then the old browser cookies have to be cleared so it will use the new settings instead. That should probably be better documented. |
|
| Back to top |
|
|
luckydaizie
Beginner


Joined: Mar 05, 2008 Posts: 4
|
Posted: Thu Mar 06, 2008 3:27 pm Post subject: Re: Admins cannot log in after installation |
|
|
jettyrat wrote: › Try deleting the cookies for your board in firefox and clearing the browser cache. The integration will sometimes change cookie settings to make the embedded gallery logins work properly and then the old browser cookies have to be cleared so it will use the new settings instead. That should probably be better documented.
Hello, I had the same problem apparently. Your solution does work. An idea for development may be to add something to the header that checks for older cookies/cache and expires them if they are wrong. I don't know much about client side scripting to know how to do that, but I know if my site had launched and had this module added later, it would not be fun explaining the problem and solution to each of my members.
Thank you for your solution. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1144
|
Posted: Thu Mar 06, 2008 4:22 pm Post subject: Re: Admins cannot log in after installation |
|
|
There is also a 'Delete all board cookies' link in the footer of every phpbb page so it's not really that hard for everyone to reset their browser cookies.
I'm not sure if it makes sense to check the cookies on every single login?
I'll look into it... |
|
| Back to top |
|
|
luckydaizie
Beginner


Joined: Mar 05, 2008 Posts: 4
|
Posted: Mon Mar 10, 2008 1:00 am Post subject: Re: Admins cannot log in after installation |
|
|
| When my cookie settings were changed, the delete board cookies link didn't work anymore. Apparently the domain settings were cleared so it probably works now that I filled that in again, though I don't have any computers left with the old cookies to test it with. My original idea, which may be a moot point, would only be called when a successful login was made but a session isn't detected. Or at least that's how I would interpret it. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1144
|
Posted: Mon Mar 10, 2008 6:38 pm Post subject: Re: Admins cannot log in after installation |
|
|
| Did the cookie settings not work for the integration after the setup ran? Did you have to change them to something else afterwards? |
|
| Back to top |
|
|
luckydaizie
Beginner


Joined: Mar 05, 2008 Posts: 4
|
Posted: Tue Mar 11, 2008 11:13 am Post subject: Re: Admins cannot log in after installation |
|
|
I'm not sure where it went wrong to be honest. I know I had phpBB3 running, then I installed Gallery2. Then I installed/setup the integration. At some point, it said the cookies for the two packages didn't match and asked if I wanted to synchronize them or something to that effect. After I did, I had the login problem where I found this thread. Then I could press the delete board cookies link until the cows came home and I still had the problem. (note, the cows never came home either) I manually deleted the cookies through my browser and I could log in. After, I checked my cookie settings and noticed that the domain had been cleared from both packages. At this point I viewed my browser's cookies and noticed some without a domain (which I deleted, I didn't even think that was possible) and also a cookie for my domain which included a typo. Perhaps the setup script is setup to clear the domain field if two different domains are found? Or maybe the link to delete cookies just doesn't work when there is no domain specified. Either way, I'm not sure why the old cookies (with domain) interfered with the site when it was setup without a domain, then it was able to run without a domain.
For a solution, I wouldn't worry much about it. Possibly check how the cookie settings are synchonized. But anyone having the login problem should probably check the Gallery2 and phpBB3 cookie settings first. If they are right, see if the delete board cookies link works. Otherwise, I don't really want to un-integrate the packages and re-integrate to see if my problem reproduces itself. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1144
|
Posted: Tue Mar 11, 2008 4:09 pm Post subject: Re: Admins cannot log in after installation |
|
|
Ok. The integration (I think) is doing a good job of setting the appropriate cookie settings so that phpbb and gallery can play nice together.
The domain name can be blank if phpbb and gallery are running on the same domain. I think it only needs to be set if they are running in different subdomains and the setup script should pick that up.
The integration setup script seeks to set the cookie settings according to the blurb in the gallery admin screen about cookie settings for embedded applications. |
|
| Back to top |
|
|
|
|
|
|
|