インデックステンプレートを保存できないエラー
MT管理のホームページに robots.txt を忘れてたので足そうとしたところ、保存時にこんなエラー。
「エラーが発生しました。」 「オブジェクトを保存できませんでした: Failed to execute INSERT INTO mt_template (template_blog_id, template_build_dynamic, template_build_interval, template_build_type, template_created_by, template_created_on, template_identifier, template_linked_file, template_linked_file_mtime, template_linked_file_size, template_modified_by, template_modified_on, template_name, template_outfile, template_rebuild_me, template_text, template_type, template_current_revision) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) with blog_id, build_dynamic, build_interval, build_type, created_by, created_on, identifier, linked_file, linked_file_mtime, linked_file_size, modified_by, modified_on, name, outfile, rebuild_me, text, type, current_revision: DBD::mysql::st execute failed: Incorrect integer value: '' for column 'template_current_revision'」
どうやらMT的には既知の不具合の模様。MySQLの my.ini の sql-mode の値から "STRICT_TRANS_TABLES" をはずすと保存できるようになった。
ヒントはこちらから。 http://www.zelazny.mydns.jp/cgi-bin/MT/mt-tb.cgi/2165
RC1になった5.1で直るのかなー。