Title: API Key not working with Stats plugin!!
Last modified: August 19, 2016

---

# API Key not working with Stats plugin!!

 *  Resolved [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * (@funkyrobot)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/)
 * Hi all,
 * For some reason my API key isn’t working with my stats plugin. The key works 
   for my Askimet plugin, but not the stats. I just upgraded my stats plugin to 
   the newest version, and I was hoping that would do it, but no luck.
 * I am getting this error message on my WordPress dashboard –
 * `Fatal error: Call to undefined function did_action() in /home/.wakanda/funkyrobot/
   random-pattern.com/random/wp-content/plugins/stats/stats.php on line 327`
 * Obviously something is going on, and my “decent” web skills aren’t good enough
   to figure it out… Can someone please shed some light on this for me?!?!
 * Thanks!!

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [ivovic](https://wordpress.org/support/users/ivovic/)
 * (@ivovic)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769176)
 * I think the stats server might be having some downtime – I just disabled my stats
   plugin because of connection timeouts to stats.wordpress.com
 *  Thread Starter [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * (@funkyrobot)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769206)
 * Thanks for the suggestion – although – I think my problem may be a little different…
   This has been happening for awhile now. 🙁
 * Thanks again!
 * Any other ideas??
 *  [ivovic](https://wordpress.org/support/users/ivovic/)
 * (@ivovic)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769209)
 * nope… not me.
 * things returned back to normal very quickly as far as I was concerned. I have
   no idea why your API key would work for one but not the other.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769216)
 * > _Fatal error: Call to undefined function…_
 * This invariably means that you messed up an upgrade or are otherwise missing 
   files from your installation of WordPress.
 * In this case, you are missing the latest version of the wp-includes/plugin.php
   file. And if you’re missing one file, you may be missing others as well.
 * Reupload ALL the WordPress files to your site, and make sure that you get all
   of them this time around.
 *  Thread Starter [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * (@funkyrobot)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769265)
 * Well, with my limited PHP knowledge, I can see it is calling a function (did_action)
   in the stats.php file that is not defined. I re-uploaded with a clean version
   of the stats plugin this morning when I upgraded from an earlier version.
 * The only thing I am guessing at this point is that it is not compatible with 
   my old version of WordPress (I am running 2.0.4 right now, I believe its at 2.5.
   something now?).
 * So tonight when I get home from work I am going to try upgrading my entire WordPress
   and see how that works. I would have done it sooner but it’s going to take some
   time to re-do my theme.
 * Unless someone else has a better idea, I am open to all suggestions at this point.
   I appreciate all your ideas so far!!
 * Thanks!!!
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769282)
 * > _The only thing I am guessing at this point is that it is not compatible with
   > my old version of WordPress (I am running 2.0.4 right now, I believe its at
   > 2.5.something now?)._
 * There’s your problem. Yes, the latest version of the stats plugin is not compatible
   with that old of a version. Upgrade.
 *  Thread Starter [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * (@funkyrobot)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769291)
 * Excellent, thank you kindly!!
 * I had a hunch that’s what it was, just didn’t have much time before work to re-
   do my whole theme. Hopefully that goes smoothly this evening!! Haha!!
 * Thanks again…
 *  Thread Starter [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * (@funkyrobot)
 * [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769379)
 * Bingo! Problem solved. A quick little update got everything on track.
 * Thank to all who replied – it is much appreciated!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘API Key not working with Stats plugin!!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [funkyrobot](https://wordpress.org/support/users/funkyrobot/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/api-key-not-working-with-stats-plugin/#post-769379)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
