※CakePHP2.4.6を使用
migrationを実行しようとし、以下のコマンドを実行した。
$ Console/cake Migrations.migration generate
そしたら次のようなエラーが。
PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /Users/araky/git/test01/Vendor/cakephp/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /Users/araky/git/test01/Vendor/cakephp/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /Users/araky/git/test01/Vendor/cakephp/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /Users/araky/git/test01/Vendor/cakephp/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
Cake Migration Shell
---------------------------------------------------------------
Do you want generate a dump from current database? (y/n)
[y] >
以下のサイトの通りに対処で消えた。
CakePHPのインストールでエラーを消していく
他のサイトで、php.iniの設定をいじるのがあったけど直らなかった。
また、core.phpではなく、bootstrap.phpに同じ設定を入れてみたが、エラーは消えなかった。
0 件のコメント:
コメントを投稿