Admin bar and blocks disappeared from home page.

Permalink
I'm afraid my home page is corrupted somehow. today, out of the blue, most blocks disappeared, and I can't access the admin bar. The nav block is still there and If I navigate to another page the admin bar shows up again. I did not make any changes to the site or page before this happened. I've tried clearing the cache and reloading the database, but neither helped. I've also tried changing the theme on the page etc., but still no admin bar. Any ideas?

The website ishttp://www.cortezcoach.com

Thank you for any help!

jmenke
 
mhawke replied on at Permalink Reply
mhawke
To get your homepage back, go to Dashboard->Full Sitemap and click on the Home page and choose 'Versions'. You can preview an older version by clicking the links in the 'Comments' column until you find the version that works. Then 'Approve' it by putting a check beside the good version and click the 'thumbs up' icon. Make sure you delete all the more recent versions (above the one you approved) because the SuperAdmin always sees the most recent version even if it is not the approved version.
jmenke replied on at Permalink Reply
jmenke
Thanks for the reply. I tried several older versions, but still no success. Any other thoughts?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Have you recently installed any add-on? If so, just try to disable that and clear your cache to check whether it solves your problem.

Rony
mhawke replied on at Permalink Reply
mhawke
Do any other pages use the same Page Type as your Home page and if so, do those pages work? I'm trying to figure out if the problem is with the underlying php file or with add-ons.
jmenke replied on at Permalink Reply
jmenke
All other pages work, only the main page doesn't function properly.
Arequal replied on at Permalink Reply
Arequal
Have you inspected your javascript files and the javascript console? Chrome: Shift+Ctrl+J, and go to Sources tab. Check there for errors. Go to Resources tabs and look at existing errors when downloading files.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
From the home page source it looks like your template is missing the footer required code.

UPDATE
After this line
<div id="tnSpacer" style="height:30px"></div>

Should be
</div>
</div>
</div>
<?php    $this->inc('elements/footer.php'); ?>
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Its best if you post your home page template code here so we can check it over for you..
jmenke replied on at Permalink Reply
jmenke
Thanks so much for the responses! When I look at the siource page coding from within chrome it looks like the following, however, I have no idea which file this is within the file manager. I've looked at about every file in the system and can't find one with this code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>


<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>CortezCoach.com - Cortez Motorhome website.</title>
<meta name="description" content="A website dedicated to Cortez Motorhomes. Information, Manual downloads and more!" />
<meta name="keywords" content="Clark Cortez, Kent Cortez, Cortez, Cortez Motorhome. Vintage Motorhome, RV, Recreation Vehicles" />
<meta name="generator" content="concrete5 - 5.6.1.2" />
<script type="text/javascript">
var CCM_DISPATCHER_FILENAME = '/index.php';
var CCM_CID = 1;
var CCM_EDIT_MODE = false;
var CCM_ARRANGE_MODE = false;
var CCM_IMAGE_PATH = "/updates/concrete5.6.1.2_updater/concrete/images";
var CCM_TOOLS_PATH = "/index.php/tools/required";
var CCM_BASE_URL = "http://www.cortezcoach.com";
var CCM_REL = "";

</script>

<link rel="shortcut icon" href="/files/" type="image/x-icon" />
<link rel="icon" href="/files/" type="image/x-icon" />


<style type="text/css">html {margin-top: 49px !important;} </style>

<script type="text/javascript">
var CCM_SECURITY_TOKEN = '1374781520:b7a00123635317e881bd56848d46ad13';</script>

<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/css/ccm.base.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/jquery.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/ccm.base.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<style type="text/css">
#blockStyle608HeaderNav3 {background-repeat:no-repeat; padding:0 0 10px 0; }
#blockStyle610HeaderNav5 {text-align:right; background-repeat:no-repeat; padding:-10px 0 0 0; }
#blockStyle612Header4 {background-repeat:no-repeat; margin:20px 0 0 0; padding:20px 0 0 0; }
</style>
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/css/ccm.app.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/css/jquery.ui.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript">$(function() { ccm_doPageReindexing(); });</script>
<link rel="stylesheet" type="text/css" href="/packages/superfish/blocks/superfish/css/superfish.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript" src="/packages/superfish/blocks/superfish/js/superfish.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/css/ccm.tnspacer.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/blocks/rss_displayer/view.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<link rel="stylesheet" type="text/css" href="/packages/discussion/css/discussion.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript" src="/packages/discussion/js/discussion.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/ccm.spellchecker.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/jquery.ui.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/ccm.app.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/css/ccm.spellchecker.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/jquery.form.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<link rel="stylesheet" type="text/css" href="/packages/lerteco_wall/blocks/lerteco_wall/view.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<script type="text/javascript" src="/packages/lerteco_wall/blocks/lerteco_wall/view.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<script type="text/javascript" src="/updates/concrete5.6.1.2_updater/concrete/js/bootstrap.js?v=e1aa6f9726544b85bc42bfdaba72ee07"></script>
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/blocks/search/view.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />
<link rel="stylesheet" type="text/css" href="/updates/concrete5.6.1.2_updater/concrete/blocks/slideshow/view.css?v=e1aa6f9726544b85bc42bfdaba72ee07" />

<!-- Site Header Content //-->
<link rel="stylesheet" media="screen" type="text/css" href="/files/cache/css/default/main.css" />
<link rel="stylesheet" media="screen" type="text/css" href="/files/cache/css/default/typography.css" />

</head>
<body>

<div id="page">
<div id="headerSpacer"></div>
<div id="header">


<div id="headerNav">
<div id="blockStyle610HeaderNav5" class=" ccm-block-styles" >


<form action="/index.php/search-results/" method="get" class="ccm-search-block-form">

<h3>Search This Site:</h3>
<input name="search_paths[]" type="hidden" value="" />

<input name="query" type="text" value="" class="ccm-search-block-text" />

<input name="submit" type="submit" value="Go!" class="ccm-search-block-submit" />


</form></div> <div id="blockStyle608HeaderNav3" class=" ccm-block-styles" >
<style>
#page #header #headerNav, #page #header ul.nav-header { z-index:5 !important }
ul.sf-menu, ul.sf-menu li, ul.sf-menu ul { z-index: 5 !important }


#sf-menu608 .sf-menu { float:left }
#sf-menu608 .sf-menu li{background-color:#857994 !important}
#sf-menu608 .sf-menu a:focus, #sf-menu608 .sf-menu a:hover, #sf-menu608 a:active{background-color:#454545 !important }
#sf-menu608 .sf-menu a, #sf-menu608 .sf-menu a:visited, #sf-menu608 .sf-menu a:link, #sf-menu608 .sf-menu a:hover{ color:#faf7f7 !important }

#sf-menu608 .sf-menu ul.sf-submenu { width:auto !important; min-width:150px !important; float:left; }
#sf-menu608 .sf-menu ul.sf-submenu li{ width:auto !important; min-width:150px !important; display:block; float:none; position:relative; left:0px; top:0px; height:auto;}
#sf-menu608 .sf-menu ul.sf-submenu li ul { left:100%; position:absolute; top:0px; height:auto; }

/*IE6 needs a border for some reason to calculate width for submenu positioning. replace with your own color */
#sf-menu608 .sf-menu li { border:1px solid #857994; border-top:1px solid #fff; border-left:1px solid #fff; }


/* IE6 Hack #sf-menu608 .sf-menu ul.sf-submenu li{ -border: 1px solid #fff; } */

#sf-menu608 .sf-vertical, #sf-menu608 .sf-vertical li { width:100%; display:block }
#sf-menu608 .sf-vertical li:hover ul.sf-submenu,
#sf-menu608 .sf-vertical li.sfHover ul.sf-submenu{ left:100%; display:block; position:absolute; top:0px; width:150px; }
</style>

<div id='sf-menu608'><ul class="sf-menu " ><li class="nav-selected"><a class="nav-selected" href="/">Home</a></li><li><a href="/index.php/historical-info/">Historical Info</a><ul class='sf-submenu'><li><a href="/index.php/historical-info/cortez_history/">History</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/historical-info/at_the_movies/">Cortezes in Film</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/historical-info/cortez-history-photos/">Cortez History Photos</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/historical-info/cortez-national-newsletters/">Cortez National Newsletters</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/historical-info/cortez-national-library/">Cortez National Library</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/historical-info/cortez-twin-coach/">Cortez Twin Coach</a><div class="ccm-spacer" style="width:150px"></div></li></ul></li><li><a href="/index.php/buying_a_cortez/">Buy a Cortez</a><ul class='sf-submenu'><li><a href="http://www.cortezcoach.com/ads">Classified Ads</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/buying_a_cortez/buying_a_cortez/">How to...</a><div class="ccm-spacer" style="width:150px"></div></li></ul></li><li><a href="/index.php/files/">Manuals, Etc.</a></li><li><a href="/index.php/links/">Links</a></li><li><a href="/index.php/forums/">Forums</a><ul class='sf-submenu'><li><a href="/index.php/forums/technical_forum/">Cortez Technical Forum</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/forums/association/">International Cortez Owners Association</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/forums/buying-and-selling-questions/">Buying and Selling Questions</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/forums/website/">Website</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/forums/trip-reports/">Trip Reports</a><div class="ccm-spacer" style="width:150px"></div></li></ul></li><li><a href="/index.php/shadetree-mechanic/">Shadetree Mechanic</a><ul class='sf-submenu'><li><a href="/index.php/shadetree-mechanic/the_great_wheel_and_bearing_debate/">The Great Wheel and Bearing Debate</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/shadetree-mechanic/stop_that_/">Stop That!</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/shadetree-mechanic/hydroboost-brakes-on-a-kent/">Hydroboost Brakes on a Kent</a><div class="ccm-spacer" style="width:150px"></div></li><li><a href="/index.php/shadetree-mechanic/installing-u-joints/">Installing U-Joints</a><div class="ccm-spacer" style="width:150px"></div></li></ul></li><li><a href="/index.php/gallerybox/">Gallery</a></li></ul></div>
<script type="text/javascript">
// initialise plugins
$(function(){
jQuery('ul.sf-menu').superfish({delay:800});
});
</script></div> </div>

<h1 id="logo"><!--
--><a href="/">CortezCoach.com</a><!--
--></h1>


<div class="spacer"></div>


<div id="header-area">
<div class="divider"></div>
<div id="header-area-inside">
<div id="blockStyle612Header4" class=" ccm-block-styles" >

<script type="text/javascript">
//<![CDATA[
var ccmSlideShowHelper612 = {

bID:612,
imgNum:0,

init:function(){
this.displayWrap=$('#ccm-SlideshowBlock-display'+this.bID);
if(this.imgInfos.length==0){
//alert('There are no images in this slideshow');
return false;
}
var maxHeight=0;
for(var i=0;i<this.imgInfos.length;i++){
this.addImg(i);
if(maxHeight==0 || this.imgInfos[i].imgHeight > maxHeight)
maxHeight=this.imgInfos[i].imgHeight;
}
this.displayWrap.css('height',maxHeight);


//center images
for(var i=0;i<this.imgInfos.length;i++){
if( this.imgInfos[i].imgHeight < maxHeight){
var t=((maxHeight - this.imgInfos[i].imgHeight)/2);
this.imgEls[i].css('top',t);
}
}
this.nextImg();
},
nextImg:function(){
if(this.imgNum>=this.imgInfos.length) this.imgNum=0;
this.imgEls[this.imgNum].css('opacity',0);
this.imgEls[this.imgNum].css('display','block');
this.imgEls[this.imgNum].animate({opacity:1},
this.imgInfos[this.imgNum].fadeDuration*1000,'',function(){ccmSlideShowHelper612.preparefadeOut()});
var prevNum=this.imgNum-1;
if(prevNum<0) prevNum=this.imgInfos.length-1;
if(this.imgInfos.length==1) return;
this.imgEls[prevNum].animate({opacity:0},this.imgInfos[this.imgNum].fadeDuration*800,function(){this.style.zIndex=1;});
},
preparefadeOut:function(){
if(this.imgInfos.length==1) return;
var milisecDuration=parseInt(this.imgInfos[this.imgNum].duration)*1000;
this.imgEls[this.imgNum].css('z-index',2);
setTimeout('ccmSlideShowHelper'+612+'.nextImg();',milisecDuration);
this.imgNum++;
},
maxHeight:0,
imgEls:[],
addImg:function(num){
var el=document.createElement('div');
el.id="slideImgWrap"+num;
el.className="slideImgWrap";
if(this.imgInfos[num].fullFilePath.length>0)
imgURL=this.imgInfos[num].fullFilePath;
else imgURL='/files/'+this.imgInfos[num].fileName;
//el.innerHTML='<img src="'+imgURL+'" >';
el.innerHTML='<div style="height:'+this.imgInfos[num].imgHeight+'px; background:url(\''+escape(imgURL)+'\') center no-repeat"> </div>';
//alert(imgURL);
if(this.imgInfos[num].url.length>0) {
//el.linkURL=this.imgInfos[num].url;
var clickEvent='onclick="return ccmSlideShowHelper612.imgClick( this.href );"';
el.innerHTML='<a href="'+this.imgInfos[num].url+'" '+clickEvent+' >'+el.innerHTML+'</a>';
}
el.style.display='none';
this.displayWrap.append(el);
var jqEl=$(el);
this.imgEls.push(jqEl);
},
imgClick:function(linkURL){
//override for custom behavior
},
imgInfos:[
{
fileName:"SS1.jpg",
fullFilePath:"/files/8612/4296/7201/SS1.jpg",
duration:5,
fadeDuration:2,
url:"",
groupSet:0,
imgHeight:240 }
, {
fileName:"SS3.jpg",
fullFilePath:"/files/8312/4296/7203/SS3.jpg",
duration:5,
fadeDuration:2,
url:"",
groupSet:0,
imgHeight:240 }
, {
fileName:"SS4.jpg",
fullFilePath:"/files/7712/4296/7204/SS4.jpg",
duration:5,
fadeDuration:2,
url:"",
groupSet:0,
imgHeight:240 }
, {
fileName:"SS2.jpg",
fullFilePath:"/files/4612/4296/7202/SS2.jpg",
duration:5,
fadeDuration:2,
url:"",
groupSet:0,
imgHeight:240 }
, {
fileName:"SS5.jpg",
fullFilePath:"/files/8012/4296/7199/SS5.jpg",
duration:5,
fadeDuration:2,
url:"",
groupSet:0,
imgHeight:240 }
]
}
$(function(){ccmSlideShowHelper612.init();});
//]]>
</script>

<div id="ccm-SlideshowBlock-display612" style="height:240px" class="ccm-SlideshowBlock-display">
<div id="ccm-SlideshowBlock-heightSetter612" class="ccm-SlideshowBlock-heightSetter"></div>
<div class="ccm-SlideshowBlock-clear" ></div>
</div>
</div>
</div>

<div class="divider"></div>
</div>
</div>
<div id="central">
<div id="sidebar">


<style>
.login_block_form .loginTxt{ font-weight:bold }
.login_block_form .uNameWrap{ margin:8px 0px; }
.login_block_form .passwordWrap{ margin-bottom:8px;}
.login_block_form .login_block_register_link{margin-top:8px; font-size:11px}
</style>

<form class="login_block_form" method="post" action="/index.php/login/do_login/">
<input type="hidden" name="rcID" id="rcID" value="1" />

<div class="loginTxt">Login</div>

<div class="uNameWrap">
<label for="uName"> Username </label><br/>
<input type="text" name="uName" id="uName" class="ccm-input-text">
</div>
<div class="passwordWrap">
<label for="uPassword">Password</label><br/>
<input type="password" name="uPassword" id="uPassword" class="ccm-input-text">
</div>

<div class="loginButton">
<input type="submit" class="btn ccm-input-submit" id="submit" name="submit" value="Sign In >" /> </div>

<div class="login_block_register_link"><a href="/index.php/register/">Click here to register »</a></div>

</form>

<div id="tnSpacer" style="height:30px"></div>
tallacman replied on at Permalink Reply
tallacman
You have no footer included. there is no </body></html>
so I would imagine it is not calling the footer element that contains the edit bar code.
hereNT replied on at Permalink Reply
hereNT
My guess would actually be that the template has that, but that there's a PHP error that isn't actually outputting anything. If the execution stops, then it would keep things from showing. Suppress errors or whatever is probably set in php.ini, though you probably can't fix that on a budget host to see what's actually happening.

The error is probably in a block that was added to the page, but knowing which one might be kind of hard to figure out.

Renaming whatever area that block is in would probably let you edit again.
jmenke replied on at Permalink Reply
jmenke
Thank you to everyone for the replies!! This answer got me what I needed. The RSS Display Block (which I've had on the site for a couple years, but may have updated recently) caused the problem. I deleted the block and all is well.

Thanks again!! You guys are terrific!