After login redirected to wrong URL After login redirected to wrong URL
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

After login redirected to wrong URL

Started by Flipper01, January 08, 2005, 09:01:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flipper01

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??

Tranz

You need to edit the ecard URL in Config settings. It should point to your gallery, not your home page.

Flipper01

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

kegobeer

How about posting a link to your site with a test user/pass.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Flipper01

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

donnoman


Flipper01

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

donnoman

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.

Flipper01

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. 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.