Help - Search - Members - Calendar
Full Version: Error In Rebuilding Individual Archives
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
rod91680
Hi,

I'm currently running MT 4.01, and I'm having errors trying to rebuild my blog.

When I rebuild my blog, it gets hung on the individual entry archives. I have successfully rebuilt all of the other archives. When it stalls, it gives me the following error:

Cannot find column 'email' for class 'MT::TBPing' at lib/MT/Template/ContextHandlers.pm line 3930

I have narrowed it down to having something to do with Trackbacks. To test this, I made a small but detectable change to my individual entry archive template. All of the pages up until the first instance of an entry containing a trackback have the change; all subsequent entries are left unbuilt. When I deleted the trackback from that entry, the rebuilding worked until it hit the next trackback.

Now, a workaround would be to delete all trackbacks; not a very attractive option. I've gone into the code to see if I could try and figure it out, but since I know nothing about perl that was pretty futile.

If someone would be able to offer their assistance I would be forever grateful. Thanks.
Su-
QUOTE (rod91680 @ Dec 15 2007, 09:32 PM) *
Cannot find column 'email' for class 'MT::TBPing' at lib/MT/Template/ContextHandlers.pm line 3930


Something seems screwy. That line's in the routine that handles the CommentEmail tag. On the surface, it seems like this should have nothing to do with trackback at all. Trackbacks don't even have e-mail data(which is basically what the error is saying, not that it helps us).

For the sake of testing, see what happens if you use MTIgnore to block out your comment code. This won't fix anything, but it'd at least confirm that the problem is with the commenting template tags and not the trackback section.

I'm assuming this is a new problem. Do you have any recollection of when it started and what you the last thing you changed before that was?
rod91680
QUOTE (Su- @ Dec 16 2007, 11:55 AM) *
QUOTE (rod91680 @ Dec 15 2007, 09:32 PM) *
Cannot find column 'email' for class 'MT::TBPing' at lib/MT/Template/ContextHandlers.pm line 3930

For the sake of testing, see what happens if you use MTIgnore to block out your comment code. This won't fix anything, but it'd at least confirm that the problem is with the commenting template tags and not the trackback section.


Thanks for the suggestion, Su. I managed to narrow it down and fix the problem.

In a nutshell, here was my comment form list:
CODE
<MTSimlpleComments>
<mt:setvarblock name="commenteremail"><mt:CommentEmail /></mt:setvarblock>
<MTSimpleCommentIfComment>
blah blah blah
</MTSimpleCommentIfComment>

....
</MTSimpleComments>


For some reason, MT didn't like where I put the setvarblock tag. Now the code reads as follows:

CODE
<MTSimlpleComments>
<MTSimpleCommentIfComment>
<mt:setvarblock name="commenteremail"><mt:CommentEmail /></mt:setvarblock>
blah blah blah
</MTSimpleCommentIfComment>

....
</MTSimpleComments>


If you didn't suggest to stick code in <mt:ignore> tags I would never have figured this one out. This still all perplexes me as to why that little change made all the difference.

Thanks again, Su.
Su-
Ah, that actually makes sense. Without the IfComment test, you were forcing it to try and pull comment information for trackback items. I guess the CommentEmail tag doesn't check on its own whether it's actually in a comment context before trying to pull data.
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.