Help - Search - Members - Calendar
Full Version: Upgrade From 3.34 To 4.23
Movable Type Community Forum > Installing and Upgrading > Upgrading
Phill M
I just upgraded from 3.34 to the latest version.

When I go to cgi/mt/mt I don't see a dashboard at all. I see a list of links like this:

Movable Type Pro

* System Overview
o Users
o Blogs
o Global Templates
o Settings
o Plugins
o Activity Log
o Tools
* Help
* Hi Phill,
* Logout

* CoRoBri
o System Overview
o Select another blog...
o Create a new blog
* Write Entry

* Blog Dashboard


Hod did I kill the dashboard? this it totally unusable

Please help!

TIA

Phill
OtherNiceMan
Looks like mt-static has not been uploaded / in the right place / not over written all the old files.
Phill M
QUOTE (OtherNiceMan @ Dec 24 2008, 12:25 AM) *
Looks like mt-static has not been uploaded / in the right place / not over written all the old files.


OK I set up a new mt-static folder so I know the files would be generated (these were in place the first try also)

I added the following to all mt*.cgi files to stop the bootstrap not found error on Win IIS
use File::Basename;
use File::Spec;
use lib File::Spec->catdir(dirname($0), "lib");

When I try to upgrade, mt-upgrade.cgi generated the following error:
Line 217
char 5
Error: 'TC' is undefined

Now what?
OtherNiceMan
That is another missing / wrong JavaScript file error.

Is the path to mt-static correct in your config file?

Did you ftp files or do you have direct access to the server?
Phill M
QUOTE (OtherNiceMan @ Dec 25 2008, 03:06 AM) *
That is another missing / wrong JavaScript file error.

Is the path to mt-static correct in your config file?

Did you ftp files or do you have direct access to the server?


I have direct access to the sever. I copied the mt-config file from the 3.34 install to the 4.23 install folder

Phill M
OK -- solved hte problem with the script error - I had tried ot use a new static page location and MT didn't like that.

I verified the location of MT-static, upgraded the database and still don't see the dashboard.

I see all the links in a list. So, I'm right back were I was when I started.

Suggestions version 2.0?

TIA

Phill M
OtherNiceMan
Can you post the contents of your mt-config (xxxx user and passwords).

Are you using default locations in IIS?
Phill M
QUOTE (OtherNiceMan @ Dec 25 2008, 09:23 AM) *
Can you post the contents of your mt-config (xxxx user and passwords).

Are you using default locations in IIS?

Here is my mt-config file:
## Movable Type configuration file ##
## ##
## This file defines system-wide settings for Movable Type ##
## In total, there are over a hundred options, but only those ##
## critical for everyone are listed below. ##
## ##
## Information on all others can be found at: ##
## http://www.movabletype.org/documentation/a...fig-directives/ ##

################################################################
##################### REQUIRED SETTINGS ########################
################################################################

# The CGIPath is the URL to your Movable Type directory
CGIPath http://98.221.102.88:1226/mt/

# The StaticWebPath is the URL to your mt-static directory
# Note: Check the installation documentation to find out
# whether this is required for your environment. If it is not,
# simply remove it or comment out the line by prepending a "#".

StaticWebPath http://98.221.102.88:1226/mt-static

MailTransfer smtp

SMTPServer smtp.comcast.net

#================ DATABASE SETTINGS ==================
# REMOVE all sections below that refer to databases
# other than the one you will be using.

##### MYSQL #####
ObjectDriver DBI::mysql
Database movabletype
DBUser xxxxxx
DBPassword xxxxxxx
DBHost localhost

I had the can't find bootstrap issue CGI error on IIS (version 5) so I downloaded the latest bootstrap.pm and created a virtual directory. The alternative was to modify each mt*.cgi file adding three lines (see the KB entry about bootstrap.pm not being found). That should not be the issue, cause I did try the modify files method and that didn't work either.

Next step is clean install on another web site.

Thanks
OtherNiceMan
Where did you download the bootstrap file, I know of one for mt3.x, but not for mt4?

Can I confirm the file system layout is along the lines of

c:\inetpub\wwwroot <- IIS Document Root maps to http://98.221.102.88:1226/
c:\inetpub\wwwroot\mt-static <- All static files http://98.221.102.88:1226/mt-static brings up OK message
c:\inetpub\wwwroot\mt <- All CGI / mt perl files http://98.221.102.88:1226/mt
Phill M
This is where the bootstrap.pm came from:
http://www.sixapart.com/movabletype/kb/kno...rror_on_ii.html

There's no mention of it being version specific

the director structure is this:
the web site is on my own D drive:

D:\website

it maps to http://98.221.102.88:1226/

MT is in http://98.221.102.88:1226/cgi-bin/mt folder

http://98.221.102.88:1226/mt is a virtual directory mapped to the above
When I run mt-check.cgi from the http://98.221.102.88:1226/mt folder, the working directory and URL match

The other alternative was to add the following to each mt*.cgi script

use File::Basename;
use File::Spec;
use lib File::Spec->catdir(dirname($0), "lib");

I tried that method also and got the same results - no dashboard, just a list of links that was pretty unusable

Trying a clean install on a new website didn't work either - I'll try the upgrade again tonight and see what I get


At this point, I've reverted to version 3.34
OtherNiceMan
Well that is MT3.2 KB article (see header). It was written before MT4 came out.

Which working directory are they showing? cgi-bin/t or just mt?

I am just looking at my test system (IIS5.1 / XP) and I didn't need to create a virtual directory or change bootstrap.

Are you running IIS5, IIS6 or IIS7? Which OS XP, Vista, 2000, 2003, 2008?
OtherNiceMan
I found this on the wiki http://wiki.movabletype.org/MT_Hosting_Quirks (at the bottom, Windows hosting quirks). Don't know if it useful.
Phill M
I am running IIS5, Windows 2000 advanced server.

I'll try reverting to the standard package again and eliminate the virtual directory.

This is new and worth experimentation:

If you try and access mt.cgi and get "CGI Error. The specified CGI application misbehaved by not returning a complete set of HTTP headers" you need to fix it by doing the following:

Open up all .cgi files in the root of your MT install and change 'lib' to the full pathname of your lib (which can be found by running mt-check.cgi which should run anyway). For example change:

use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';

to

use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'D:\www\sitename\cgi-bin\mt4\lib';
Phill M
Well, the wiki suggesiton didn't work. Reverting to a new install, upgrading and not modifying anything gives me a bootstrap not found (the working directory does not match the MT home directory.

The 3.34 modifications don't work on 4.23 and the best I can get is a totally useless dashboard unless it stops with an error before that.

There were a few features in 4.23 I wanted to try out, but this just doesn't seem to be worth the effort
Phill M
OK - I'm done.. I'll stick with 3.34

I created a new website, uploaded MT-4.32-eng and tried to install.

mt-check reveals:

Current working directory: D:/corobri
MT home directory: D:\corobri\cgi-bin\mt\

then install script shows an error at line 1025
class is not defined

If i continue, I get an error
tc is no defined

this has been slightly more stressful than an IRS audit
Phill M
I tried again on a clean install of XP with IIS5.1

MTcheck reports the same cgi-bin address and working directory this time, bit I still am getting java script errors (TC not defined). Is it possible I have a corrupted download? is there another download source?

QUOTE (OtherNiceMan @ Dec 26 2008, 01:47 PM) *
Well that is MT3.2 KB article (see header). It was written before MT4 came out.

Which working directory are they showing? cgi-bin/t or just mt?

I am just looking at my test system (IIS5.1 / XP) and I didn't need to create a virtual directory or change bootstrap.

Are you running IIS5, IIS6 or IIS7? Which OS XP, Vista, 2000, 2003, 2008?

OtherNiceMan
Did you download using FF or IE? (Zip or tar.gz version?)

Also if you do view source you should find links to .js files, can you check that they are accessible.

Phill M
I used the zip version, Hmmmmm let's try the tar.gz download...



QUOTE (OtherNiceMan @ Jan 1 2009, 11:45 AM) *
Did you download using FF or IE? (Zip or tar.gz version?)

Also if you do view source you should find links to .js files, can you check that they are accessible.

Phill M
Ahh dawns the light!!! DUH

THere are no js files in my mt-static folder at all

Here's the source: <
!--[if IE]>
<link rel="stylesheet" href="http://98.221.102.88:1225/mt-static/css/hacks/ie.css?v=4.23-en" type="text/css" />
<![endif]-->

<script type="text/javascript" src="http://98.221.102.88:1225/mt-static/js/common/Core.js?v=4.23-en"></script>
<script type="text/javascript" src="http://98.221.102.88:1225/mt-static/js/tc.js?v=4.23-en"></script>



<script type="text/javascript" src="http://98.221.102.88:1225/mt-static/mt.js?v=4.23-en"></script>

<script language="javascript" type="text/javascript">


mt-static is empty

How do I populate it?

QUOTE (OtherNiceMan @ Jan 1 2009, 11:45 AM) *
Did you download using FF or IE? (Zip or tar.gz version?)

Also if you do view source you should find links to .js files, can you check that they are accessible.

OtherNiceMan
They should be in your zip file.
Phill M
SUCCESS!!!!!
I copied all the files from cgi-bin/mt/mt-static to the mt-static folder I created and lo and behold......

It freaking works!!!

I'm going to look at the tar version to see what's in there. Shouldn't the install script have populated my mt-static folder automatically?

Thank you!


QUOTE (OtherNiceMan @ Jan 1 2009, 11:45 AM) *
Did you download using FF or IE? (Zip or tar.gz version?)

Also if you do view source you should find links to .js files, can you check that they are accessible.

OtherNiceMan
No, part of the install instructions you should copy the mt-static directory from the zip file to the correct location http://www.movabletype.org/documentation/i...uick-start.html
Phill M
Next time I'll RTFM!

I feel like an idiot! (Again!)

QUOTE (OtherNiceMan @ Jan 1 2009, 02:21 PM) *
No, part of the install instructions you should copy the mt-static directory from the zip file to the correct location http://www.movabletype.org/documentation/i...uick-start.html

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.