CGIs
: MT-Medic 1.34
Apr 26 2003
| #
| C:93
MT-Medic 1.34
April 26, 2003
- updated February 8, 2006
(Download)
MT-Medic is not actually a plugin but rather a CGI application that allows you to do some usefuly or emergency tasks on your MovableType installation.
Currently MT-Medic performs the following tasks:
- Configuration Listing
-
Lists all configuration entries of your MovableType installation.
Used for general troubleshooting.
- Installed Plugins Listing
-
Lists all the plugins that you have installed as well as the template tags and filters that each
adds to MovableType. It also shows any errors that the plugins may have.
Used when you have problems with a plugin or when you want to see which plugins and tags you have available.
- Installed Filters
-
Lets you try out the effects of different global tag attribute and text formatting filters that are installed.
Used when you need to see how a filter affects the text that it renders.
- Authors Administration
- Allows you to change the contact information (name, nickname, email, etc.) and blog creation and log viewing privileges, as well as to reset the password of any MovableType author.
Used when a user has forgotten (and can’t retrieve) their password and for general user administration.
- Blog/Author Permissions
- Allows you to view and change any authoring permissions (post, edit, templates, etc.) on any blog in the system.
Used for changing permissions on blogs that have been created by other users.
If you know of other tasks that would be suitable for MT-Medic (i.e. administrative tasks that cannot be done using the MovableType interface), please let me know by sending email to MTMedic-AT-nonplus.net.
Installation
- Edit the mt-medic.cgi file and specify an $ADMIN_PASSWORD in the configuration section in order to view information about your installation and to administer MovableType.
- Upload the mt-medic.cgi into the same directory where you installed mt.cgi.
- Make sure that mt-medic.cgi has executable permissions (chmod 755).
- Open MT-Medic in your browser (http://www.domain.com/MovableType/mt-medic.cgi).
Note: Keep the $ADMIN_PASSWORD secret and do not reveal it to anyone. If someone helping you with your MovableType installation needs to see your configuration settings, you can specify an $INFO_PASSWORD in the mt-medi.cgi file. This password is fairly safe to share with other people. It will allow them to see your configurations and installed plugins, but it won’t allow them to view or modify your author and blog permissions.
Version History
- Version 1.34 September 29, 2003
Added “Add New Author” to author listing.
- Version 1.3.3 June 15, 2003
Improved plugins listing:
- Catches more plugin warnings (that’s right, I’ve discovered $SIG{__WARN__}).
- Highlights warnings and errors.
- Adds links to plugin sources.
- Version 1.3.2 June 12, 2003
Fixed plugin error reporting when errors come from another module.
Fixed parsing and UI when script is installed under a name other than mt-medic.cgi
Fixed error when using on an installation that doesn’t have any blogs with entries with comments.
- Version 1.3.1 June 1, 2003
Sort configurations (and other stuff) aplhabetically.
Fixed “Can’t use an undefined value as an ARRAY reference” error when not using custom templates.
- Version 1.3 May 16, 2003
Added support for viewing filter effects.
Added plugin source listing for plugins with errors.
- Version 1.2.2 May 14, 2003
Fixed plugin parsing to ignore text in POD, comments, strings and beyond __END__.
Added checking of use dependencies.
- Version 1.2.1 May 9, 2003
Removed hardcoded password.
- Version 1.2 May 8, 2003
Changed plugin listing to display filter and text-filter effects and to display tag values, when possible. Plugins are parsed for $VERSION information and require dependencies are checked.
Added general authors configuration and blog listings.
Added blog authoring permissions configuration.
- Version 1.1 April 28, 2003
Changed password protection to use $INFO_PASSWORD for config and plugin listings and $ADMIN_PASSWORD for admin stuff.
- Version 1.0 April 28, 2003
Added configuration listing. Changed logged-in warning on bottom of page.
- Version 0.9 April 26, 2003
Original release.
-
1)
This is a great tool. Thanks for creating this.
-
2)
Very well done. Thanks for creating this.
-
3)
This is wonderful! One thing I would like to see is for the listing on the Configuration screen to have some sort of organization to it - perhaps grouping certain elements together. For example, having all the search options together, and the MySQL config options, etc. Or, if that’s too difficult, then sorted alphabetically. As it is now, it’s a bit confusing.
Thanks for a great tool! =)
-
4)
Very nicely done.
-
5)
PROBLEM—
Upon downloading Mt-medic, I can’t access the software. OSX doesn’t know how to open a .cgi extension.
-
6)
The mt-medic.cgi file is a text file. You should be able to open it from TextEdit or some other text editor (I use BBEdit). After editing it, make sure to save it as a plain text file.
-
7)
Where exactly do I insert the text I’ve now found? In the mt-cgi directory: where’s that?
-
8)
I am assisting Thomas from youthurban.com I installed MT-MEDIC succesfully. Is running, but getting the following error.
==============================
You cannot log in to MT-Medic untill you have specified the $ADMIN_PASSWORD in the configuration section of the mt-medic.cgi file.
==============================
Have supplied the $ADMIN_PASSWORD correctly. Am stumped……
-PTG
-
9)
Problem Solved
Applause: MT-Medic
-
10)
I am receiving the following errors on the MT-Medic: Plugins page. Any ideas?
Subroutine add_global_filter redefined at e:\websites\periodiclogic.com\mt\extlib/bradchoate/postproc.pm line 22, line 22.
An error occurred:
Can’t find unicode character property definition via main->e or e.pl at unicode/Is/e.pl line 0
Thanks in advance,
Rob
-
11)
This error shouldn’t cause you any concern. MT-Medic tries to load all modules it sees referenced in a plugin so that you can see any problems they might produce when loaded by the plugin. This particular module wouldn’t actually be loaded by the plugin itself when used with MovableType 2.6x (the plugins that use it check the version of MovableType), but MT-Medic has no way of knowing that.
Brad wrote the bradchoate::postproc module in MT 2.2 days and its functionality has been merged into the current versions of MovableType, hence the warning you see when MT-Medic tries to load it.
-
12)
I’m getting this error:
Can’t call method “blog_id” without a package or object reference at mt-medic.cgi line 1700.
…on one blog but not the other. The one that’s giving me the error is also the one that is suddenly having problems with mtsearch (no errors, just shows the same two entries over and over regardless of the search term). This same site was recently moved to a new server. Could this error be related to a perl module missing?
-
13)
Sorry…brain freeze! Forgot to post that the error occurs clicking on the “plugins” link…otherwise MT-medic works in all other respects.
-
14)
This tool is great, I got the file installed and think I did everything correctly, but my problem seems to be a bit more involved.
My webhost did some updating which screwed up royally all of my files. A friend helped me to restore these, but now unfortunatley, neither of us can log into my account now.
Hence my use of this dandy little tool, but when I try to create a new author I get the following message (since there seems to be NO authors on my log at all now):
An error occurred:
Invalid author id ‘0’ at /var/www/vh/illusivelife.com/mt-medic.cgi line 746.
What do I do now? HELP! I have been locked out of my blog for WAY to many days now and am going through withdrawals!
-
15)
I was not able to login as the default user and pass so I was told to try out medic. I did, and when I tried to make a new author, I got this error:
Invalid author id ‘0’ at mt-medic.cgi line 746.
-
16)
The Invalid author id ‘0’ at mt-medic.cgi line 746 error means that MT-Medic couldn’t correctly create the user. This usually means that your database is missing, misconfigured or corrupted.
If you’re using DB_Berkeley, make sure that your configuration points to the correct directory and that the directory contains the Author tables (author.db, etc.) along with the other tables. If they’re there, they are either corrupted or maybe you host changed the version of DB_Berkeley. Try the MT-Forum for a solution.
-
17)
Any chance we can have a flag to treat the set value of $ADMIN_PASSWORD as a crypt()ed value rather than plaintext? I’m rather nervous about storing such a password in a text file in the clear.
-
18)
Hi Stepan. I found that the show_source(url) function wasn’t working for me in Safari (v1.1), so I modified it as listed.
Mt-medic is great and has certainly helped me. Thanks for writing it.
function show_source(url)
{
//replacing the win.location stuff with more basic code, because the code I commented out fails in Safari…
win = window.open(url, ‘mtmedic_source’, ‘width=600,height=400,resizable=yes,scrollbars=yes’);
// Open window
// win = window.open(”, ‘mtmedic_source’, ‘width=600,height=400,resizable=yes,scrollbars=yes’);
// Clear contens
// win.location = ”;
// win.location.reload();
// Reload with URL
// win.location = url;
}
-
19)
What’s a pretty blog!!!
-
20)
PROBLEM with MT-medic.
the cgi works but it will not link to the proper page. my mt server has an address with a special port number, like www.aaa.com:9090 but MT-medic will creat links to www.aaa.com (without the port numner) so the links simply do no work.
|
|