ADODB_Exception: oci8 error: [904: ORA-00904: "author": invalid identifier] in EXECUTE("select * from (select * from mt_touch WHERE 1 = 1
and touch_blog_id = 0
and touch_object_type ="author"
order by
touch_modified_on desc) where rownum <= :adodb_offset")
https://github.com/movabletype/movabletype/blob/mt8.0.4/php/lib/mtdb.base.php#L3990
SQLのwhere句で
touch_object_type ="author"
が指定されており、Oracleでは文字列の引用符としてダブルクォーテーションが許可されていないため。手順
Oracle環境を用意する。
テンプレートモジュールを作成
「モジュールのキャッシュ」の設定を「作成または更新後に無効にする」とし、ユーザーを選択する。
PHPErrorLogFilePathを指定する。
テンプレートを作成し、MTIncludeタグで2のモジュールをインクルードする。
(期待する動作)ログに下記のようなSQLエラーが記録されない。
ADODB_Exception: oci8 error: [904: ORA-00904: "author": invalid identifier] in EXECUTE("select * from (select * from mt_touch WHERE 1 = 1 and touch_blog_id = 0 and touch_object_type ="author" order by touch_modified_on desc) where rownum <= :adodb_offset")