<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2011://24/tag:forums.movabletype.org,2009://24.11982-</id>
  <updated>2011-09-01T02:26:33Z</updated>
  <title>Comments for Relative date bug?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2009://24.11982</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=11982" title="Relative date bug?" />
    <published>2009-01-08T14:57:02Z</published>
    <updated>2009-02-08T01:32:43Z</updated>
    <title>Relative date bug?</title>
    <summary>I was having a problem for a while where posts older than 7 days would start throwing errors during publishing and prevent index pages from updating. I had been using the relative date function for the post creation dates during...</summary>
    <author>
      <name>Unicorn Ninja</name>
      
    </author>
    
    <category term="General" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I was having a problem for a while where posts older than 7 days would start throwing errors during publishing and prevent index pages from updating. I had been using the relative date function for the post creation dates during the summary display. The error was showing a line number from a .pl file responsible for computing the relative dates. </p>

<p>For some reason, as soon as a post reached the 7 day old mark the function would fail. The solution for me was to remove the relative date format. I did not have time to debug the perl code and I&#8217;m not very familiar with perl in general. If someone at MT happens to see this, it might be something to look into.</p>

<p>Thanks for a great product!</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.11982-comment:15962</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.11982" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html#c15962" />
    <title>Comment from Mike T on 2009-01-08</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<blockquote>
The error was showing a line number from a .pl file responsible for computing the relative dates. 
</blockquote>

<p>Sounds like a plugin, not Movable Type itself. Why don't you post a complete copy of the error message you saw? That should explain what's going on.</p>]]>
    </content>
    <published>2009-01-08T15:58:30Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.11982-comment:15964</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.11982" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html#c15964" />
    <title>Comment from Unicorn Ninja on 2009-01-08</title>
    <author>
        <name>Unicorn Ninja</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>This is the error:<br />
Eval failure: Can't locate object method "user" via package "MT" at ../lib/MT/Util.pm line 260.</p>

<p>It is not a plug in. The template tag in use is: </p>]]>
    </content>
    <published>2009-01-08T16:05:03Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.11982-comment:18031</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.11982" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/01/relative-date-bug.html#c18031" />
    <title>Comment from Alex E. Schneider on 2009-02-07</title>
    <author>
        <name>Alex E. Schneider</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I can confirm that the <a href="http://www.movabletype.org/documentation/appendices/tags/date.html" rel="nofollow"><em>relative</em> attribute for date tags</a> is causing the error. I noticed it because scheduled entries didn't get published anymore. I started using the <em>relative</em> attribute 8 days ago.</p>

<p>This is the error notice in Activity Log: An error occurred while publishing scheduled entries: Can't locate object method &quot;user&quot; via package &quot;MT&quot; at lib/MT/Util.pm line 260. </p>

<p>I disabled plugins (MT-Twitter and Bookmarks), but the error persisted. Then I removed the <em>relative</em> attribute from date tags on the index template. Scheduled tasks now work again.</p>]]>
    </content>
    <published>2009-02-08T01:32:43Z</published>
  </entry>

</feed>

