Help - Search - Members - Calendar
Full Version: Cannot rebuild site or save new entries
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
kelsnew1
I am so at a loss this time! Everything was working fine. I went to post an entry today, and got this error when I tried to save:

CODE
Building entry 'test' failed: Build error in template 'Date-Based Archive': Error in <MTEntries> tag: Error in <MTDateHeader> tag: You used an MTEntryDate tag without a date context set up.

I get the same error when I try to rebuild the site. It will say the same about the Cat-Based and Individual archives. I have recoded all 3 templates to match the MT default templates, to no avail.

However, an entry is listed for each time I have attempted to save it. I am not allowed to delete them (says I have deleted, but still shows the entries). And if I click on one to edit the entry, I get a "Load failed' error.

Additionally, on the main menu page, I get this:

CODE
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 58.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in unpack at lib/MT/Serialize.pm line 58.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in unpack at lib/MT/Util.pm line 67.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in modulus (%) at lib/MT/Util.pm line 30.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in subtraction (-) at lib/MT/Util.pm line 38.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in addition (+) at lib/MT/Util.pm line 38.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in modulus (%) at lib/MT/Util.pm line 44.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in subtraction (-) at lib/MT/Util.pm line 45.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in addition (+) at lib/MT/Util.pm line 45.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Util.pm line 70.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in subtraction (-) at lib/MT/Util.pm line 71.
MT::App::CMS=HASH(0x835f0ec) Argument "" isn't numeric in numeric gt (>) at lib/MT/Util.pm line 78.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 58.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in unpack at lib/MT/Serialize.pm line 58.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in substr at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) substr outside of string at lib/MT/Serialize.pm line 59.
MT::App::CMS=HASH(0x835f0ec) Use of uninitialized value in addition (+) at lib/MT/Serialize.pm line 60.


This is the most baffling issue I have had. I have not changed anything since yesterday, so I am not sure what the cause might be.
nammer
I wouldn't worry about the HASH errors, but I would make sure your date tags are within MTEntries containers and all of your entries have dates (see this thread). If you've done that (or think you have), feel free to post a relevant template snippet (using the CODE tags) and we can check. The other option mentioned in that thread is the possibility of database corruption; are you using Berkeley or MySQL?

Does that help?

Donna
kelsnew1
Hi Donna~
Two of the times I tried to save a new entry today resulted in entries without dates, but I am unable to edit or delete them. Everything else has dates.

Here is what my Ind. Archive Template looks like:

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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />

<title><$MTBlogName$>: <$MTEntryTitle$></title>
<!--#include virtual="/ssi-archives.shtml" -->


<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<$MTBlogURL$>index.rdf" />

<link rel="start" href="<$MTBlogURL$>" title="Home" />
<MTEntryPrevious>
<link rel="prev" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" />
</MTEntryPrevious>
<MTEntryNext>
<link rel="next" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" />
</MTEntryNext>

<script type="text/javascript" language="javascript">
<!--

function OpenTrackback (c) {
   window.open(c,
                   'trackback',
                   'width=480,height=480,scrollbars=yes,status=yes');
}

var HOST = '<$MTBlogHost$>';

// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
   var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
   document.cookie = curCookie;
}

function getCookie (name) {
   var prefix = name + '=';
   var c = document.cookie;
   var nullstring = '';
   var cookieStartIndex = c.indexOf(prefix);
   if (cookieStartIndex == -1)
       return nullstring;
   var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
   if (cookieEndIndex == -1)
       cookieEndIndex = c.length;
   return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
   if (getCookie(name))
       document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
   var base = new Date(0);
   var skew = base.getTime();
   if (skew > 0)
       date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
   var now = new Date();
   fixDate(now);
   now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
   setCookie('mtcmtauth', f.author.value, now, '', HOST, '');
   setCookie('mtcmtmail', f.email.value, now, '', HOST, '');
   setCookie('mtcmthome', f.url.value, now, '', HOST, '');
}

function forgetMe (f) {
   deleteCookie('mtcmtmail', '', HOST);
   deleteCookie('mtcmthome', '', HOST);
   deleteCookie('mtcmtauth', '', HOST);
   f.email.value = '';
   f.author.value = '';
   f.url.value = '';
}

//-->
</script>

<$MTEntryTrackbackData$>

<MTBlogIfCCLicense>
<$MTCCLicenseRDF$>
</MTBlogIfCCLicense>

</head>

<body>

<div id="banner">
<h1><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName$></a></h1>
<span class="description"><$MTBlogDescription$></span>
</div>

<div id="container">

<div class="blog">

<div id="menu">
<MTEntryPrevious>
<a href="<$MTEntryPermalink$>">« <$MTEntryTitle$></a> |
</MTEntryPrevious>
<a href="<$MTBlogURL$>">Main</a>
<MTEntryNext>
| <a href="<$MTEntryPermalink$>"><$MTEntryTitle$> »</a>
</MTEntryNext>
</div>

</div>


<div class="blog">

<h2 class="date"><$MTEntryDate format="%x"$></h2>

<div class="blogbody">

<h3 class="title"><$MTEntryTitle$></h3>

<$MTEntryBody$>

<a name="more"></a>
<$MTEntryMore$>

<span class="posted">Posted by <$MTEntryAuthor$> at <$MTEntryDate$>
<MTEntryIfAllowPings>
| <a href="<$MTCGIPath$><$MTTrackbackScript$>?__mode=view&entry_id=<$MTEntryID$>" onclick="OpenTrackback(this.href); return false">TrackBack</a>
</MTEntryIfAllowPings>
<br /></span>

</div>

<MTEntryIfAllowComments>

<div class="comments-head"><a name="comments"></a>Comments</div>

<MTComments>
<div class="comments-body">
<$MTCommentBody$>
<span class="comments-post">Posted by: <$MTCommentAuthorLink spam_protect="1"$> at <$MTCommentDate$></span>
</div>
</MTComments>

<MTEntryIfCommentsOpen>

<div class="comments-head">Post a comment</div>

<div class="comments-body">
<form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)">
<input type="hidden" name="static" value="1" />
<input type="hidden" name="entry_id" value="<$MTEntryID$>" />

<div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;">
    <label for="author">Name:</label><br />
    <input tabindex="1" id="author" name="author" /><br /><br />

    <label for="email">Email Address:</label><br />
    <input tabindex="2" id="email" name="email" /><br /><br />

    <label for="url">URL:</label><br />
    <input tabindex="3" id="url" name="url" /><br /><br />
</div>

Remember personal info?<br />
<input type="radio" id="bakecookie" name="bakecookie" /><label for="bakecookie">Yes</label><input type="radio" id="forget" name="bakecookie" onclick="forgetMe(this.form)" value="Forget Info" style="margin-left: 15px;" /><label for="forget">No</label><br style="clear: both;" />

<label for="text">Comments:</label><br />
<textarea tabindex="4" id="text" name="text" rows="10" cols="50"></textarea><br /><br />

<input type="submit" name="preview" value=" Preview " />
<input style="font-weight: bold;" type="submit" name="post" value=" Post " /><br /><br />

</form>

<script type="text/javascript" language="javascript">
<!--
document.comments_form.email.value = getCookie("mtcmtmail");
document.comments_form.author.value = getCookie("mtcmtauth");
document.comments_form.url.value = getCookie("mtcmthome");
if (getCookie("mtcmtauth")) {
   document.comments_form.bakecookie[0].checked = true;
} else {
   document.comments_form.bakecookie[1].checked = true;
}
//-->
</script>
</div>
</MTEntryIfCommentsOpen>
</MTEntryIfAllowComments>
</div>
</div>
</body>
</html>


I have 2 entries without dates from the ones I tried to save today, but am unable to change or delete them.

Upon reading the thread to which you linked, I am afraid of db corruption; my comments stopped displaying on 10/31/03 with no known cause! huh.gif

Thanks for looking!

BTW: this is my site
kelsnew1
*Just bumping*

Sorry, but having blog withdrawals.

Is this a lost cause?
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.