Help - Search - Members - Calendar
Full Version: MT/TemplateContext.pm line 1379
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
slackorama
Version 3.121

I think one of my posts got imported w/o a value for the allow_comments as when I do a full rebuild, I get this warning:
Use of uninitialized value in string eq at
lib/MT/Template/Context.pm line 1379.


I changed it to
CODE
$cond{EntryIfCommentsOpen} = defined($next->allow_comments) && $next->allow_comments eq '1';

and the warning went away.
shelley
Do you use QuickPost to make entries? If so, you have to make sure to check one of the options for Allow Comments - there's a bug in QuickPost where it won't automatically preserve the default value you've set in Preferences.
slackorama
Ah. Thanks for the hinkfo.

I do use QuickPost quite a bit to post. I did notice that all my quickposts were getting saved with no comments despite my preference setting but never made the connection to this warning. I thought it was a bad import.

Thanks for your reply.
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.