I recently moved all my blog post to this new domain. Moving whole blog across the wordpress is an easy task (read here to know more), but some times things get weird. When I moved my blog everything was working awesome and this site was up, but then i realized that one of my favorite and essential plugin wordpress.com stats wasnt working. I thought it would take some time as the blog just got hit, but around 24 hours passed and nothing seem to be clicked. I was then worried if the old users are being redirected properly or no, but the statpress was logging a healthy traffic. Here are the steps i followed to troubleshoot this :
1) I deactivated the plugin and removed the folder completely, downloaded the fresh zip file and installed once again. But still the problem was same.
2) I then try go through the documentation of plugin and FAQs. I read one important point there and it said you need to include wp_footer() at the end of your theme files for this plugin to work properly.
Wow that was a pretty cool thing, as soon as I put the following line in my theme’s footer.php , the stats were there.Actually I had designed the theme and I din care to include the wp_footer function and hence the problem
<?php wp_footer(); ?>
Hope this helps someone like me
Cheers!!
Realin !



Worked like a charm! Thanks!
Hiya Collin,
Glad that worked for you
Helped me, and I’m somewhat like you, so mission accomplished.
Much thanks.
I have this code in my theme’s footer
does this do the job as well or do i have to use exactly? the stats plugin doesn’t work
?php
wp_footer();
echo get_option(‘jnews_footer’) . “\n”;
?
how to post wp code in comment? hope this works
do i have to use the exact code as you posted in this blogpost or the above one also works?
I think your code should work, since you are calling wp_footer(), and that is where stats plugin is hooked to. So should work..
The problem is with your installation of stat.php file. Usually what people do is just unzip the whole folder into plugin directory. That way you will have a folder and inside it, stat.php file. All you need is read “read me” file
It is clearly stated that you should put the stat.php file in plugin folder and not inside any directory! Just try to put the stat.php file under plugin directory and I guarantee suicidalsam’s plugin will smoothly
Can be another tweak u can try. But nothing like that on my blogs. I have all the files inside the folder.
To be sure, just do not install it manually. Let the wordpress plugin auto-installation do it for you.
ya thats how i installed the plugin initially. I think the problem was, i removed the footer links from my theme including the wp_footer in some of the theme files. now the plugin works fine
thank you sachin for your help.
Glad that worked !!