default userpic

Relative date bug?

Vote 0 Votes

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.

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’m not very familiar with perl in general. If someone at MT happens to see this, it might be something to look into.

Thanks for a great product!

Reported on Movable Type 4.2

3 Replies

| Add a Reply
  • The error was showing a line number from a .pl file responsible for computing the relative dates.

    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.

  • default userpic

    This is the error:
    Eval failure: Can't locate object method "user" via package "MT" at ../lib/MT/Util.pm line 260.

    It is not a plug in. The template tag in use is:

  • I can confirm that the relative attribute for date tags is causing the error. I noticed it because scheduled entries didn't get published anymore. I started using the relative attribute 8 days ago.

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

    I disabled plugins (MT-Twitter and Bookmarks), but the error persisted. Then I removed the relative attribute from date tags on the index template. Scheduled tasks now work again.

Add a Reply

Forum Groups

513 1681

Last Topic: Google Analytics by Argentina Elections on May 27, 2009

202 880

Last Topic: Welcome to Movable Type by solle on May 27, 2009

49 204

Last Topic: Odd problem with searches - need help by Phill M on May 24, 2009

11 42

Last Topic: Community Solution -- but where? by webmoney on Mar 16, 2009

25 99

Last Topic: Search enhancement? by Rob on Apr 14, 2009

10 21

Last Topic: Comment Box Missing by rushskeith on Jan 9, 2009

90 318

Last Topic: Getting to the settings on Post Office by Rob G on Apr 2, 2009

code.sixapart.com

104 373

Last Topic: Login/Registration issue by Gaurav Sharma on May 26, 2009

90 307

Last Topic: HTML Printer-Friendly page shrinks by Mikki on May 19, 2009