重大なエラーを引き起こしたのでプラグインの有効化はできませんでした。
とメッセージが表示され、google-analytics-visits を有効化することができません。 内容は
Parse error: syntax error, unexpected ‘{‘ in server path/wp-content/plugins/google-analytics-visits/google-analytics-visits.php on line 224
件の php は次のとおり。
update_option('GoogleAnalyticsVisits_displayTotalPageviews', $_POST['GoogleAnalyticsVisits_displayTotalPageviews']);
update_option('GoogleAnalyticsVisits_displayPoweredBy', $_POST['GoogleAnalyticsVisits_displayPoweredBy']);
try {
update_option('GoogleAnalyticsVisits_cache', GoogleAnalyticsVisits_widget_output());
}
catch(Exception $e) {
if(stristr($e, "Invalid value for ids parameter"))
$output = "<b>Google Analytics Vists Alert:</b> please check/recheck/enter your Google Analytics Profile ID.";
elseif(stristr($e, "Failed to request report data"))
update_option('GoogleAnalyticsVisits_cache', "<b>Google Analytics Vists Alert:</b> please check/recheck/enter your Google Analytics Profile ID.");
elseif(stristr($e, "Failed to authenticate user"))
update_option('GoogleAnalyticsVisits_cache', "<b>Google Analytics Vists Alert:</b> please check/recheck/enter your Google Analytics account details (username and password).");
else
update_option('GoogleAnalyticsVisits_cache', "<b>Google Analytics Vists Alert:</b> unknown error please contact me at <a href=¥"http://peplamb.com/google-analytics-visits/#respond¥">plugin page</a> if you find this error/message.");
}
//header("Location:".GoogleAnalyticsVisits_currPageURL());
}
ここで言う 5 行目がメッセージの 224 に当たるのだが、一体どのようにすれば正解なのかがわからない。