Help - Search - Members - Calendar
Full Version: Mt 2.661 Error When Save/publish And Rebuilding Files
Movable Type Community Forum > Using Movable Type > Entries and Archives
wwwilder1
Using MT 2.661..... when save/ publish a new entry, this error message appears: ( however save/draft works and properly displays a preview of the entry)

An error occurred:

Month '-1' out of range 0..11 at plugins/LastModified.pl line 51

Here is the relevant code from LastModified.pl:

CODE

45 sub ts_to_local {
46 my ($ts) = @_;
47 require Time::Local;
48 import Time::Local qw(timelocal);
49 my ($y, $m, $d, $h, $min, $s) = unpack('A4A2A2A2A2A2', $ts);
50 $m--;
51 return timelocal($s, $min, $h, $d, $m, $y);
52 }
53
54 1;


BTW, the same error appears when rebuilding files after deleting spam comments.

Help is needed to solve this issue so that I can migrate this blog to MT4
wwwilder1
Again, would appreciate some support on this as an upgrade cannot ensue without it.


[quote name='wwwilder1' date='Apr 17 2008, 06:57 PM' post='262279']
Using MT 2.661..... when save/ publish a new entry, this error message appears: ( however save/draft works and properly displays a preview of the entry)

An error occurred:

Month '-1' out of range 0..11 at plugins/LastModified.pl line 51

anu
Try disabling / removing the plugin and see if you still get the error.

In any case, the plugin becomes obsolete with MT4, so you probably don't need it - although you may need to do some work on your templates.

http://www.staggernation.com/mtplugins/IfModified/
wwwilder1
Which plugin? In any event, I can't upgrade to MT4 until I fix this error, right?


QUOTE (anu @ Apr 21 2008, 05:06 AM) *
Try disabling / removing the plugin and see if you still get the error.

In any case, the plugin becomes obsolete with MT4, so you probably don't need it - although you may need to do some work on your templates.

http://www.staggernation.com/mtplugins/IfModified/
OtherNiceMan
QUOTE (wwwilder1 @ Jul 11 2008, 02:25 PM) *
Which plugin? In any event, I can't upgrade to MT4 until I fix this error, right?


QUOTE (anu @ Apr 21 2008, 05:06 AM) *
Try disabling / removing the plugin and see if you still get the error.

In any case, the plugin becomes obsolete with MT4, so you probably don't need it - although you may need to do some work on your templates.

http://www.staggernation.com/mtplugins/IfModified/



LastModified plugin.
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.