coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Flipper01 on January 08, 2005, 09:01:25 PM

Title: After login redirected to wrong URL
Post by: Flipper01 on January 08, 2005, 09:01:25 PM
After logging in I get redirected to the root of my site. This is a server problem that can't be solved (I guess)

I allready changed line 46 of login.php from:
Quotepageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

to:
Quotepageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"0;url=index.php\">");

So now I get redirected automaticly to the right page, but I also get a 'continue button' and whe I press that I stell get directed to the root. So can anyone tell me where I can change the link of this button??
Title: Re: After login redirected to wrong URL
Post by: Tranz on January 08, 2005, 09:05:09 PM
You need to edit the ecard URL in Config settings. It should point to your gallery, not your home page.
Title: Re: After login redirected to wrong URL
Post by: Flipper01 on January 08, 2005, 09:10:28 PM
Quote from: TranzNDance on January 08, 2005, 09:05:09 PM
You need to edit the ecard URL in Config settings. It should point to your gallery, not your home page.

I allready tried that, the link is set correctly, but the redirection is still wrong
Title: Re: After login redirected to wrong URL
Post by: kegobeer on January 08, 2005, 09:11:41 PM
How about posting a link to your site with a test user/pass.
Title: Re: After login redirected to wrong URL
Post by: Flipper01 on January 08, 2005, 09:29:42 PM
Quote from: kegobeer on January 08, 2005, 09:11:41 PM
How about posting a link to your site with a test user/pass.

http://angorabeach.davestolk.com/fotos/cpg132/

login: test
pass: test

Hope you'll find a solution
Title: Re: After login redirected to wrong URL
Post by: donnoman on January 09, 2005, 02:54:56 AM
Worked fine for me.
Title: Re: After login redirected to wrong URL
Post by: Flipper01 on January 09, 2005, 12:02:09 PM
Quote from: donnoman on January 09, 2005, 02:54:56 AM
Worked fine for me.

That's weird.. I changed some settings and now you'll have to wait longer untill you're redirected.

The problem occurs when pushing the continue button when:   - Logging in
                                                                                         - Go from user-mode to admin mode
Title: Re: After login redirected to wrong URL
Post by: donnoman on January 09, 2005, 05:46:59 PM
I see the problem now following your instructions.

You need to backout all the changes you made to referrer, I think your barkin up the wrong tree here to fix your problem.

With all the $referrer's back to $referrer, and the proper configuration of the "target address" it should work.

If it doesn't then we can look at where the problem really is.
Title: Re: After login redirected to wrong URL
Post by: Flipper01 on January 10, 2005, 04:35:32 PM
Quote from: donnoman on January 09, 2005, 05:46:59 PM
I see the problem now following your instructions.

You need to backout all the changes you made to referrer, I think your barkin up the wrong tree here to fix your problem.

With all the $referrer's back to $referrer, and the proper configuration of the "target address" it should work.

If it doesn't then we can look at where the problem really is.

I changed almost all $PHP_SELF refers because my host doesn't support them. See also my other topic (http://forum.coppermine-gallery.net/index.php?topic=12915.0"). So changing them back is no option I think.. Do you know where I can find the redirection of the continue button? So I can try to change that.