wordpress “Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() ”
 2012.10.03

とあるホスティングサーバで運用していたお客様の wordpress が、ホスティング運営会社の作業でphpバージョンアップによってエラーが出るようになった。 wordpress管理画面の[設定]-[一般]を開くと以下のようなエラーが出て、管理画面が途中で尻切れになって使えない状態です。 [sourcecode light=”2″ language=”text”] Warning: timezone_open() [function.timezone-open]: Unknown or bad timezone (Asia/Hebron) in /xxxx/xxxxx/xxxx/htdocs/wp-includes/functions.php on line 3176 Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [<a href=’datetimezone.–construct’>datetimezone.–construct</a>]: Unknown or bad timezone (Asia/Hebron)’ in /xxxx/xxxxx/xxxx/htdocs/wp-admin/options-general.php:172 Stack trace: #0 /xxxx/xxxxx/xxxx/htdocs/wp-admin/options-general.php(172): DateTimeZone->__construct(‘Asia/Hebron’) #1 {main} thrown in /xxxx/xxxxx/xxxx/htdocs/wp-admin/options-general.php on line 172 [/sourcecode] timezoneの設定が「Asia/Hebron」なんてのになっておりエラーになっている様子。 phpmyadmin にログインし wp_optionsテーブル の timezone_string の値を 「Asia/Tokyo」に変更したら直りました。
カテゴリー:wordpress