srober Posted September 22, 2005 Posted September 22, 2005 I accidently found a problem today. The first time I logon everything works fine. If I logoff and then turn around and try to logon again I get the following error after entering the email/password. Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/catalog/includes/application_top.php:522) in /home/*****/public_html/catalog/includes/functions/general.php on line 29 What could this be?
srober Posted September 22, 2005 Author Posted September 22, 2005 I guess I should add if I close down the browser and go back to the site I can logon once, then I get the following error if I try again.
AlanR Posted September 22, 2005 Posted September 22, 2005 Did you make any special changes to get ssl to work correctly? Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
srober Posted September 22, 2005 Author Posted September 22, 2005 Did you make any special changes to get ssl to work correctly? <{POST_SNAPBACK}> None that Im aware of, atleast not on purpose....Does this error have something to do with SSL?
AlanR Posted September 22, 2005 Posted September 22, 2005 None that Im aware of, atleast not on purpose....Does this error have something to do with SSL? <{POST_SNAPBACK}> Not necessarily but we had a thread not long ago which involved this function from functions/general.php (its last line is 29). // 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); It's all about where you end up after leaving a secure page. But if you made no tweak to application_top.php to get the ssl working correctly then the above code should be fine for you. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
srober Posted September 22, 2005 Author Posted September 22, 2005 Not necessarily but we had a thread not long ago which involved this function from functions/general.php (its last line is 29). // 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); It's all about where you end up after leaving a secure page. But if you made no tweak to application_top.php to get the ssl working correctly then the above code should be fine for you. <{POST_SNAPBACK}> I never made any changes to that file, I actually inserted the original general.php file just to be sure but I get the same error. This is bad I dont know what to do.
srober Posted September 22, 2005 Author Posted September 22, 2005 Well its fixed. I must have messed something up in the application_top when I was trying to modify it earlier in the week with a contribution I was not happy with. All I had to do was define a line but I must have accidently changed something. I reused a application_top file from a featured category contribution im using and everything is working correctly......so far!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.