Duplicate Header Information?

6 posts by 2 authors in: Forums > CMS Builder
Last Post: March 8, 2012   (RSS)

By hordak - March 5, 2012

Okay, I'm going nuts here. I'm trying to create a site that pulls multiple sections (both single page & multi-page) into one page that will link to several others. My index page is fine, however the top navigation (and any other multipage section for that matter) details page keeps giving me this error:


Warning: Cannot modify header information - headers already sent by (output started at ****services/its2011/blk2012/top_details.php:29) in ****services/its2011/admin/lib/common.php on line 1068 Record not found!


I read about making sure to remove spaces before the FIRST/HEADER PHP tag, and I've done that. I'm still getting the error, however.... HELP!

Index page : http://www.centralstate.edu/services/its2011/blk2012/

Details page : http://www.centralstate.edu/services/its2011/blk2012/top_details.php?Blog-2

Re: [Dave] Duplicate Header Information?

By hordak - March 6, 2012

Sure thing!
Attachments:

top_details.php 7K

Re: [hordak] Duplicate Header Information?

By Dave - March 6, 2012

Hi hordak,

Ok, that file looks good. I think the problem is in one of the include files loaded by top_details.php.

If you have any "single record" sections loaded in your include files (or in any files) try removing this line:
'where' => whereRecordNumberInUrl(1),

That line gets the "2" from ?Blog-2 in the url and uses that to know what record to load. But my guess is that one of your includes is calling getRecords(), seeing the "2" in the URL and trying to load record 2 when it's not there, which then calls this line:
if (!$section_Record) { dieWith404("Record not found!"); }

Which is generating that error because it can't send a 404 Error header when the content has already been sent.

Let me know if that makes sense or if you have any luck. Or alternatively, attach any includes that call getRecords() and we can take a look at those.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Duplicate Header Information?

By hordak - March 8, 2012

I almost forgot to write back... MISSION ACCOMPLISHED!

That did it....

Thanks Dave!

Re: [hordak] Duplicate Header Information?

By Dave - March 8, 2012

Glad to help! Let us know if you need anything else.

Cheers! :)
Dave Edis - Senior Developer
interactivetools.com