Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Everytime WordPress stats updates, I need to provide the API key. Is there some way to automate this?

share|improve this question
    
This plugin? wordpress.org/extend/plugins/stats –  artlung Aug 12 '10 at 3:54
    
Yup..That's the one. –  thunderror Aug 12 '10 at 5:38
1  
I've updated the plugin a few times on numerous blogs and never had to re-enter the API Key. Do you have a similar issue with the Askimet plugin? –  Adam Dempsey Aug 12 '10 at 14:38
    
What other plug-ins are you running on that site? There might be some interference by another system ... I've never had this problem on any site using WP Stats ... –  EAMann Aug 12 '10 at 20:56
    
@Adam, Now that I think of it, Akismet never gave me any problems. @EAMann Well, its a huge list, but I doubt that could be the issue. –  thunderror Aug 16 '10 at 6:20
add comment

1 Answer

up vote 4 down vote accepted

This is why:

http://plugins.trac.wordpress.org/browser/stats/tags/1.7.2/stats.php#L685

The deactivation hook deletes your database information. I'm guessing you're manually deactivating the plugin, updating, and then re-activating? If so, that runs the deactivation hook. Fortunately, that's not from the latest version. This is:

http://plugins.trac.wordpress.org/browser/stats/tags/1.7.3/stats.php#L686

So that shouldn't happen anymore.

By the way, you shouldn't think that this means you were doing anything wrong. They shouldn't be deleting information on deactivation, only on uninstall. Kind of strange that they were doing it at all...

share|improve this answer
    
Great! I always wondered why only the stats plugin was behaving weird. –  thunderror Aug 18 '10 at 8:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.