I have a similar problem. Please could someone help us to solve it.
I have the same problem. When I enter the API code (which works fine with aksimet), the plugin says
“Error from last API Key attempt:
parse error. not well formed”
I’m using WordPress 2.3.1 and WordPress.com Stats 1.1.1
i also have the same problem. the api key doesnt work
I have a similar problem, the api key works fine with akismet but not with “Stats” 🙁
I confirm the same problem!
Probably a WordPress server error?
Riccardo
i have the same problem, are any solutions available?
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.
@mccarroll21
I tried your solution but it doesnt work. I always get this error message:
Error from last API Key attempt:
Bad site URL (hostname invalid or unsupported)
Thanks, McCarroll21. This works for me.
To make this more clear for everyone:
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 = '1a2b3c4d'; // replace this with YOUR api code!
Then save file change.
In spite of clarification, this hack doesn’t do it for me. I still get a message saying I’m not a member of this blog bla, bla… …get your API key here bla, bla…
OK, after some investigation, I found you need to be logged in to your wordpress account for this plugin to work. If your accessing it from another computer where someone is logged in to another wordpress account, you get an error message like I described above.
The thing is, my wife is also running a WordPress blog and she was logged in to her wordpress account on the computer. It took me some time to figure out this. After logging her out and logging myself in, the stat plugin seems to work.
It’s a bit awkward though, Akismet doesn’t stop working just because you log out from your wordpress account or because someone else is logged in to his/her wordpress account on the computer, so I don’t see why this has to be the case with the stats plugin.
/Mats D