Fix for Multiple Logon Login Fix for Movable Type 3.16


Yesterday brought the problem and today brings the answer. Well, answers. There are two ways you can fix the multiple login issue afflicting your Movable Type install if you placed it in the root directory.

JANKOWSKI SOLUTION



The first is a quick and easy fix that has been termed the JANKOWSKI solution, so named as it refers to the person who posted it on the Movable Type forums.

The Jankowski solution involved modifying your APP.PM file. This is located under the LIB/MT subdirectory of your installation:

If you don’t have a copy of Movable Type on your local machine you’ll need to FTP it.

After you open APP.PM with a text editor you need to make the following changes:

It’s line 583 of App.pm in 3.16 – the first three lines will look like this when you get there:

sub app_path {
my $app = shift;
return $app->{__path} if exists $app->{__path};

Change the third line to this:

sub app_path {
my $app = shift;
return $app->mt_path;

This change works great and will allow you to run your Movable Type installation from the root directory. There are two concerns with this:

  1. Will this change break anything? I don’t know. I know it worked on the installations I tested it on, but I would be concerned with new plugins that are released since Six Apart made the change for plugin authors.
  2. Is this supported by Six Apart? I don’t know since my ticket is still open with no answer and there hasn’t been an official message from them.

FULL MOVE SOLUTION

The second and most time consuming option is to move your MT files. This involves more work, but is guaranteed to work for you.

Logon using an FTP client to your hosting account. I use SmartFTP, which is free for non-commercial use.

Go to the WWW or PUBLIC_HTML directory and you’ll see your MT files. It’s going to look like this:

Next, create a new subdirectory. I called mine MT and move each of the basic MT subdirectories into it. The ones you need to move are the following:

  • docs
  • examples
  • extlib
  • images
  • lib
  • php
  • plugins
  • schema
  • search_templates
  • tmpl
  • tools

After that is completed your folder should look like this:

Now you need to move the Movable Type files out of your ROOT directory and into your MT directory. Make sure you move these files:

  • mt-add-notify.cgi
  • mt-atom.cgi
  • mt-check.cgi
  • mt-comments.cgi
  • mt-db-pass.cgi
  • mt-db2sql.cgi
  • mt-search.cgi
  • mt-send-entry.cgi
  • mt-tb.cgi
  • mt-testbg.cgi
  • mt-view.cgi
  • mt-xmlrpc.cgi
  • mt.cfg
  • mt.cgi
  • mt.js
  • styles.css

This what it will look like when you’re finished moving:

The last thing you need to do is modify your MT.CFG file. This is a critical step. In your file there is a line that looks like this:

# Movable Type uses the CGIPath setting to construct links back to
# CGI scripts; for example, the MT tag <$MTCGIPath$> is substituted
# with the value of the CGIPath setting. You will need to change this
# value when you first install MT; instructions for doing so are in
# the Installation Instructions, in INSTALLING THE MOVABLE TYPE
# APPLICATION CODE, Step 3.

CGIPath http://www.yourwebsite.com

Change the CGIPath to this:

CGIPath http://www.yourwebsite.com/mt/

Save the file and FTP to your site.

Whew. Lots of work, but now you’ve ensured that not matter what you’re in sync with Six Apart.

Related posts:

  1. Multiple Logon Login Issue – Movable Type 3.16 Breaks Root Installation
  2. Movable Type Sucks
  3. Movable Type Logon Problem 1
  4. Movable Type Logon Problem 2
  5. Movable Type Logon Problem 3

Speak Your Mind

*