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.
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.
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?
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?
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).
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.
Can you show us the code in your header.php and footer.php?
check your closing and opening divs
</div><!-- /contain -->
can't see this div opening tag
</div><!-- /contain -->
can't see this div opening tag
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:
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.