Help - Search - Members - Calendar
Full Version: Mt4.1, Mt-rebuild, Custom Fields
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Culture Snob
For a while, I've been using the MT-Rebuild plugin for regularly scheduled rebuilds of indexes and blogs regardless of new content. (I want reasonably up-to-date visitor stats to show without manual rebuilds.)

When I upgraded to MT4.1 with the Professional Pack, my Cron-job rebuilds with MT-Rebuild ignore Custom Fields data, which they didn't with MT4.01. So if I rebuild using the MT interface, everything's dandy. Using MT-Rebuild, they screw up the output. (If you care: Podcasting/audio content is done through Custom Fields, so ignoring Custom Fields means that my blog and my feeds think there's no audio content.)

I recognize that this is likely an issue with MT-Rebuild (which hasn't been updated in years) and not with MT4.1's Custom Fields functionality.

But I'm hoping that somebody might be able to explain why this is happening and whether there might be an easy fix.
Su-
QUOTE (Culture Snob @ Jan 25 2008, 11:27 AM) *
I recognize that this is likely an issue with MT-Rebuild (which hasn't been updated in years) and not with MT4.1's Custom Fields functionality.


I'm not so sure about that. The rebuild script(Just to check, this one?) doesn't actually "do" anything as far as the rebuild process itself. It just tells MT to rebuild stuff, via the usual means.

Also, exactly what version of Custom Fields are you talking about? Arvind's original never got out of beta, and the one in the Professional Pack isn't the same piece of software.
Culture Snob
QUOTE (Su- @ Jan 25 2008, 12:25 PM) *
The rebuild script(Just to check, this one?)


Yes.

QUOTE (Su- @ Jan 25 2008, 12:25 PM) *
Also, exactly what version of Custom Fields are you talking about? Arvind's original never got out of beta, and the one in the Professional Pack isn't the same piece of software.


This is the Professional Pack version of Custom Fields. I had been using Arvind's Custom Fields (both in 3.X and 4.0/4/01) before upgrading to 4.1.
Culture Snob
Mark Carey suggested this change to mt-rebuild that seemed to work.
After
CODE
my $mt = MT->new(Config => $MT_DIR . 'mt.cfg',
                Directory => $MT_DIR) || die MT->errstr;

add
CODE
$mt->run_callbacks('init_app', $mt);

I thought it might be helpful to others.
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.