rodrico Posted November 24, 2006 Posted November 24, 2006 I have got rid of many errors I was having, but still need some help. When I load my site or any subsequent page I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php:1297) in /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php on line 1174 When I try to add an item to the shopping cart I get the following error in addition to the one above: Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php:1297) in /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php on line 29 My site is www.eratoys.com Here are the lines of code casing the error. .../functions/general.php line 1174: function tep_setcookie($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = 0) { setcookie($name, $value, $expire, $path, (tep_not_null($domain) ? $domain : ''), $secure); } where the setcookie...line is line 1174. In addition here is the next code segment: // Redirect to another page or site function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } where the line: header('Location: ' . $url); is line 29 Any ideas?? I have lost hair over this one. THANKS
spax Posted November 24, 2006 Posted November 24, 2006 Check for whitespace in catalog/includes/functions/general.php, which could be a blank line or just a space at the beginning or end. The very first line should be <?php and the last line should be ?> no spaces before or after.
rodrico Posted November 24, 2006 Author Posted November 24, 2006 Check for whitespace in catalog/includes/functions/general.php, which could be a blank line or just a space at the beginning or end. The very first line should be <?php and the last line should be ?> no spaces before or after. I've tried that already and no luck...thanks
rodrico Posted November 25, 2006 Author Posted November 25, 2006 I still cannot figure this out. Can anyone help me?? I am losing sales. Rod
boxtel Posted November 25, 2006 Posted November 25, 2006 I still cannot figure this out. Can anyone help me?? I am losing sales. Rod check it again as the solution of spax is the only solution. Treasurer MFC
rodrico Posted November 25, 2006 Author Posted November 25, 2006 check it again as the solution of spax is the only solution. What do you mean by "spax"...white space?? Rod
crash3903 Posted November 25, 2006 Posted November 25, 2006 What do you mean by "spax"...white space??Rod this may help Or PM me for help Regards Mark A Reynolds
rodrico Posted November 25, 2006 Author Posted November 25, 2006 I fixed it ...thanks. I had a function listed in general and in app_top. Although it worked before. Rod
Recommended Posts
Archived
This topic is now archived and is closed to further replies.