Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

headers already sent question....

LEGEND ,
Feb 12, 2008 Feb 12, 2008
I can usually look at pages that throw this error and know immediately why,
but I am getting one on a page like this -

<?php ini_set('display_errors', '1'); ?>
<?php require_once('Connections/connStaffMonkey.php'); ?>
<?php require_once('lib/MCAPI.class.php'); ?>
<?php

if (!isset($_SESSION)) {
session_start();
}

and the session_start() line is the one that is mentioned in the error.

Why would that trigger this error?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


TOPICS
Server side applications
329
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2008 Feb 12, 2008
Murray *ACE* wrote:

> and the session_start() line is the one that is mentioned in the error.
>
> Why would that trigger this error?
>

Hey Murray,

I assume that you're getting that error on that line because there is likely some white space outside of the <?php ?> tags you have shown above (or in one of your includes). When I run into this issue, I turn on invisible characters:
View -> Code View Options -> Invisible characters
I then look for tab characters ( right pointing chevrons) and spaces ("floating dots") outside of the php delimiters in your main file first and then in your includes.

I didn't know what MCAPI.class.php is, and did a quick Google search and I ran into this page:
http://www.mailchimp.com/admin/api/MCAPI.class.phps

I then copy and pasted that code into DW with invisible characters turned on and it seems that after the closing ?> at the bottom of the file there is a space character (floating dot). So if this is the source page for your include file, then I'd start looking at that file first.

HTH


--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2008 Feb 12, 2008
Awesome, Danilo - that was exactly it. I'll let them know that this is a
problem. It sure fixed mine, and I learned something in the process!

Thanks, again!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"danilocelic AdobeCommunityExpert" <danilo@shimmerphase.com> wrote in
message news:fot5l7$3h$1@forums.macromedia.com...
> Murray *ACE* wrote:
>
>> and the session_start() line is the one that is mentioned in the error.
>>
>> Why would that trigger this error?
>>
>
> Hey Murray,
> I assume that you're getting that error on that line because there is
> likely some white space outside of the <?php ?> tags you have shown above
> (or in one of your includes). When I run into this issue, I turn on
> invisible characters:
> View -> Code View Options -> Invisible characters
> I then look for tab characters ( right pointing chevrons) and spaces
> ("floating dots") outside of the php delimiters in your main file first
> and then in your includes.
>
> I didn't know what MCAPI.class.php is, and did a quick Google search and I
> ran into this page:
> http://www.mailchimp.com/admin/api/MCAPI.class.phps
>
> I then copy and pasted that code into DW with invisible characters turned
> on and it seems that after the closing ?> at the bottom of the file there
> is a space character (floating dot). So if this is the source page for
> your include file, then I'd start looking at that file first.
>
> HTH
>
>
> --
> Danilo Celic
> | Extending Knowledge Daily : http://CommunityMX.com/
> | Adobe Community Expert

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2008 Feb 12, 2008
LATEST
Murray *ACE* wrote:
> Awesome, Danilo - that was exactly it. I'll let them know that this is
> a problem. It sure fixed mine, and I learned something in the process!

Glad it was easy to work out, Murray. Talk to you soon.


--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines