前回の記事に引続き、WordPress 4.7 にアップデート前に現在の不安定な部分を解決したという記事です。
問題点
- WordPress のテーマのカスタマイズを選択すると、500 エラーが表示される。
- 通常のブログの閲覧、投稿においてはエラーは発生していない。
- サーバーのエラーログには下記のようなログが記録されている。
2016/12/27 22:31:16 [error] 10890#10890: *799703 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: '{
"error" : "invalid_grant"
}' in /…/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288
Stack trace:
#0 /…/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)
#1 /…/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken('1/AHQgt42tqijcP...')
#2 /…/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))
#3 /…/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Google_ServiceResource->__call('list', Array)
#4 /…/" while reading response header from upstream, client: …, server: blog.oyasu.info, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "blog.oyasu.info", referrer: "https://blog.oyasu.info/wp-admin/"
“Google Analyticator プラグインで WP テーマのカスタマイズが 500 エラーになる場合の対応(OAuth token)” の続きを読む