Duplicate Header Information?

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

Re: [hordak] Duplicate Header Information?

By Dave - March 6, 2012

Hi hordak,

Can you attached top_details.php as an attachment to this post so we can take a look? Thanks!
Dave Edis - Senior Developer
interactivetools.com

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