WordPress.org

Ready to get started?Download WordPress

Forums

wordpress stats not working (26 posts)

  1. benbt-japan
    Member
    Posted 4 years ago #

    I have had wordpress stats plugin installed on a blog on my site ( http://www.language-global.com/learn/japanese ) for over a year but it has never recorded a single visit, although my host's cpanel shows quite a number of visitors (though how accurately I cannot say). I even registered a new username for the blog with support at wordpress.com to se if that would kick-start the thing but nothing.

    The plugin works fine on all my other blogs.

  2. jeffreyarchibald
    Member
    Posted 4 years ago #

    Make sure this code is in your footer.
    <?php wp_footer(); ?>

  3. kstadden
    Member
    Posted 4 years ago #

    That was it! I just added <?php wp_footer(); ?> to my footers, and it works. I was knocking my head against the wall, the floor, the desk... is this clearly stated in the setup instructions? If so, I really need to get my prescription checked.

  4. dennis pyritz
    Member
    Posted 4 years ago #

    I am having the same issue. My Visit Counter widget indicates 23 visits. WP Stats O. Does the above code go in the Footer.php of the themes file? Thanks in advance.

  5. superalzy
    Member
    Posted 4 years ago #

    I'm having this same problem. I plugged in that bit of code in the theme footer.php but the plugin still doesn't work. It doesn't register hits & when I mouse over the grid it says "undefined."

  6. dennis pyritz
    Member
    Posted 4 years ago #

    Still having the same issue. I deleted, then reloaded the plugin. I used my API key and added this second blog to the key. I put the above code into my "footer.php" just before the "</body>" line. Stats is still showing no visits even though the visit counter widget is now up to 64. Clicking on "Plug-ins" shows a message that says the program is "configured and working."
    Any ideas on what is wrong? and once it is working will the plugin remember and list past visits. The site has only been active for four days.

  7. dennis pyritz
    Member
    Posted 4 years ago #

    I installed the ShortStats plugin and it works fine as does my free visit counter widget. I use WordPress Stats on my other blog (with a different theme) and it has always worked fine. I am still not sure if I put that little code in the right place. I couldn't find the code anywhere in my older theme that is working

  8. EEDS
    Member
    Posted 4 years ago #

    Thanks a lot jeffreyarchibald, i've just add the php line <?php wp_footer(); ?> in my footer and... my stats works !!
    I was not far away from knocking my head on my desk too !
    Good work !

  9. photodivebar
    Member
    Posted 4 years ago #

    Just installed yesterday. Stats will not update and mouse over says "undefined." Footer code was always in its right place. Any ideas?

    I'm running a self-hosted blog using an API key from a registered wordpress.com site.

  10. jummy
    Member
    Posted 4 years ago #

    I too inserted the code in my footer.php file but no matter where in that file I insert it, I get the following error:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'PostRating::VisitorCredits' was given in /mnt/w0708/d19/s06/b028cdb5/www/goodnaijagirl.com/wp-includes/plugin.php on line 339

  11. volitionstudios
    Member
    Posted 4 years ago #

    Awesome! Just what I neeeded.

    <?php wp_footer(); ?>

    inserted just before the </body> </html> tags in the footer.php file.

    I have 3 other blogs. and all have had their stats working correctly except one. Couldn't figure out why one of them wasn't working for the life of me. Reregistering new WordPress.com accounts for new API keys was definitely not the answer.

    If you're using different themes for different sites, I think some theme developers are forgetting to put this code in the footer.

    Nonetheless, thank you, jeffreyarchibald!

  12. Mickyfin
    Member
    Posted 4 years ago #

    Same problem for me, and i have <?php wp_footer(); ?> in place correctly.

    Pulling my hair out here.

  13. tannedchick
    Member
    Posted 4 years ago #

    mine stopped working on monday after noon ish, not changed anything?

  14. emsltd
    Member
    Posted 4 years ago #

    Mine was working fine and then just stopped, I deleted the package and then installed again but still no luck .... what a pain

  15. emsltd
    Member
    Posted 4 years ago #

    Update to my earlier post ...

    Have got it working now, couple of points to take into account.

    1) If your developer makes updates on your behalf makes sure he/she is aware of the required coding <?php wp_footer(); ?> mine updated the footer.php and must of accidentally deleted it.

    2) I then tried to add the code myself but added it to the wrong theme ... Make sure your updating the correct theme footer.php file.

    Hope this helps

  16. AYORO
    Member
    Posted 4 years ago #

    Hi there,
    Could somebody please tell me where I find the footer.php file?
    thanks!

  17. It's in your theme files. Go to Appearance/Editor in your admin panel.

  18. richiedude
    Member
    Posted 4 years ago #

    stats have been working great for me for over a year but suddenly stopped sometime early morning EST for me.

    i have proper wp_footer call in my themes - all my blogs suddenly stopped compiling stats.

    any help here?

  19. cimddwc
    Member
    Posted 4 years ago #

    @richiedude:
    Got no help, sorry, but you're not alone: WP.com Stats stopped counting on both my blogs sometime early this morning (European time). (And no, I didn't change anything then.)

  20. drakhen99
    Member
    Posted 4 years ago #

    Mine is stuck at 6 today, so it happened sometime early morning EST for me.

    -John

  21. jfrenaye
    Member
    Posted 4 years ago #

    Same situation here. I have Stat Ppress Reloaded as well, so I am still able to pull numbers, but I really rely on and like the WP-Stats. I hope it is a temporary glitch

  22. fajitapot
    Member
    Posted 4 years ago #

    Same problem here.

  23. Samuel B
    moderator
    Posted 4 years ago #

    be patient - the server is probably having a glitch and will update soon

  24. jfrenaye
    Member
    Posted 4 years ago #

    FYI, it is picking up again. Will have to compare to see if the numbers are lost or not

  25. CRFCEO
    Member
    Posted 4 years ago #

    same here....good its not me...

  26. cimddwc
    Member
    Posted 4 years ago #

    The numbers seem to have almost(?) caught up by now, so I guess nothing was lost, or not much – thanks for that. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags