moto

MT5でのテーマとプラグインをアップロード後、MT管理画面にサインインできなくなる

0

▼状況
MT5のテーマとプラグインをアップロード後、mt.cgiにアクセスするとアップグレード画面が出る。

アップグレードは問題なく完了し、MTのログイン画面に切り替わる。
この時のURLは/mt-upgrade.cgiです。

ユーザー名とパスワードを入力して、サインインしようとすると「サインインできません。」と出る。

▼対策
ブラウザのcookieを削除しても解決しません。

MT-Medicプラグインを利用しても解決できません。

パスワードの再設定をして、送られてきたメール内のパスワードでサインインすると正常にサインインできます。

ローカル環境でも同様の問題が起き、上記の方法では解決できませんでした。

使用したテーマとプラグインは書籍「Movable Type 5実践テクニック」のChapter2・3です。

プラグイン名:
ActionStreams
CKEditor
SortCatFld
GetQueryParam
IfFileExist-2.00
MailForm
QuickRebuild
UserDashboard

以前、他のテーマやプラグインを利用してもこのようなことは起きず、今回が初めてです。
MT自体のバグなのか、利用したテーマやプラグインの問題なのか、私の操作に間違いがあるのかわかりません。
今後もMTの知識を深めるためにも是非、原因を知りたいと思います。

よろしくお願いいたします。

▼当方の環境です。

サーバー:ミニム BIGプラン
http://www.minim.jp/

データベース:MySQL

ブラウザ:Firefox3 IE8

OS:Windws Vista

MTバージョン:MT-5.01-ja

返信(2)

| 返信する
  • motoさんこんにちは。
    「Movable Type 5実践テクニック」をお買い求めいただき、ありがとうございます。

    ご質問の件ですが、おそらくデータベースのアップグレードに失敗している状況です。
    このテーマで使っているプラグインのうち、ActionStreams/SortCatFld/MailFormの3つで、データベースのアップグレードを行っています。

    これまでの経験では、MySQLのバージョンやPerlのモジュールのバージョン等の影響で、まれにデータベースのアップグレードがうまくいかないサーバーがあります。

    試しに、以下の手順を行って、データベースにテーブルを手動で作ってみてください。

    1.phpMyAdminにログインし、MTのデータベースを操作する状態にします。
    2.「mt_mailform_setting」「mt_profileevent」「mt_profileevent_meta」のテーブルがあれば、それらのテーブルをいったん削除します。
    3.「mt_category」テーブルに「category_order_number」というフィールドができていれば、そのフィールドを削除します。
    4.画面上端の方のメニューで「SQL」を選び、SQLを入力できる状態にします。
    5.以下のSQLを入力し、「実行する」ボタンをクリックします。

    CREATE TABLE `mt_profileevent` (
    `profileevent_id` int(11) NOT NULL AUTO_INCREMENT,
    `profileevent_author_id` int(11) NOT NULL,
    `profileevent_class` varchar(255) DEFAULT 'event',
    `profileevent_created_by` int(11) DEFAULT NULL,
    `profileevent_created_on` datetime DEFAULT NULL,
    `profileevent_identifier` varchar(200) DEFAULT NULL,
    `profileevent_modified_by` int(11) DEFAULT NULL,
    `profileevent_modified_on` datetime DEFAULT NULL,
    `profileevent_visible` int(11) NOT NULL DEFAULT '1',
    PRIMARY KEY (`profileevent_id`),
    KEY `mt_profileevent_author_id` (`profileevent_author_id`),
    KEY `mt_profileevent_identifier` (`profileevent_identifier`),
    KEY `mt_profileevent_created_on` (`profileevent_created_on`),
    KEY `mt_profileevent_class` (`profileevent_class`),
    KEY `mt_profileevent_created_by` (`profileevent_created_by`)
    );
    CREATE TABLE `mt_profileevent_meta` (
    `profileevent_meta_profileevent_id` int(11) NOT NULL,
    `profileevent_meta_type` varchar(75) NOT NULL,
    `profileevent_meta_vchar` varchar(255) DEFAULT NULL,
    `profileevent_meta_vchar_idx` varchar(255) DEFAULT NULL,
    `profileevent_meta_vdatetime` datetime DEFAULT NULL,
    `profileevent_meta_vdatetime_idx` datetime DEFAULT NULL,
    `profileevent_meta_vinteger` int(11) DEFAULT NULL,
    `profileevent_meta_vinteger_idx` int(11) DEFAULT NULL,
    `profileevent_meta_vfloat` float DEFAULT NULL,
    `profileevent_meta_vfloat_idx` float DEFAULT NULL,
    `profileevent_meta_vblob` mediumblob,
    `profileevent_meta_vclob` mediumtext COLLATE utf8_unicode_ci,
    PRIMARY KEY (`profileevent_meta_profileevent_id`,`profileevent_meta_type`),
    KEY `mt_profileevent_meta_type_vint` (`profileevent_meta_type`,`profileevent_meta_vinteger_idx`),
    KEY `mt_profileevent_meta_type_vflt` (`profileevent_meta_type`,`profileevent_meta_vfloat_idx`),
    KEY `mt_profileevent_meta_type_vdt` (`profileevent_meta_type`,`profileevent_meta_vdatetime_idx`),
    KEY `mt_profileevent_meta_type_vchar` (`profileevent_meta_type`,`profileevent_meta_vchar_idx`)
    );
    CREATE TABLE `mt_mailform_setting` (
    `mailform_setting_id` int(11) NOT NULL AUTO_INCREMENT,
    `mailform_setting_author_id` int(11) DEFAULT NULL,
    `mailform_setting_auto_reply` tinyint(4) DEFAULT NULL,
    `mailform_setting_blog_id` int(11) NOT NULL,
    `mailform_setting_body_template_id` int(11) DEFAULT NULL,
    `mailform_setting_class` varchar(255) DEFAULT 'mailform_setting',
    `mailform_setting_common_template_id` int(11) DEFAULT NULL,
    `mailform_setting_description` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_email_bcc` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_email_cc` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_email_confirm` tinyint(4) DEFAULT NULL,
    `mailform_setting_email_from` varchar(255) DEFAULT NULL,
    `mailform_setting_email_from_type` int(11) DEFAULT NULL,
    `mailform_setting_email_to` varchar(255) DEFAULT NULL,
    `mailform_setting_email_to2` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_error_check_fields` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_error_check_in_preview` tinyint(4) DEFAULT NULL,
    `mailform_setting_error_msg` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_error_specific_check` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_error_template_id` int(11) DEFAULT NULL,
    `mailform_setting_form_template_id` int(11) DEFAULT NULL,
    `mailform_setting_mail_subject` varchar(255) DEFAULT NULL,
    `mailform_setting_must_check_fields` mediumtext COLLATE utf8_unicode_ci,
    `mailform_setting_post_template_id` int(11) DEFAULT NULL,
    `mailform_setting_preview_template_id` int(11) DEFAULT NULL,
    `mailform_setting_reply_subject` varchar(255) DEFAULT NULL,
    `mailform_setting_reply_template_id` int(11) DEFAULT NULL,
    `mailform_setting_rmail_from` varchar(255) DEFAULT NULL,
    `mailform_setting_title` varchar(255) DEFAULT NULL,
    `mailform_setting_use_ajax` tinyint(4) DEFAULT NULL,
    `mailform_setting_wait_msg` mediumtext COLLATE utf8_unicode_ci,
    PRIMARY KEY (`mailform_setting_id`),
    KEY `mt_mailform_setting_class` (`mailform_setting_class`),
    KEY `mt_mailform_setting_title` (`mailform_setting_title`),
    KEY `mt_mailform_setting_blog_id` (`mailform_setting_blog_id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
    ALTER TABLE `mt_category` ADD `category_order_number` INT DEFAULT NULL

  • 壱様

    はじめまして。丁寧でわかりやすいコメント・アドバイスをありがとうございます。

    教えていただいた通りにやってみました。
    SQLはエラーもなく、無事に実行され、いまのところMTも問題なく動作しております。

    パスワードの再設定後、問題なくMTが動作していてもデータベースのアップグレードに失敗していることがあるのですね。

    とても勉強になりました。今後の制作に活かしていきたいと思います。

    今後ともよろしくお願いいたします。
    ありがとうございました。

返信する