Hey Dave,


I am a new comer to the list and have experience with PHP And JavaScript development on Linux/Ubuntu.

What is happening is either a typo or PHP error.. you are sending something before starting a session; as a result Apache is panicking and sending this warning.

If it is a typo.. do this before anything else on the index:
<?php session_start(); ?>

If not, check for space or tabs before <?php in your index.php as that is usually the culprit.



Derya


On 13-11-04 01:00 PM, clug-talk-requ...@clug.ca wrote:
Send clug-talk mailing list submissions to
        clug-talk@clug.ca

To subscribe or unsubscribe via the World Wide Web, visit
        http://clug.ca/mailman/listinfo/clug-talk_clug.ca
or, via email, send a message with subject or body 'help' to
        clug-talk-requ...@clug.ca

You can reach the person managing the list at
        clug-talk-ow...@clug.ca

When replying, please edit your Subject line so it is more specific
than "Re: Contents of clug-talk digest..."


Today's Topics:

    1. Quick look at a website - primepi.ca PHP Error (Dave Watkins)
    2. Re: Quick look at a website - primepi.ca PHP Error (Shawn)


----------------------------------------------------------------------

Message: 1
Date: Sun, 3 Nov 2013 21:59:42 -0700
From: Dave Watkins <d...@calgaryitservices.com>
To: "clug-talk@clug.ca" <clug-talk@clug.ca>
Subject: [clug-talk] Quick look at a website - primepi.ca PHP Error
Message-ID:
        <f19abc6f-922b-4c36-87b7-0768e7750...@calgaryitservices.com>
Content-Type: text/plain; charset="us-ascii"


Hi Folks,

I'm looking for someone that can take a quick look at the following for me:

http://www.pepperdesigns.net/primepi/edmonton/

This error is on the live site as well as this test server however is not 
visible on the live site as it's hidden behind an image at the top of every 
page. Apparently the error is in the file leftcolum.php. My PHP knowledge is 
non existent at best  :-)

The live site is http://www.primepi.ca

My developer did some work creating contact forms with Captchas earlier this 
week and another developer is saying that this error has just shown up. Many of 
you know my thoughts about politics, I just want to get this resolved.

The developer who did the work earlier this week may not be available for the 
next couple days so in the meantime to hurry things along I thought I'd give a 
shout here.

If someone could give me a shout about this I'd be eternally grateful.

Cheers,

Dave Watkins
President & CTO
Calgary Information Technology Services
"Where your business is our business"

305-4625 Varsity Drive N.W.
Suite 60
Calgary, Alberta, T3A 0Z9

eMail:  dave at calgaryitservices dot com
Voice:  1.403.701.5746
Skype: Watkins.Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://clug.ca/pipermail/clug-talk_clug.ca/attachments/20131103/9e56fbfb/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 04 Nov 2013 01:52:46 -0700
From: Shawn <sgro...@open2space.com>
To: CLUG General <clug-talk@clug.ca>
Subject: Re: [clug-talk] Quick look at a website - primepi.ca PHP
        Error
Message-ID: <5277605e.4070...@open2space.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

The error indicates that HTTP headers are being adjusted after content
has already been sent to the client.  Headers have to be set/adjusted
before any content is delivered.

If the page has a situation where multiple parts all want to set the
headers, but do not know of the other parts, then this type of error is
common.  Using a central layout/view approach (such as in an MVC
framework) would address this nicely.  However if the site is not set up
with a global layout/view approach already then your coder will need to
make use of the ob_start() and ob_end() calls to capture output to a an
output buffer first.  But now we are discussing code and what approach
was taken.

You *could* hide the errors, but I wouldn't recommend that.  Best to
actually fix the issue.

Not sure if that helps much, but here's hoping. :)

Shawn

On 13-11-03 09:59 PM, Dave Watkins wrote:
Hi Folks,

I'm looking for someone that can take a quick look at the following for me:

http://www.pepperdesigns.net/primepi/edmonton/

This error is on the live site as well as this test server however is
not visible on the live site as it's hidden behind an image at the top
of every page. Apparently the error is in the file leftcolum.php. My PHP
knowledge is non existent at best  :-)

The live site is http://www.primepi.ca

My developer did some work creating contact forms with Captchas earlier
this week and another developer is saying that this error has just shown
up. Many of you know my thoughts about politics, I just want to get this
resolved.

The developer who did the work earlier this week may not be available
for the next couple days so in the meantime to hurry things along I
thought I'd give a shout here.

If someone could give me a shout about this I'd be eternally grateful.

Cheers,

Dave Watkins
President & CTO
Calgary Information Technology Services
"Where your business is our business"

305-4625 Varsity Drive N.W.
Suite 60
Calgary, Alberta, T3A 0Z9

eMail:  dave at calgaryitservices dot com
Voice:  1.403.701.5746
Skype: Watkins.Dave


_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying



------------------------------

Subject: Digest Footer

_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca


------------------------------

End of clug-talk Digest, Vol 108, Issue 1
*****************************************

_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to