Forums / Installing on a Linux/Unix Server / the redirect to the login is working in my old side but is not working in my new host

the redirect to the login is working in my old side but is not working in my new host

Locked

Started by kl_tse on 22 Jun 2010, 2:26 PM · Views: 1,852

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
22 Jun 2010, 2:26 PM
#1
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

the redirect to the login is working in my old side but is not working in my new host

I have just moved my site to a new host. I met the same problem. So the redirect to the login is working in my old side but is not working in my new host. I am trying to fix it.

22 Jun 2010, 2:52 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: the redirect to the login is working in my old side but is not working in my new host

Since you haven't given a link to look at (at least not one with a Zen Cart present) we can only make wild guesses.

The most common reason that I've seen for redirects not working is because some output has already been sent. Under those circumstances it's not possible to redirect.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Jun 2010, 3:16 PM
#3
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

Re: the redirect to the login is working in my old side but is not working in my new host

Hi kuroi,
Thanks for your help. I am sorry that for some reason I can not provide the link. As I mentioned in my earlier post, it works in my old host.
KL

22 Jun 2010, 3:16 PM
#4
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

Re: the redirect to the login is working in my old side but is not working in my new host

The version I am using is 1.3.8a

22 Jun 2010, 4:37 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: the redirect to the login is working in my old side but is not working in my new host

Sounds like you've missed one or more steps: https://www.zen-cart.com/tutorials/index.php?article=100

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jun 2010, 7:36 AM
#6
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

Re: the redirect to the login is working in my old side but is not working in my new host

I have done it in a way very similar to the tutorial but not as thorough as it. The test installation looks working well except I have not tested the redirect. Probably I have to do it one more time. Just getting impatient.

23 Jun 2010, 3:53 PM
#7
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

Re: the redirect to the login is working in my old side but is not working in my new host

DrByte,
I found out that the header function is not working after it run
require('includes/autoload_func.php');
in the application_top
Any idea?
KL

23 Jun 2010, 5:25 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: the redirect to the login is working in my old side but is not working in my new host

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Jul 2010, 1:53 AM
#9
kl_tse avatar

kl_tse

New Zenner

Join Date:
Sep 2004
Posts:
16
Plugin Contributions:
0

Re: the redirect to the login is working in my old side but is not working in my new host

Finally I am able to get it work but cannot explain this. I copied the content of the problem php file to another php which works. Then I saved the revised php file with the old filename. It works fine. I am sure there are no syntax error in the php code nor spaces at the beginning and end of php file.