• Resolved gregclow

    (@gregclow)


    This past weekend, I migrated one of my WordPress.com blogs to a fully hosted install on Dreamhost. I like the info provided by WordPress.com Stats, and have it had it running successfully as a plug-in on another Dreamhost-hosted blog for some time now, so I installed it on my newly moved blog. However, after capturing 4 hits to my blog on Saturday, it stopped working, and I can’t figure out why.

    Here is the full scenario:

    – The old version of the blog was at canadianbeernews.wordpress.com, although I also had canadianbeernews.com registered as a domain, and had that set as the Primary Domain in my wp.com dashboard.

    – On Saturday, I changed the nameservers for canadianbeernews.com from wordpress.com to dreamhost.com via the Automattic domain control panel, and set up hosting on Dreamhost, along with an install of WordPress and several plug-ins.

    – I exported everything from canadianbeernews.wordpress.com and imported it into the new canadianbeernews.com, but I also kept the old blog up, with the Primary Domain still set to canadianbeernews.com. This means that if anyone happens to hit a page on canadianbeernews.wordpress.com, it will redirect to the same page on the new canadianbeernews.com (this works, I’ve tried it).

    – The stats at canadianbeernews.wordpress.com have dropped off to 0 as expected, since everything is being redirected to canadianbeernews.com. And I know that people are hitting the new blog as there have been some comments posted, but that stats there are sitting at 0 as well.

    – I’m running WordPress 2.9.2 and WordPress.com Stats 1.6.3. The same set-up works fine at tasteto.com, my other WordPress blog on Dreamhost, although that one was never hosted at WordPress.com

    My guess is that there’s some sort of conflict going on between the WordPress.com and Dreamhost versions of the blog, but I really can’t figure out exactly what.

    Anyone have any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gregclow

    (@gregclow)

    I found the problem: I’d commented out some code in my footer.php, including <?php wp_footer(); ?>, which apparently needs to be there for the Stats to work.

    Most plugins rely on wp_head(), wp_footer(). So it’s wise to check whether your theme have it or not to avoid future problem and unnecessary issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress.com Stats] Stats not working on new site’ is closed to new replies.