WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-stats (3 posts)

  1. struppi
    Member
    Posted 4 years ago #

    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.

  2. struppi
    Member
    Posted 4 years ago #

    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.

  3. struppi
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic