Login Bug Mozilla and Safari

tupawk

Joined: 2003-06-05
Posts: 4
Posted: Thu, 2003-06-05 01:55

I am unable to login to Gallery using Mozilla (1.3 or 1.4) or Safari (1.0 beta 2) on Mac OSX. It only seems to work with IE. Probably some javascript bug.

Let me know if anyone has a workaround/patch.

Thanks!

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-06-05 04:37

Are you disabling popups in either of those two programs? What is the exact problem? Does the login window show up? Are you getting any error messages? More info, please!!

(I can login fine to my Gallery and others in both of those browsers on a Mac, so it isn't a bug in the Gallery JavaScript)

-Beckett (

)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-06-05 07:48

Ditto, I have no problem with either of those browsers. Works fine with popup blocking on.

I don't know what your problemm could be.

[note you may want to look a camino, as well, a specialized mozilla port for Mac]

 
tupawk

Joined: 2003-06-05
Posts: 4
Posted: Thu, 2003-06-05 13:26

I have tried both with window popups enabled and disabled to no avail. The login window shows up but when I type in my username/password the login window will just refresh on Safari and in Mozilla it goes away, the main screen will refresh but I am still not logged in.

I've tried it with IE on my mac and pc and that works fine. I am also running it as a module under postnuke and that seems to work fine as well using safari, etc...

Let me know if you need any more info.

 
jpj

Joined: 2003-06-17
Posts: 3
Posted: Tue, 2003-06-17 01:40

I'm having identical issues with Safari 1.0 b2 (v74), MacIE 5.2.2 and Mozilla 1.3.1 on OS X 10.2.6. IE6 on Windows is the only browser I can use to login to the gallery. In my case, tho, I get a hash (#) appended to the URL in the address bar, no popup at all. This is with popups both enabled and blocked on both browsers.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2003-06-17 07:37

Besides popups, make sure JavaScript is enabled as well, which is required for the popup windows in Gallery 1.x, and for various other operations in Gallery. Java should also be enabled if you want to use the thumbnail editing Java app.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-06-17 08:35

I use all those browsers on 10.2.6 and have no problems with any of them. Do you have another layer of security system wide, that's blocking popups? I really can't think of any way I could reproduce your problem. With most of those browsers you can still bring up gallery's popup when you have popup blocking on.

 
tupawk

Joined: 2003-06-05
Posts: 4
Posted: Tue, 2003-06-17 12:08

I have javascript enabled as well. I am not running any other software anywhere that would block pop-up windows. The login pop-up window appears fine. It has something to do with the javascript that logs you in and closes the login window.

Using Safari - After submitting the username and password to login the login screen refreshes very quickly and nothing happens.

If you would like to try I can set up a temporary username/password to login to my gallery using Safari.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-06-17 12:45
Quote:
If you would like to try I can set up a temporary username/password to login to my gallery using Safari.

Why not? We'll soon see what the story is.

 
tupawk

Joined: 2003-06-05
Posts: 4
Posted: Tue, 2003-06-17 17:48

Nevermind... I am an idiot. :oops: I decided to look in the config.php file and make sure all the settings were correct.

I quickly noticed my photoAlbumURL was set starting with www and then I realized I was always trying to log in from my domain without the www in front.

This might be able to be fixed by using the php global variable $_SERVER['SERVER_NAME']. That of course will only work if they have reverse dns set up properly for the domain. You might also be able to make your own small function that grabs that info and crams it into your own variable. That should help keep stupid stuff like this from happening.

So to anyone else that might be having this problem. Make sure you are accessing the gallery from the exact url you put into the config.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2003-06-17 21:14

Ahh okay. This is the 1st part of FAQ C.11. Since we thought you said the window wasn't even popping up that it was along the lines of FAQ C.8. You could also edit the two URLs in config.php and remove the "http://www.yoursite.com" portion of both URLs. Then you could use either URL.

jpj, have you made any progress?

-Beckett (

)

 
jpj

Joined: 2003-06-17
Posts: 3
Posted: Sun, 2003-06-22 15:08

*sigh*

I managed to forget about Privoxy. Apparently, Prixovy doesn't like the JS in that page. When I remove the proxy settings in Safari, all is well. This explains why every browser on my TiBook was having issues.

How about one-liner in the FAQ (if it's not already there)?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-06-22 19:22

Looks like you are our first Privoxy user. Looks pretty cool, so I may try it myself.

For now, I think we will rely on your little note here, but when we get some more data, it should go in the FAQ (which is due for a major rewrite).

Very glad you have pinpointed the problem.

 
jpj

Joined: 2003-06-17
Posts: 3
Posted: Mon, 2003-06-23 02:35

FYI

It seems that 1.3.4 behaves differently, since the 1.3.4 upgrade today, everything seems to be working fine with Privoxy enabled.

Privoxy is Good Stuff (tm).