Zen Cart Logo
Forums / General Questions / headers already sent ...

headers already sent ...

Locked

Views: 1,768

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Nov 2009, 5:25 AM
#1
pursuitbaits avatar

pursuitbaits

New Zenner

Join Date:
Jul 2009
Posts:
5
Plugin Contributions:
0

headers already sent ...

Hey guys, here to check in with you on a problem im having.

First off my site is https://www.pursuitbaits.com/zencartshop

I just switched to hostmonster.com for a host, and got my Zen-Cart all set up, added products, ect. The problem im having is that when I click to add a product to the cart, the page just turns white and won't refresh. This also happens when registering a new account, ect. If I click the back button on my browser, it will show the item in the cart, or the created account. The page just won't refresh. I've done some reading here and not really finding the answer I don't think. When I check the error log, it shows no php errors, but shows a list under the Main error_log. I won't lie and try to tell you im a genius. Im very new to Zen-cart and have never had this problem before. Can anyone help me with this?

8 Nov 2009, 5:32 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: headers already sent ...

Have you installed the debugging tool thats in the DL section

8 Nov 2009, 5:41 AM
#3
pursuitbaits avatar

pursuitbaits

New Zenner

Join Date:
Jul 2009
Posts:
5
Plugin Contributions:
0

Re: headers already sent ...

I have not. I wasn't sure if that was the correct route to take or not. I figured i'd ask here before messing it up. :dontgetit:laugh:

8 Nov 2009, 5:55 AM
#4
pursuitbaits avatar

pursuitbaits

New Zenner

Join Date:
Jul 2009
Posts:
5
Plugin Contributions:
0

Re: headers already sent ...

Ok, I followed the instructions....... I have obviously changed something somewhere, that I should not have. Can you help me out with these error messages?

[07-Nov-2009 22:48:33] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pursuit4/public_html/zencartshop/includes/languages/english/classic/header.php:32) in /home/pursuit4/public_html/zencartshop/includes/init_includes/init_templates.php on line 78
[07-Nov-2009 22:48:33] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pursuit4/public_html/zencartshop/includes/languages/english/classic/header.php:32) in /home/pursuit4/public_html/zencartshop/includes/functions/functions_general.php on line 44

8 Nov 2009, 6:06 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: headers already sent ...

pursuitbaits:

[07-Nov-2009 22:48:33] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pursuit4/public_html/zencartshop**/includes/languages/english/classic/header.php:32**) in ...
Looking up that error in the FAQ area brings this article which explains your problem: https://www.zen-cart.com/tutorials/index.php?article=87

8 Nov 2009, 6:06 AM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: headers already sent ...

/home/pursuit4/public_html/zencartshop/includes/languages/english/classic/header.php

Delete that file an re-upload the original, from the Zen Cart files. Or compare your copy of it to the original to see where things could have gone wrong.

You should also seriously consider having your custom Template done using the correct override protocol. As it is, if you update your site with a new version of Zen Cart you stand to lose your customizations / changes.

8 Nov 2009, 6:13 AM
#7
pursuitbaits avatar

pursuitbaits

New Zenner

Join Date:
Jul 2009
Posts:
5
Plugin Contributions:
0

Re: headers already sent ...

Thank you guys so much for your help!!!!!!! I got it working perfect now. There were two extra lines in there, where I had copied the file from my old host. Now it's loading as expected! :clap:

"You should also seriously consider having your custom Template done using the correct override protocol. As it is, if you update your site with a new version of Zen Cart you stand to lose your customizations / changes."

I actually just started reading about how to do this as I was waiting for replies. Thanks!

8 Nov 2009, 7:00 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: headers already sent ...

Good work on the troubleshooting. Posting what worked for you may help others in the Forum. :smile: