Help - Search - Members - Calendar
Full Version: Error During Upgrade: Undefined Subroutine &customfields::upgrade:
Movable Type Community Forum > Installing and Upgrading > Upgrading
Jim226
Anyone out there can help me out, I have no clue how to fix this.

Thanks if you can help, I am not computer literate.

Take care.
Error during upgrade: Undefined subroutine &CustomFields::Upgrade::customfields_move_meta called at lib/MT/Upgrade.pm line 1145.

When I opened the file Upgrade.pm with dreamweaver. Upgrade.pm line 1145

}

sub core_upgrade_plugindata_meta_for_table {
my $self = shift;
return 0 if $Installing;
my (%param) = @_;
my $type = $param{type};
return 0 unless $type;
my $class = MT->model($type);
return 0 unless $class;

my $cfclass = MT->model('field');
return 0 if !$cfclass;

# this looks weird, but it winds up invoking
# the loading of custom field types and the
# installation of their meta properties
MT->registry('tags');

# special case for types that use CustomField plugindata
# for storing their custom field metadata instead of a 'meta'
# column.
require CustomFields::Upgrade;
# TODO: really this should vary on $type but it's already translated for "categories"
$self->progress($self->translate_escape('Moving metadata storage for categories...'));
CustomFields::Upgrade::customfields_move_meta($self, $type);

return 0;
}
Katie M
Sorry, don't have an answer, but wanted to bump this up and see if anyone can help. I've been stuck on the same issue for the past couple of hours and can't figure it out. I'm assuming it's a simple thing to fix, but unfortunately my perl skills are non-existent.

Anyone?
Plasticmind
This error message occurs because you need to remove the old version of Customfields from your plugin directory. The new Customfields lives in the add-on directory, and MT gets confused by having both versions of the plugin installed. Just delete the CustomFields directory from /mt-home/plugins/.
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-2009 Invision Power Services, Inc.