Support » Plugins » wp-stats

  • Resolved struppi

    (@struppi)


    I use wp-stats but I guess this won’t work on most WP Blogs, because if you use the charset utf-8 on your site (most recommended) then I 6 and 7 throw a Javascript Error (just look at the Error log), so they might won’t count right.

    The reason is, they have problems if the charset of the site is an other than the JS file have.

    This is annonying for me, I have a Blog about JS and it looks like my articles are the reason of this error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK, I found now the solution.

    You have to fix your stats.php in the plugin directory. There’s a line which include the JS source from wordpress, somethin like: <script src=”…..

    actually it’s at line 103 you have to change this line to:
    <script charset=”ISO-8859-1″ src=”http://stats.wordpress.com/e-<?php echo gmdate(‘YW’); ?>.js” type=”text/javascript”></script>

    Now the Plugin won’t run in this IE Bug anymore.

    hmm, there’s another thread (from me, sorry) about the same topic, I would like to post the solution there too, but it’s closed? Why that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-stats’ is closed to new replies.