再起動したらなおった
PHPのcURLでSSLリクエストが失敗するようになってた
Bash、アップデートしたよね
先日Bashの重大な脆弱性、Shellshock(Bashshock)があったのは皆さんご存知ですよね?慌ててアップデート…したよね?
そんなこんなでアップデートしたわけだけれどもあれから数日たった今日、ふとWordpressのダッシュボードを眺めてみるとウィジェットが一部表示されていない。
google-analytics-dashboard-for-wpってプラグインのグラフが表示されていなかった。
丁度プラグイン更新直後だったのでそれも疑ってみたけど、両バージョンで同じ問題が発生していた。
バンドル証明書も正常。
Lasterror
こんなエラーが出ていた。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Last Error: 2014-09-30 05:02:05: exception 'Google_IO_Exception' with message 'Problem with the SSL CA cert (path? access rights?)' in (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Curl.php:81 Stack trace: #0 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Abstract.php(122): Google_IO_Curl->executeRequest(Object(Google_Http_Request)) #1 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Auth/OAuth2.php(309): Google_IO_Abstract->makeRequest(Object(Google_Http_Request)) #2 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Auth/OAuth2.php(254): Google_Auth_OAuth2->refreshTokenRequest(Array) #3 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Client.php(364): Google_Auth_OAuth2->refreshToken('...') #4 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(150): Google_Client->refreshToken('...') #5 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(55): GADASH_GAPI->ga_dash_refresh_token() #6 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(1095): GADASH_GAPI->__construct() #7 (WP-PATH)/wp-content/plugins/google-analytics-dashboard-for-wp/admin/ga_dash_settings.php(717): include_once('...') #8 [internal function]: GADASH_Settings::general_settings('') #9 (WP-PATH)/wp-includes/plugin.php(505): call_user_func_array(Array, Array) #10 (WP-PATH)/wp-admin/admin.php(212): do_action('toplevel_page_g...') #11 {main} |
公式のサポート見ても「サーバーの設定変更が原因の可能性がある、サポートに聞いてみろ」みたいなのしかなくてしばらく困ってた。
試行錯誤したけどなにも解決に至らなかった。
調べ方を変えてみる
調べているとStack OverflowにこんなQAがあった。
Bashを更新したのが原因かもしれないからApacheを再起動してみろ、とのこと。
したがってphp-fpmと、念の為nginxも再起動した。
1 2 3 |
# service nginx restart # service php-fpm restart |
これにより無事プラグインが復活した…
ちなみにWordpressニュースウィジェットも「RSS エラー: WP HTTP Error: Problem with the SSL CA cert (path? access rights?)」が出ていた。
お疲れ…