作成したサイトをサーバーにリリースしたところ、いきなり動かない。
原因と対策を備忘録的に。
①致命的なエラー
Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in xxxxxxxxxxxxxxxxxxxxxxxxxx/mac/app/webroot/index.php on line 77
こんなん出た。CakePHPの大事なところが見えませんよ。
APP/webroot/index.php の CAKE_CORE_INCLUDE_PATH を調べてね。とのこと。
原因
Windowsでbakeしたためこんなんなってた。
define('CAKE_CORE_INCLUDE_PATH', DS . 'home'. DS .'users'. DS .'x'. DS .'xxxxxxxxxxxxxx'. DS .'web'. DS .'mac' );
対策 こうやって解決!!
define('CAKE_CORE_INCLUDE_PATH', ROOT);
②Sqlite3が使えない!(no log)
原因
デバッグ環境にはあるDBOファイルを格納し忘れていた。
対策 こうやって解決!!
mac\cake\libs\model\datasources\dbo\dbo_sqlite3.phpを格納。
これでとりあえず動き始めたヾ(@^▽^@)ノ