Duplicate Header Information?
6 posts by 2 authors in: Forums > CMS Builder
Last Post: March 8, 2012 (RSS)
By hordak - March 5, 2012
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: [hordak] Duplicate Header Information?
By Dave - March 6, 2012
Can you attached top_details.php as an attachment to this post so we can take a look? Thanks!
interactivetools.com
Re: [hordak] Duplicate Header Information?
By Dave - March 6, 2012
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!
interactivetools.com
Re: [Dave] Duplicate Header Information?
By hordak - March 8, 2012
That did it....
Thanks Dave!
Re: [hordak] Duplicate Header Information?
By Dave - March 8, 2012
Cheers! :)
interactivetools.com