My website isn't working - missing header/footer HTML

Permalink 1 user found helpful
My website:
http://www.oldlightson.com/

stopped rendering correctly. When I look at the source code, it looks as though all of the HTML header and footer information is missing. As far as I know, nothing was done to the site recently. Any thoughts on what is happening here? Thanks.

kreative
View Replies:
mhawke replied on at Permalink Reply
mhawke
Without seeing how your theme files are constructed, it's tough to say what's gone missing. The footer appears to be there but the header is missing.

Inside your theme folder, edit one of the page type files such as 'right_sidebar.php' or 'full.php' and see whether it has this near the top:

<?php $this->inc('elements/header.php');?>


Can you attach the offending page type file to this forum? You will have to rename it to a .txt file to post it here.
kreative replied on at Permalink Reply
kreative
In all of those files:
left_sidebar.php
full_width.php
etc

the following line of code was missing:

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>

I'm fairly certain no one edited this out. How could this have happened?
mhawke replied on at Permalink Reply
mhawke
Did you happen to check the 'last modified date' on those files before you fixed them? This might point to a certain time frame. Server logs MIGHT be able to point to an IP on that date (if you want to dig this far).
kreative replied on at Permalink Reply
kreative
It was June 11. I'd have to dig to get to that info. I've updated C5 and all the addons and the site is up and running again. I'll keep an eye on things. Thanks for your help.
globalnerds replied on at Permalink Reply
globalnerds
Can you show us the code in your header.php and footer.php?
INTcommunications replied on at Permalink Reply
INTcommunications
check your closing and opening divs

</div><!-- /contain -->

can't see this div opening tag