I had an error in which I had someone do a fix of my index.php file for my website www.alliancedirect.net and everything was solved and perfect! I always used Adobe Contribute CS4 to add the page title and header information (keywords & description) but this was the first time since this guy had helped me fix my problem in which I had modified the wrong file and when I used Contribute to edit the page title & header, my website instantly gave the following error message on the top of the flash and even my drupal (html portion) of the site:

"Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 899

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 899

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 531

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 532

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/h/a/shawn31/html/index.php:3) in /home/content/s/h/a/shawn31/html/includes/bootstrap.inc on line 534"

I went back to my Adobe Contribute CS4 and deleted the keywords and description I had entered and attempted to get rid of the title but it wouldn't and won't let me since I had already inputted it via Contribute. Also, I assume what it is, is that I already had the title in on my index.php.

I went to the following lines as stated in bootstap.inc and I got the following:

Line 899: "session_start();"

Lines 531-534 (I posted lines 530-535 because it showed some drupal stuff which may or may not be applicable):
530: function drupal_page_header() {
531: header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
532: header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
533: header("Cache-Control: store, no-cache, must-revalidate");
534: header("Cache-Control: post-check=0, pre-check=0", FALSE);
535: }

This is what I see at the beginning of my index.php file:

<meta name="keywords" content="">

<meta name="description" content="">

<title>Alliance Direct Financial Source offers mortgage loan modification finance refinance short sale foreclosure bailout</title><?php

// $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed Exp $

I don't want to dive into this alone as I don't want to mess anything up. The pages are tied to both my flash page http://www.alliancedirect.net and any part of my non-flash page such as http://www.alliancedirect.net/calculators .

Can anyone please help me with this today since today is New Years and a non-workday? Thanks again for all your help and a Happy New Years to all!

    Searching the forums for the gist of the error message will give more information. The short answer is that code that http headers (such as what you have on line 899) has to appear before code that outputs content (such as what you have starting on line 3) - I'm taking the numbers from the error message.

      Write a Reply...