I have done all the steps correctly for installing wordpress stats on my personally hosted blog. The plug-in is showing up on my blog dashboard - I active it then it asks for my API key. I enter that in and the next screen indentifies my account correctly as the owner of that API then that same screen says:
Add blog to WordPress.com account
This blog will be added to your WordPress.com account. You will be able to allow other WordPress.com users to see your stats if you like.
<input type="submit" name="add" value="
Fatal error: Call to undefined function: esc_attr() in /home/lifetime/public_html/clientinfo/wp-content/plugins/stats/stats.php on line 447
I have tried de-activating and re-activating with the same error. I have tried deleted and re-install with same error.