concrete5のアップグレード方法について
現在XserverのX10のプランで利用しています。
phpのバージョンは5.1.6です。
concrete5は5.3.2を利用しています。
concrete5のアップグレードを行おうとまず、phpのバージョンを5.1.6から5.3.3に切り替えたところ、エラー文が表示されます。
Warning: date() [function.date]: 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 /(サーバの階層)/public_html/concrete5/concrete/libraries/cache/default.php on line 91
の同じ文が何回か表示
Warning: date() [function.date]: 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 /(サーバの階層)/public_html/concrete5/concrete/helpers/date.php on line 39
Warning: strtotime() [function.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 /(サーバの階層)/public_html/concrete5/concrete/models/permissions.php on line 517
line 91のエラー文が何回か表示
Warning: Cannot modify header information - headers already sent by (output started at /home/kingdom1014/web-sites.jp/public_html/concrete5/concrete/libraries/cache/default.php:91) in /(サーバの階層)/public_html/concrete5/concrete/libraries/view.php on line 725
line 91のエラー文が1回表示
上記のような感じでエラー文が表示され、サイトの内容が表示されます。
phpが読めないのですみませんが、対処方法を教えていただけますと助かります。
またアップグレードはphpのバージョンを上げる前にconcrete5のアップグレードから行ったほうが良いのでしょうか?
よろしくお願いします
build
Re: concrete5のアップグレード方法について
エラーメッセージが言うには「date.timezoneを設定するかdate_default_timezone_set()関数を使え」ということですね。
というわけで、date.timezoneを.htaccessから設定してしまうのはいかがでしょうか。concrete5ルートの.htaccess(なければ新規作成してください)に
の1行を追加して保存してみてください。
ただ、使用条件のページには
と書いてあります。要するに、concrete5.3.2はPHP5.3.3には対応しないということですね(concrete5とPHPのバージョン番号が近いのでややこしい…)。その旨を理解された上で運用されるか、concrete5をバージョンアップする必要があると考えられます。concrete5とPHPのバージョンが適合していれば、.htaccessの設定はしなくても大丈夫ではないかと思います。
concrete5のバージョンと要求されるPHPバージョンの兼ね合いを考えると、「concrete5のアップグレード→PHPのアップグレード」のほうが無難なのかもしれません。逆だからできないということはないと思いますが。
もし不明な点があれば気軽に返信してくださいね。100%回答できる自信はありませんが。