名古屋のウエブ制作会社「みつばシステム」、社長の無茶ぶりに全社員が泣いた。

草々なる日々

未分類

さくらのレンタルサーバーで【抹茶】が動かなくなった。

投稿日:


見積や請求書の管理に抹茶を使っているのですが、動かなくなっていることに気づきました!!

真っ白な画面だったので、とりあえず[/config/core.php]の「」

	Configure::write('debug', 0);

	Configure::write('debug', 2);

に変更、すると出力されたエラーが、

===========================================
Warning (2): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. [CORE/cake/libs/cache.php, line 597]
===========================================

 

??? タイムゾーンの設定なんて触ったつもりもないのですが ???

 

結局、EC-CUBEをインストールしたときにwww直下にphp.iniを追加したのが原因でした、検証をやっていないので断定はできませんが、さくらのデフォルトの設定をphp.iniで上書きしてしまっていたのかと、特にタイムゾーンの表記はしていなかったのですが、

date.timezone = "Asia/Tokyo"

の1行を加えることで解決しました。

-未分類

Copyright© 草々なる日々 , 2024 AllRights Reserved Powered by AFFINGER4.