Emmanuel

unknown action upgrade : annoying error !

Vote 0 Votes

Hi,
i've installed MT 4.31 on openbsd in a chrooted apache 1.3.
Everything is fine except a very annoying error which is about six times on ten i got the following error:
a blank page with the laconic message

Can't load error template; got error 'the loading of template 'error.tmpl' failed. '. Giving up. Original error was:
Unknown action upgrade
.
If i repost the action by refreshing a few time later; it may work...

If looked in the MT::App::CMS.pm module and the action seems to be defined here and point to the package/sub Tools::upgrade


'upgrade' => {
code => "${pkg}Tools::upgrade",
requires_login => 0,
},

I've also looked in the MT::App.pm : the error is raised when the action's code handler isn't defined.

I dumped the $app var :

GOT Global_actions:$VAR1 = undef;
GOT Mode : upgrade  require_login : 0  
GOT App :$VAR1 = bless( {
	 'state_params' => [ '_type', 'id', 'tab', 'offset', 'filter', 'filter_val', 'blog_id', 'is_power_edit', 'filter_key', 'type' ],
	 'mode' => 'upgrade',
	 'author' => undef,
	 'vtbl' => {},
	 'cfg_file' => '/mt/mt-config.cgi',
	 'mt_dir' => '/cgi-bin',
	 'default_mode' => 'dashboard',
	 'return_args' => undef,
	 'is_admin' => 1,
	 'upgrade_required' => 1,
	 'mt_user' => undef,
	 'config_dir' => '/mt',
	 'request' => bless( { '__stash' => { 'App-Class' => 'MT::App::CMS' } }, 'MT::Request' ),
	 'apache' => bless( do{\(my $o = 2131447860)}, 'Apache' ),
	 'cookies' => {
					'mt_commenter' => bless( do{\(my $o = '-2022317956')}, 'Apache::Cookie' ),
					'commenter_name' => bless( do{\(my $o = '-2022317676')}, 'Apache::Cookie' ),
					'mt_user' => bless( do{\(my $o = '-2022318276')}, 'Apache::Cookie' )
				  },
	 'plugin_template_path' => '',
	 'query' => bless( do{\(my $o = '-2022318604')}, 'Apache::Request' ),
	 'request_method' => 'GET',
	 '__mt_path' => '/mt/',
	 'charset' => 'iso-8859-1',
	 'app_dir' => '/cgi-bin',
	 'cfg' => bless( { '__var' => {
									'' => undef,
									'commentscript' => 'comments',
									'staticfilepath' => '/htdocs/mt-static',
									'adminscript' => 'app',
									'mailtransfer' => 'sendmail',
									'cgipath' => '/mt/',
									'database' => '/mt/db/mt.db',
									'staticwebpath' => '/mt-static/',
									'sendmailpath' => '/usr/sbin/sendmail',
									'xmlrpcscript' => 'xmlrpc',
									'searchscript' => 'search',
									'objectdriver' => 'DBI::sqlite',
									'trackbackscript' => 'trackback'
								  },
					   '__settings' => { '' => { 'dirty' => 1, 'key' => undef },
										 'schemaversion' => {},
										 'adminscript' => { 'dirty' => 1 },
										 'mailtransfer' => { 'dirty' => 1 },
										 'sendmailpath' => { 'dirty' => 1 },


Some hash values seems weird:
'mt_dir' => '/cgi-bin', AND 'app_dir' => '/cgi-bin', which are wrong.

Otherwise:
*it was a fresh install
*i reinstalled the english version (previous was french) : same error
* not scp copy problem, not permission problem,...

Any idea ?

Reported on Movable Type 4.3

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012