Help - Search - Members - Calendar
Full Version: New Entries Not Visible On Index
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
ursus
Hello-

Firstly, let me say that this is the fourth MT Blog I have set up, and the third that uses php includes. The structure of this one is largely based on the last [www.themerriweathers.com] which works perfectly. the one with the problem is at [www.ursinecalamity.com].

Also, I triple checked- the entries are set to publish and NOT to draft! And it is NOT a cache issue....

On with the show-

I'm using php and php includes for the header, footer, and sidebar. The main index outputs as index.php and the archives are set for php.

The new entries are in the db, and their individual, date, and category archive pages generate just fine. On the main page, however, the entry does not show; nor do the dynamic lists [<MTEntries> for recent entries and <MTCategories> for a category list] on the sidebar [an include file]. In order to get the dynamic lists in the sidebar to reflect the changes, I have to save and rebuild the sidebar template, which is nothing but:

CODE
<h2>Little Calamities</h2>
<?php include ('<$MTBlogURL$>miniblog/miniblog.inc'); ?>
<br><span style="font-size:7pt">[<a href=" ">the mini archive</a>]</span>

<h2>Recent Calamities</h2>
    <ul>
    <MTEntries lastn="10">
    <li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
    </MTEntries>
    </ul>
     
<h2>Recurring Calamities</h2>
       <ul>
       <MTCategories>
       <li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></li>
       </MTCategories>
       </ul>


The same goes for the main index- to get the new entries to show up, I have to save and rebuild the templates. Very curious...

The code for the index is:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
  <meta name="generator" content="Movable Type <$MTVersion$>" />
 
  <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />
  <link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" />
  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" />
 
  <title><$MTBlogName encode_html="1"$></title>
 
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />
 
  <MTBlogIfCCLicense>
  <$MTCCLicenseRDF$>
  </MTBlogIfCCLicense>

<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
 sfEls[i].onmouseover=function() {
     this.className+=" sfhover";
 }
 sfEls[i].onmouseout=function() {
     this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
 }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]></script>

</head>

<body>
<div id="container">
  <div id="main">
       
 <div id="titleblock">
           <img src="http://www.ursinecalamity.com/images/titleblock.jpg"><br>
       </div>
       
 <div id="menublock">
           <?php include ('<$MTBlogURL$>menu.inc'); ?><br>
       </div><p>
 
       <div id="blogentries">
 <div class="content">
     
     <MTEntries lastn="6">
     <$MTEntryTrackbackData$>
     
     <h3 id="a<$MTEntryID pad="1"$>"><$MTEntryTitle$>|<span style="font-size:x-small"><$MTEntryDate format="%x"$></span></h3>
     
     <p><$MTEntryBody$></p>
     
     <MTEntryIfExtended>
     <p class="extended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></p>
     </MTEntryIfExtended>
     
     <p class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink valid_html="1"$>"><$MTEntryDate format="%X"$></a>
<MTEntryIfAllowComments>
| <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a>
</MTEntryIfAllowComments>
     <MTEntryIfAllowPings>
     | <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a>
     </MTEntryIfAllowPings>
     | <MTEntryCategories glue="& ">
     <a href="<$MTCategoryArchiveLink$>#<$MTEntryID pad="1"$>"><$MTCategoryLabel$></a>
     </MTEntryCategories>
     </p>
     
     </MTEntries>                  
 </div>
 </div>

       </div>
    

 <div id="sidebar">
 <?php include ('<$MTBlogURL$>sidebar.inc'); ?>
 </div>
 
 <div style="clear: both;"> </div>
 
 <div id="footer">
 <?php include ('<$MTBlogURL$>footer.inc') ?>
 </div>
    </div>
</div>
</body>
</html>


I have added a new entry and then rebuilt ONLY the sidebar... you can see that it is listed there and that the link functions, and yet it does not appear on the main site.

Thanks for your input!
lisa
Are you using dynamic or static publishing? Which database are you using? Are you hosted on Yahoo? We've had some reports of weirdness (you can search here for threads).
ursus
I am using static publishing; at least, I assume so, as it is supposed to be the default. however, I cannot find where to check and possibly change this setting- it's not where the manual says it should be...

the database is MySQL, and the host *is* Yahoo, but my other blogs are also on yahoo and work fine...
lisa
I'm having the same issue with another blog. This solution will work once you're not making a lot of changes to your templates, otherwise it's cumbersome:
http://www.sixapart.com/movabletype/forums...ndpost&p=233414

If you're still busy making tweaks, you could save and rebuild that specific page/template for now.
ursus
Yeah, I got fed up and deleted the Yahoo install of MT and did a clean install of 3.2 myself. It was just the files, and not the DB, so I didn't even have to re-do any of my templates. Now everything works like a charm.
lisa
That's good news!
ursus
You're telling me!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.