I had the same problem as those reporting the API Key parsing error and found a solution.
Login to your admin dashboard and go to the plugins tab.
Next to WordPress.com Stats, click edit.
Find this:
$stats_wpcom_api_key = '';
Replace with this:
$stats_wpcom_api_key = 'API Key from WordPress.com';
Then activate the plugin if you haven’t already.