MimiQue Posted December 4, 2006 Posted December 4, 2006 Someone please help, my site is live and i am getting this warning Warning: Cannot modify header information - headers already sent by (output started at /home/cust2/user1285208/html/catalog/includes/languages/english.php:332) in /home/cust2/user1285208/html/catalog/includes/functions/general.php on line 33 Here is the specified code that it is talking about // Redirect to another page or site function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } 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(); } //// // Parse the data used in the html tags to ensure the tags will not break function tep_parse_input_field_data($data, $parse) { return strtr(trim($data), $parse); } function tep_output_string($string, $translate = false, $protected = false) { if ($protected == true) { return htmlspecialchars($string); } else { if ($translate == false) { return tep_parse_input_field_data($string, array('"' => '"')); } else { return tep_parse_input_field_data($string, $translate); } } } function tep_output_string_protected($s I just installed paypal and am trying to do something for stock/inventory levels and don't know what i did wrong. Please help. Thank you. MQ
kgt Posted December 4, 2006 Posted December 4, 2006 The code that its talking about that you need to fix is this one: /home/cust2/user1285208/html/catalog/includes/languages/english.php on line 332. Make sure you do not have any spaces or new lines after the closing ?> in that file. Contributions Discount Coupon Codes Donations
MimiQue Posted December 4, 2006 Author Posted December 4, 2006 The code that its talking about that you need to fix is this one: /home/cust2/user1285208/html/catalog/includes/languages/english.php on line 332. Make sure you do not have any spaces or new lines after the closing ?> in that file. thank you, i made that change but now i'm getting a fatal error for Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/cust2/user1285208/html/catalog/includes/application_top.php on line 64 Fatal error: main(): Failed opening required 'includes/functions/database.php' (include_path='.:/usr/share/pear') in /home/cust2/user1285208/html/catalog/includes/application_top.php on line 64 Can you help me with this one? I tried posting earlier but have had no luck. MQ
Recommended Posts
Archived
This topic is now archived and is closed to further replies.