StatTraq Bug

Posted by Andrew on July 27th, 2006
Visited 2735 times, 1 so far today

For anyone using Randy Peterman’s StatTraq, there’s a small bug in one of the files that might cause an error message to appear at the footer of your Wordpress blog.

Open up stattraq.php in a text editor and scroll down to line 90 (approximately).

Change:

else if($strpos($ua, 'MSIE 2') !== false)

to

else if(strpos($ua, 'MSIE 2') !== false)

Save the file and upload to your server.

Bookmark at:
StumbleUpon | Digg | Del.icio.us | Dzone | Newsvine | Spurl | Simpy | Furl | Reddit | Yahoo! MyWeb

4 Comments

  • Lefebvre said:

    I recieved this error when I use IE7 to view my site.

    Just around the line 90, add a line to identify the IE 7 and this error go away.

  • Andrew said:

    Thanks for the tip Lefebvre. :) Sadly Randy Peterman had stopped updating Stattraq. It’s a shame coz it’s the best statistics plugin for Wordpress out there. Hopefully someone will pick it up and develop it further.

  • Laura said:

    how did you add this line arround. i tried it but the error still stays :(

    thx!

  • Andrew said:

    Hi Laura, which version of stattraq are you using? I also checked the previous versions and they have the same bug. Open the file in a text editor like Notepad and search for the line to be changed and simply replace it with the other one.


Post a Comment


Edit N Place Plugin for Wordpress | Home | I [heart] Wordpress