WP-ShortStat
A few days ago, I decided to give Shaun Inman’s statistics package, ShortStat, a try. A friend of mine had been using it and I really liked the summary type interface. Most stat programs are a compilation of stats for an entire month, but I was more concerned with just getting the most recent amount of data — including cross month information.
So I set forth to install ShortStat. Seemed pretty easy. Edit a config, upload, run install, add an include statement and go! Except I ran intro trouble at the “insert include” statment step.
It seems that, because of the way the ShortStat is set up, the database connection it uses and the one WordPress use tend to get into a hissy fit and then neither program works right. I did eventually find a place to stick the include statement that would work. The base index.php, if you want to know. However, after having gone through that I thought, “Gosh, this would make a great plugin…”
Enter WP-ShortStat
It took a lot of code repurposing to get this stats package to fit into a plugin (including rewriting every database query to use the WordPress database interface) but at the finish line was a singularily awesome plugin.
In short (pun very intended), you just upload-and-activate this plugin and it will automatically initialize itself and start tracking. Bam! Want to see your stats, just jump right to your Dashboard and check out the new submenu, “ShortStat.”
Could that be any easier?

Nope.
Update, Version 1.2: It seems the Admin section detection was faulty on some installs. While I don’t know the specific cause, I’ve reverted the plugin to doing a brute force detection: if the REQUEST_URI contains “wp-admin/” it won’t be counted towards your stats.
I would just like to say: thanks for the great plug-in. It works marvellously on my site!
Great plugin! I’d definitely recommend it. Just one problem, tho’. I also use Alex King’s Popularity Contest plugin, to measure the popularity of my posts. Your plugin seems to override that one, since they both show up in the Dashboard. When I click on the link for Popuarity Contest in the dashboard, I still get WP-shortcut. If you fix that, let me know, and I’ll definitely use it.
Nice, Jeff. I’ve now got it installed and running — well done. Have you thought about excluding admin accesses to WP from the stats? I know someone did a write-up a while ago about tweaking ShortStat to ignore certain pages … just can’t find it at the moment. Well, regardless, good work!
Hi!
I just installed this, and so far it looks very simple and easy. I have to say, I am impressed. You plugin writers are so bloody clever it makes me green with envy.
Thank you!
Got the following error when activating the plugin:
Fatal error: Cannot redeclare maybe_add_column() (previously declared in /home/orlando/public_html/garfos/wp-content/plugins/subscribe-to-comments.php:252) in /home/orlando/public_html/garfos/wp-admin/upgrade-functions.php on line 262
Hi, friend hice script.
But at every F5 Refresh on nay page of my site. The stats mak 2 or 4 reloads
example: 1refresh of nay page = 12 hits?
Somthing wormg in stats
Forget about my previous comment. I just updated the Scriptygodess plugin and everythin is fine now.
Hey, this is a pretty nifty plugin! Thanks for making it. ^_^
Awesome! An easy way to install Shortstat on a WordPress-powered site whilst letting both them apps happily coexist. An excellent plugin, thank you.
Oh, but you don’t need to do
require_once(ABSPATH . '/wp-admin/upgrade-functions.php');sinceABSPATHalready includes a trailing slash.Why not use
require_once(ABSPATH . 'wp-admin/upgrade-functions.php');instead? :)Thanks for creating this. One comment: change this->is_admin to this->is_admin() or else it WILL count your admin pages..
Very nice job. Can you tell me how I can exclude my own PC (IP address?) from being included?
I like the comments implementation here too.
Hmm. Sorry.. I messed up..
Indeed, a very useful and easy-to-use plugin. I’m already using it at my site.
Very good work!
very nice plugin, but i have 3 questions.
1. what happens if there are thousands of unique visitors per day? will that plugin overload the server
2. what happens with wp-cache enabled?
3. is it possible to center the stats page? for now, it’s alligned to the left and doesn’t look so good in high resolution
thanks for your work, keep it up!
Excellent work, thanks for sharing and creating the plugin.
Great plugin but it records actions happening in the wp-admin which I think is kinda weird… But anyways, Great plugin. :D
Cool plugin! Installation was a breeze. Thanks a bunch. :)
Just wanted to say thanks for the plug in. It looks great, and it was INCREDIBLY EASY to install and get working. Took me literally ten seconds. I appreciate the work you did. Thanks again!
Nice plug-in, but I seem to be having a bit of an issue. The Date says this: Since 12:00 am 1 Jan 1970
That can’t be right? Any idea what would cause that?
Terrance: That is an issue with your Wordpress install, I am betting. If you are not on 1.5.1.2 then update. The update fixes that issue.
B. Adam: The plugin *should* be ignoring admin pages. I test for an admin function and then set $this->is_admin to true so that it stops recording stats. What version of WP are you on?
Toto: If you’d like to hit that contact button at the top, I’d like to get more info about your situtation because it should *definately* not be creating 12 hits for a single reload.
Mathias: Oh, for that I just copied it from another section of code (wp-admin/upgrade.php). I assumed if it was like that in the WP core, then it would work.
Tinus: The $this->is_admin is a variable I made up, not a function. Additionally, there is no is_admin() function built into WordPress (unfortuneately).
Paradox:
1. I can’t say for certain, I don’t have the ability to load test it. However, I would hope for the best. Also, I tie the stats recording into the ’shutdown’ hook which means that it only kicks in once all data has been sent to the client.
2. I *think* that because I put it in the shutdown hook, it should still execute, but I don’t know for certain.
3. If changes to the CSS for the stats come, it probably won’t be till next version. :D
David: Shoot me an email with more info about your WP install. I need to figure out why you are getting wp-admin pages…only a few people are.
Shawn: No…uhm, not really. That date is what is called the UnixEpoch, the date/time that all systems begin calculating time from (measured out in seconds). So why it’s showing up there, not really too sure. Contact me with more info about your set up and we’ll see if we can figure it out.
To everyone else: Thanks for the feed back!
Incredible job, can’t believe how simple this was to install and how well it integrates into WP.
Cheers!
Jeff, If you already have ShortStat installed, do you need to uninstall it to use this plugin?
Hi again. There seems to be a problem with IE because the blog index page seems to be reloading infinitely. The problem does not show up in FireFox though.
*Stu:* No, while doing all the same tracking etc, this does not interfere with a normal installation — it is standalone.
*Yuga:* I can’t see that as being a problem with this plugin. There’s no reason wp-shortstat would cause the page to reload infinitely, let alone at all.
Could be conflict with other plugins I have. Strange though as it only happens with IE and not Firefox. As much as I really liked this plugin, I temporarily deactivated it until I find what’s wrong. Thanks though!
Just wanted to drop a note saying that I am one of the people whose
wp-adminpages get tracked as well. Seems likeif( $this->is_admin )doesn’t quite work. I am on the latest WP 1.5.1.2.return; // let's not track the admin pages -- no one cares.
*Mathias:* See the update to the post…let me know if v1.2 fixes the admin tracking.
Just upgraded to your “new” version. I will keep an eye on if it is tracking my admin pages…so far so good though.
Shot off an email before doing that.
Thanks again for this great script,
David
Great plugin, thanks a lot!
Jeff. I’m using 1.5.1, but I went ahead and downloaded your update and it seems to be working fine now. Thanks.
Interesting plug-in. I’m using stat-traq which is a great all around package but I do like the ease of checking a tab. Just waiting to see how the two stat counters compare numbers.
Excellent idea. I love shortstat and have been using it for ~ a year. I wouldn’t want to lose all that data…is there an import script from a current shortstat install? Thanks
*Jalenack:* Actually, there is no import script because the table formats are exactly the same. If you want, deactivate the plugin (or do this before installing) and go into something like phpMyAdmin.
Once in there, you can delete the tables wp_ss_stats and wp_ss_search (they only exists if you had activated the plugin). Now, rename the original tables for ShortStat (can’t recall the exact tables names right now) to wp_ss_stats and wp_ss_search as appropriate.
Should do the trick.
Doesn’t seem to be reporting country stats on my server =/ All visits are put under “Indeterminable”.
ahh, that’s nice. I’ve got my shortstat tables in an entirely different database, so I’ll have to export the tables and import them into wp…shouldn’t be too much trouble. So I assume this doesn’t track ip-to-country? Because shortstat uses three tables, and you only mentioned two. I don’t mind much, but maybe you could work on it for the next version.
I’m going to have some fun messing with the plugin and getting some wp statistics in there too, like total # of posts and comments etc. I’ll let you know if I come up with anything good :)
To both of the last posts: Yes! This plugin *does* track IP > Country mappings, however, I went with a solution that doesn’t involve a complicated 3rd table and 2Mb file.
The plugin queries the service http://www.hostip.info for ip > country resolution. It works by supply an ip address, and ripping the country out of response. What a typical response looks like.
This means no messy third table or 2mb file, but it also means that if for some reason it lags out, or your host has disabled the file() function, then it just fails out to “Indeterminable”.
I did see that when I took a dig, and it’s a very nice solution :) I guess my host has disabled the relevant function then.
This sounds really great and almost exaclty what I’m looking for, but problem: I tried the direct download but got this error message…
“cannot import name util”
:shrug:
I didn’t get the change to actually download v1.2 yet because of the WP plugin repository being down, but I had already made a similar change myself. (I’m using
if(strstr($_SERVER['REQUEST_URI'], '/wp-admin')))return; // let's not track the admin pages -- no one cares.
Great minds think alike, right? ;)
Or, even better — here’s an
is_admin_page()function!if(!function_exists('is_admin_page')) {function is_admin_page() {
return function_exists('check_admin_referer');
}
}
That would be
if(is_admin_page())return; // let's not track the admin pages  no one cares.
Looks ideal but the download link appears to be broken. :sad:
Great plugin, I have been looking for something to use until re_invigorate comes back online and this might replace it completely.
Hi,
Great plugin but I seem to have a conflict with this plugin: “EventCalendar”:http://blog.firetree.net/2005/05/27/eventcalandar23/
when the calender is enabled your plugin don’t count.
This is the full source of the events calender plugin: http://phpfi.com/63776
Thanks a lot
Good plugin! Thanks :D
*Mathias:* Actually, that’s the method I *was* using to do that. I was checking a different function, but it was one that was in the admin-functions.php — same as that.
This method, as reported, wasn’t always working. So I said, “screw it!” and went to the URL detection.
*All:* Yeah, the dev.wp-plugins.org appears to be down. I am sure Matt’s working on it right now, so probably expect it back up by the end of the day.
*Karl:* Is it just _not_ counting, or does some kind of error appear? Actually, you won’t see any errors because of the ’shutdown’ hook.
Hi Jeff,
Thanks for the speedy reply.
All big fat zeros and as you say no errors :)
I am pretty sure it is the plugin I mentioned but not being a PHP guy not 100% sure. I asked author but he said to check with you guys first.
Thanks
Karl
*Karl:* Ok, let’s see if we can get the plugin to issue an error then, yes?
Open the wp-shortstat.php file and goto line 583 and change:
add_action('shutdown', array(&$wpss, 'track'));to
add_action('wp_footer', array(&$wpss, 'track'));And if there *is* an error, *and* your template has a
do_action('wp_footer')in it, the error should show up. Let me know how that goes…Hi Jeff,
No error showed up.
my template uses:
?php get_footer(); ?>
thanks for your time. Any further suggestions?
Thanks
Karl
Yeah, change it to
add_action('init', array(&$wpss, 'track'));If it’s erroring, it’ll definately show up in that hook.
I like it very much Jeff! Very nice job.
Some how when i upload it to the plugin folder it does not show up on my plugins page in my wp admin panel for me to activate. help me please.
Dude you rule!
I ftp’d that file, clicked activate in the admin, and before I could even visit the stats page 3 seconds later I had logged hits from China, Ireland, and Austria. Couldn’t be simpler… and sooooooo cooooool.
Nice work and thx.
Awesome man, thanks so much for such an easy and fantastic plugin! I love this preview box at the bottom too! Argh too many talented people out there :D
This makes no sense but since I made those changes you mentioned the stats are now working :o)
Karl
This plugin is incredible… no more awstats :)
heh! no really… this little monster is one of the most helpful thing I’ve ever seen for WP.
Thanks brosky!
Hi Jeff,
I really like this plugin. I was using WP-stattraq, BASstats and now this plugin. It’s really a good one, compared to those other two. The integration with the main administrator panel in WordPress and the size of the tables in my MySQL-db are fantastic and perfectly working, both Stattraq and BAS we’re lurking MB’s. That’s a problem that doesn’t occure with this plugin! :)
Well done and thanks.
Really nice plugin.
I’m wondering if you are planning to have users tracking in shortstats.
Its just adding a field for user into the database, and from there you can get more stats – Whose online, Last login, Least/ Most active users so on.
*ZZ85:* At the time I’m not really considering adding many tracking options — I mostly just ported SS to a nice WordPress interface.
If anything, the next update will probably include a few template functions like wpss_total_hits() and wp_hits_today(). That sorta stuff.
I was just thinking, is it possible to get support for technorati searches (shown in the referrers box) so they show up in the “Search Strings” box?
I hacked together a bit of a solution for my site, which doesn’t allow the file function (i.e. no country data) – use Snoopy, the file fetcher WP uses to get RSS for the dashboard.
My hack is specific to my server – I’m sure there’s a nice way to do it, but basically I couldn’t figure out how to include the Snoopy class file (from wp-includes/). if you can figure that out, then there’ll be no problems.
Thanks for the plug-in. I think it gives me more reliable stats than my web host!
Thnx man
Nice plugin. Thanks. I can install it with a breeze..
woh! great plugin…
thanks
Great plugin. It is nice to get a snapshot of my stats without having to log into my service provider. Thanks again, and keep up the good work.
Thanks for the tip. Upgrading to the latest version of WP did the trick. Again, great plugin.
Ah ace!
I have had WP-ShortStat installed for several days now. (It a fabulous piece of coding.)
I have a naive question . . . I guess I just don’t know what is going on.
At the top of my “Repeat Referrers” list are several hard core porno sites.
I have nothing related to this area of interest on my site.
Why are they on my list?
Norm,
Yeah, that is a problem unrelated to wp-shortstat.
What you’re getting is called *Referer Spam*. Simply put, people are sending you fake referals in the hopes that you post the referal links to a public page automatically — this way they gain Page Rank. “This explains it in more detail”:http://www.internet-search-engines-faq.com/referrer-spam.shtml.
You can solve this one of two ways: “htaccess blocking”:http://www.ilovejackdaniels.com/apache/block-referrer-spam/, or the one I use, “PHP based blocking”:http://unknowngenius.com/blog/wordpress/ref-karma/.
Thanks for the info Jeff.
I started using Bad Behavior (http://www.ioerror.us/software/bad-behavior/ )recently. Maybe that will help.
Thanks again for the education Jeff.
Thanks for providing this plugin to other users like me..I’ve installed it on my WP Dashboard and it really is awesome..More power! :)
Amazingly amazing plugin! Really, it’s just the easiest statistics plugin available. Great interface too!
This is an amazing plugin, but my free web hosting service cannot handle the enormous grown of my mySQL database. I have had to unload the plugin due to this.
*Zernebock:* Yeah, that does seem to be the case. Perhaps the next version will have a method for dumping last week’s records.
Abso-frickin-lutely beautifully done. Thank you.
The concept looks great but when I install and activate none of the stat windows work. They all return “Wordpress database error” messages. Table ‘wordpress.horlicks_ss_stats’ doesn’t exist. Any ideas? A problem with the database rights?
For anyone interested in using the new ShorStat Widget with the wp-shortstat plugin, I have a write up on my site on how to rewrite the gateway file: wp-shorstat widget gateway. Hope someone finds this helpful! :)
Beautiful plugin! I’m using it on my site. However i made a change to the getResources function because it writes the links in Resources without the “www” string before the domain name, and it doesn’t work on my domain. So i changed:
<a href=\”http://”.$this->trimReferer($_SERVER['SERVER_NAME']).”$r->resource\”
in:
<a href=\”$r->resource\”
and now it works perfecty!
Maybe someone else can have the same problem…
Bye.
I did a download of the plugin and it seemed it was a newer version, but it seems that after I updated to version 1.3 everything stopped wordking… :(
I’ve drop and recreated the tables: nothing. Restored a DB-backup.
What going on, Jef? ;)
Just wanted to say that this is a great plugin! Installation was a breeze, and now I am enjoying a healthy stats addiction.
Can I use the contents of the script to build another script that uses the database resources more efficient?
What I don’t like about this script is that it adds a lot of derived fields to the database.
Nice Plugin, but it stopped working on July 18th for no apparent reason. Could you please look into this problem, others seem to have the same problem.
Thanks
Excellent plugin! Nice, simple stats overview. Exactly what I needed.
I’m wondering if it would be possible to add a report on “uniques” on just the /feed directory – might be a good way to estimate total subscribers to the RSS feeds.
I’ll try to take a look at doing that, too.
I am looking forward to trying wp-shortstats but the download seems to be scrambled. I am getting garbage every time I try it.
Is there anywhere else OI can grab it from please?
Thanks. Question: is there a way to have it ignore me? possibly by a browser cookie or something?
Thanks.
Excellent plugin – thanxalot! :) Jesper
This looks like an awesome plugin, and it would be if it wasn’t for the fact that activating the plugin doesn’t create the database tables for me. It says something about not being able to create a database statically. What do I need to put into phpMyAdmin to create the tables?
Sorry to double comment. This is the error I get:
Fatal error: Non-static method wp_shortstat::maybe_create_table() cannot be called statically in /home/.eiffel/tishi/girl-like-me.net/wp/wp-content/plugins/wp-shortstat.php on line 83
Hi,
quick note for those of you in Australia or outside of the USA who are using ShortStat and getting stats reported in times out of sync with your local TimeZone.
I’m not sure if I’ve missed something, and it’s highly likely I have, but I had to manually edit line #36 in the php script/code to make it work for localtime() in Australia, here in Sydney.
i.e.: line #36 was:
$this->tz_offset = get_settings(‘gmt_offset’);
I had to make it:
$this->tz_offset = get_settings(‘gmt_offset’)+10;
Note the +10 at the end of the get_settings et al. Now I’ll have to go read some more code – most likely this is supposed to be delt with somewhere in WP, such as the Options stuff were you tell WP what your timezone is relative to UTC, which in my case is +10 hours to get Sydney, Australia.
But it’s not working – well in the version 1.3 of WP-ShortStat that I’ve downloaded and ma running currently, but I’ll take it up with Jeff Minard and see what if anything I’m doing wrong of the plugin is doing wrong.
But though it might be of use to those of you who are + or – from UTC/GMT and can’t work out why you’re seeing stats report for wrong days.
Email me if you get stuck or just need help, I can be reached via my Blog, I’ll post a similar note to this, drop a comment and I’ll ping you via the email address you include ( which is of course hidden to the rest of the world et al ).
Cheers,
Dez
—
Dez Blanchfield
http://www.blanchfield.com.au/blog
http://CradleTechnologies.COM
Is there any chance to include Pathstat (http://jehiah.com/projects/pathstats/)?
Thanks, Sid
Hey Jim,
I am still having the bug that
wp-shortstat doesn’t show “Just Today” numbers. It does show totals since installed last May and it does show last week’s numbers by day (even including today!), but it wont just the “Just today” section.
Strangely I changed hosts and copied my DB over and then “Just Today” started working only to stop days later.
Has anyone seen this? Fixed it?
Thanks!
Nice ;)
This seems to be a very nice plugin. However, is it possible to filter out search engine bots and feed requests?
Is there a place to download the most recent version of this plugin? And who exactly owns it?
Also is there a way to purge the overall results and start fresh again?
Stats and search queries that happened 6 months ago aren’t relevant to me anymore and I’d like to delete them.
i am loving this plugin! now i can see REAL stats instead of some stupid counter!
WP-Shat Stat’s great but short of hacking the code any specific way to exclude my IP. Hate to inflate my own results :)
Hey Jeff,
I have WP-ShortStat 1.3 installed and it was working likea charm until a day ago. It just stopped counting stats. I did not install any plugins then and I have no clue as to why that has happened and have even deactivated and reactivated the plugin with no luck. Is there any way I can start afresh? i.e. Do I have to delete the a table in my db etc? Appreciate your help. Thanks!
Hi Jeff,
Sure glad I was looking for a stats plugin for a site I am working on and I ran across you!
When I tried to activate the plugin I recieved this error
Fatal error: Non-static method wp_shortstat::maybe_create_table() cannot be called statically in c:\wamp\www\ispeak\wordpress\wp-content\plugins\wp-shortstat.php on line 83.
I looked at it but it looked okay. What can I do
I installed WP-Shortstat some months ago and it worked very well. A great plug-in and (still) my first choise for statistics.
Since today my WP is very slow. It seems that WP-Shortstats slows down the system. If I deactivate WP-ShortStat, WP runs on normal speed.
I updated to 1.3, but WP is still slowed down.
I had to deactivate WP-ShortStat. :(
Do you know any solution?
Jeff, I love wp-shortstat, but in the last couple of weeks (today is Oct. 19, 2005), it’s been making my blog hang.
I isolated the problem in the determineCountry function, which scrapes info from http://www.hostip.info. That domain takes a long time to load, so no doubt it’s the culprit.
My temporary solution is just to comment out the line that defines the $cntry variable, but you may want to create a longer-term solution, as I’m sure I can’t be the only one with this problem.
Problem with the plugin. it doesn’t close the HTTP connection when requesting feeds, and is causing issues with certain feed reader programs. when I try to access a feed on my site, the full XML file is sent including the final tag, but the HTTP connection is never closed which results in a time out.
I noticed the same slowdown mentioned above with a clean install of WordPress, once I activate this plugin it takes 20-40 seconds to before it begins actually loading the page. WordPress itself says it takes only 0.25 seconds to load up. When I deactivate it speeds right back up.
I guess I’ll have to pay Inman for another Mint install, http://haveamint.com/ if you’re interested in taking a look.
On a side note one of my best friends is named Jeff Menard, odd coincidence?
Hi,
As of today there seems to be a problem with this great plugin. It takes a very long time dor the login page to appear and after logging in it taes a very long time to render the admin interface. After that al runs smooth. I deactivated the WP-Shortstat plugin and……the problem was solved. Anyone have any idea
WP-shortstat 1.2 died on me this week after gathering over 60 MB of data in it’s database table. Pages started to load very slowly, the footer took minutes to show up. As much as I loved it I’ve had to uninstall wpss.
I did the same fix as user in comment 102 and all is fine now.
FYI, I also was having the problem with a performance hit. It was bad enough that the w3c validation server was timing out and giving me a 500 error. By commenting out the $cntry line, performance was restored. Unfortunately, I don’t know what side effect that will have.
I did the fix suggested on comment #102 and now everything works fine.
My server doesn’t resolve the domain that looks for the country of origin so it just takes a lot trying to resolve it.
In my version of wp-shortstat (1.3) I commented out line 99.
Hope this will help somebody else.
Hi Jeff,
Once again – great plugin. It’s the first thing I look at all the time.
I have a question, how can I bring the counter to zero? I just transferred another site of mine to its real domain and I wanted to start fresh with the stats…
Any help would be great.
Keep up the good work.
Thanks for this plugin, it’s really cool.
My hosting has allow_url_fopen disabled, so all my visitors come from Indeterminable country. I wrote a tiny Python script to fix that, and works fine.
Anoher issue is that I really don’t matter hits from search engines. I have added the condition browser!=’Crawler/Search Engine’ to get more “realistic/humanized” stats.
And for goodie, I have added city tracking, but since my hosting has allow_url_fopen disabled I don’t know if it really tracks cities well.
Of course, I will be happy to share this code with you, mailing it to Jeff at first :-)
I can only say: great plugin!
There is an error in line 771.
This line says…
[...]($wpss->$tz_offset+1)[...]
and the correct code is
[...]($wpss->tz_offset+1)[...]
Hope helps someone.
I think that the full solution to error in line 771 is:
incorrect:
($wpss->$tz_offset+1)
:$wpss->$tz_offset)*3600)
correct: ($wpss->tz_offset+1)
:$wpss->tz_offset)*3600)
Hope helps too.
Great plugin !.
What version of Shortstat is Wp-shortstat using?
Thanks so much, it’s amazing, and the tip about commenting out Line #99 worked like a charm :)
i managed to get this working on the new wordpress 2.0 by running the following SQL on my dbase .. hope this helps for others who currently dont have compatable stats plugin for wp 2
CREATE TABLE wp_ss_stats (
id int(11) unsigned NOT NULL auto_increment,
remote_ip varchar(15) NOT NULL default ”,
country varchar(50) NOT NULL default ”,
language VARCHAR(5) NOT NULL default ”,
domain varchar(255) NOT NULL default ”,
referer varchar(255) NOT NULL default ”,
resource varchar(255) NOT NULL default ”,
user_agent varchar(255) NOT NULL default ”,
platform varchar(50) NOT NULL default ”,
browser varchar(50) NOT NULL default ”,
version varchar(15) NOT NULL default ”,
dt int(10) unsigned NOT NULL default ‘0′,
UNIQUE KEY id (id)
) TYPE=MyISAM;
CREATE TABLE wp_ss_search (
id int(11) unsigned NOT NULL auto_increment,
searchterms varchar(255) NOT NULL default ”,
count int(10) unsigned NOT NULL default ‘0′,
PRIMARY KEY (id)
) TYPE=MyISAM;
It’s a really cool plugin, and worked well for me. However, a few weeks ago, my RSS feed began timing out although I hadn’t made any changes at all to my site — not even a new post.
After weeks of searching, posting on forums, bugging my webhost, I finally came across a post that said that shortstat had caused this problem for someone else. I disabled shortstat and my RSS feed returned immediately.
I’m putting this comment here in hopes that if someone else has the problem I did, they will have a slightly easier time finding a solution.
Looks like comment #114 was what I was going to say–the fix for line 771 bug. But looks good so far, in WP2.0!
Thanks God, I Found You! I Was Lost Without You. Great Work There!
Great work. I use ShortStat for some time, with wordpress to, but Your version is working better.
THX
Regards
Marcin Andrzejewski
Hi there!
Thanks for the great plugin – its brilliant when something just works so well!
Is there anyway to reset the statistics? I’ve been developing my site for a while and am now making it live. Only the statistics show all the figures for when i was developing it.
Thanks again!
Hello, I have a problem with “Countries”, all are “Indeterminable”. I’m under a tight server, with Safe Mode On and another security measures…
Any help will be appreciated.
Since I upgraded to WP 2.0.1, there is no more stat added :(
Any idea to fix this bug ?
Jeff – great plug in – simple to load up and activate. I am however having a couple of problems.
Stats are not being recorded for some reason (I am running WP 2.01).
My “Since” date ont eh stats page also references 1970 for some reason.
Maybe my issue is related to that?
Any ideas or help would be appreciated very much.
AnotherWin95
Since upgrading from 2.0 to 2.0.1 wp-shortstat have failed to work, I have tried everything. Uninstalled/installed empied the database and deactivated/atcivated etc etc. Please help. Is there any compability issues with 2.0.1?
I love the wp-shortstat so I hope I will get it to work again.
I’ve used wp-shortstat on a number of blogs for the past nine or so months and loved it, but have been having some issues since upgrading to wordpress 2.0.1 last night.
since the upgrade, my wp-shortstat will not display any new traffic, and I know there has been new visitors b/c i’ve gotten several comments. i removed the plug-in, redownloaded it, reinstalled it and re-activated it, but still nothing.
is anyone else having this problem? any suggestions?
Just found a fix at http://blog.happyarts.de/2006/02/02/74
Wow! Great work, Jeff!
The only thing I miss is some way to look up the different host names, and see where they went. I guess there will be no such feature in the neares future?
hey there…I used this plugin without any errors on an alternate WP 2.0 install, but with my new site Shortstat returns this error:
Since
Fatal error: Cannot access empty property in /home/jasone/public_html/wp-content/plugins/wp-shortstat.php on line 771
Any clues?
I’ve a problem with your plugin.
I installed it and it worked on my blog (WP 2.0). I decided to upgrade my blog to WP-2.0.1 (respecting the way described) and now the plugin don’t work.
I tried to uninstall, deleting the tables in DB and then reinstall it but the plugin don’t detect the connexions to my website.. Could you help me ?
I just wanted to verify that the fixed package at http://blog.happyarts.de/2006/02/02/74 worked for me, too. Thanks for the link, Kevin!
Line 771 of version 1.3 was giving me a problem, changing the two ‘$wpss->$tz_offset’ on this line to ‘$wpss->tz_offset’ fixed it.
Hi, Jeff,
Just installed your plugin. I have it running side-by-side with StatTraq at the moment, just to compare the numbers, and so far WP-Shorstat hasn’t collected any of my traffic stats where StatTraq continues to collect like a trooper. Any ideas why it doesn’t register anything?
Thanks. This plugin is working fantastically on WordPress 1.5, and I am just looking into the fixes mentioned above to getting it working on my musictech blog for wordpress 2.
Nice Plugin. It looks great.
The only problem I have is that it doesnt seem to track ANY visitors.
Its driving me crazy and why am I the only one having the problem.
I dont know if you get any wiser from looking at my website but please help.
Greetings Cyril
Wow, that was the easiest plugin ever to setup and it runs perfect! Less than 3 minutes and there you have it. Thanks!
Hi guys, please have a look at
http://www.duechiacchiere.it/wp-slimstat/
I started to develop a powerful version of SlimStat for Wordpress. It is still “work in progress”, even if an alpha release is already there. Drop a comment if you like it or want to suggest any improvement.
Have a nice day,
coolmann
It isn’t just you Cyril, all I get is a blank page.
Hello Jeff, thanks for this awesome plugin
I made a modified version of yours.(actualy it is comparison of some plugins)
I made it for less loading time on shortstat page(w/ fat DB)
I know it’s very simple mod, but I think it’d be better let you know someone changed your work.
I tried to send a trackback, but my post is in ‘Korean’(I’m not so good at english) :(
You can check it here
Thanks!
Hey Jeff, Thanks for writing this sweet sweet plugin. I’m using version 1.3 on wp2.0 but I’m having a problem though: It seems like it was/is similar to Karl’s problem. I followed the comments between the two of you and tried to implement the same changes, but it doesn’t seem to be fixing anything for me. I’m not using the calendar plugin he was using, but I am getting all zeros and no tracking. I’m also getting the 1970 start date. Please help. Pretty please?
matt.
I’m trying to get wp-shortstat to work on a clients website, but it’s just not doing it. When I go to the dashboard for shortstat, it’s all blank with zero data. I manually entered a “hit” via PHPMyAdmin, and that shows up, but no visits are being tracked. In retrospect, just like matt above me – I’ve got wp2.0.2, but no stats.
adam
Hi all, I’m working on a brand-new plugin (wp-slimstat) based on SlimStat and wp-shortstat. It solves every compatibility issue with WP 2.0 and is able to import wp-shortstat old data! Check it out :)
http://www.duechiacchiere.it/wp-slimstat/
coolmann
I love you for this lol. Seriously thank you for coming up with this plug-in. I was able to download and upload it in minutes and I consider myself clueless with the whole plugin thing.
Some fiels doesn’t work for me… I’m using WP 2.0.2 and the fields hits uniques & hits in
the last weaks, appears on blank.
Regards
@ndrés
same here,
I like the interface of this plug-in, but after couple hits from different IP the stat is still blank.
jm
Could you please send me a screenshot? :)
Following the directions just gets me a table full of error messages: ” [Table 'wordpress.wp_ss_stats' doesn't exist]“.
Uninstall, re-download and re-install got the same. Ideas welcomed…
Just Awesome……
hello i have the same problem as matt and adam – am on wp2.0.2 and all stats fields are simply blank.
Erro in my plugin: Fatal error: Cannot access empty property in /home/.gerard/mateusneves/thewpthemes.com/wp-content/plugins/wp-shortstat.php on line 779
Solution?
Tanks,
Very nice… but I had to remove it from my sites because the upload time was a full minute when activated. :( Any ideas how to fix this? This happened on IE, Firefox, and Safari….
Does this plugin work with WordPress 2.0 or higher, when I install it all of my stats fields are blank, no matter how many time I or anyone else visit the site.
I’m using this on my one WP which is 2.0 and it works fine but when I upgraded my other WP recently to 2.0.3 all my stats are blank. Is this right? Is there a fix? I love this plugin and would love for it to work on the newer versions of WP!
I’m getting the same symptoms as other people. Upgraded to Wordpress 2.0.3 and now I’m getting no new hits. A fix would be very much appreciated!
I was having the same trouble with logging not occuring. is_admin_page()* was returning true for non-admin pages. I just commented that line out, and it’s working for me on WP 2.0.2 – I don’t know what other effects doing this will have.
* in the track() function, near line 95
I have same problem . i put it into wordpress 2.0.3 now it’s not working anymore. waiting for quick fix
Just cool an amazing tool! No further comments, really good!
Greetings Milos
Thanks Paul, that worked for me ;’)
This fixed the plugin for me on WP 2.0.3:
http://wordpress.org/support/topic/56700#post-324367
thanks alot this plugin is great :)
I was install it, but why on my stats on Dashboard nothing show up?
It like that my site never seen by some one else?
I also install another stats plugins and work fine. but why my this plug ins doesn’t work?
Please help. What should I do?
I use Wordpress 2.03
Thanks
excellent plugin, i’ve been looking for something like this for ages
cheers
Jauhari > Look at this thread : http://wordpress.org/support/topic/56700?replies=10
Hi
I read about many satisfied user on this plugin,
I have installed and followed the instruction,
received below error, could you help me on this…
Many thanks.
Fatal error: Cannot access empty property in I:\xampplite\htdocs\wordpress\wp-content\plugins\wp-shortstat.php on line 771
Replace the two instances of $wpss->$tz_offset with $wpss->tz_offset on line 771 to fix the “cannot access empty property” error.
the download links seem to be down.
and i would really like to have this plugin for another blog here.
heh :(
@ egor_ka: There’s a download available here: http://blog.happyarts.de/wp-shortstat/
wp-plugins.net seems to be down :\
Thank you for developing such an easy to use stat counter for the masses. This works wonderfully on my wordpress blog.
When I activated this plugin (ver 1.3) on my WordPress 2.0.3 blog, I got a blank screen. I opened another browser window and went to the Dashboard/ShortStat, only to see all sorts of WordPress database errors. How do I resolve that?
I also get a blank page on my WordPress 2.0.3 admin page. Is this a known bug with the shortstat plugin or is there anything I can change to make shortstat work with 2.0.3?
Hi,
I uploaded this plugin last night only to wake up this morning and it didn’t record anything. I know I had visits because of statcounter. Is it because my blog is under /blog on my directory?
Hi,
I have a Problem. I downloded this plugin. I installed it in the wordpress directory / plugin of my own site. I activated it.
But it doesn´t work. What can I do?
thanks for this plugin, works great! =)
bummer, this doesn’t seem to work with the latest version of wordpress :(
Genius! Works a treat. Thanks very much for posting this, will definitely be keeping an eye on future updates.
I had some problems with this script and I switched to SlimStat.
Since
Fatal error: Cannot access empty property in /home/xxxxxxxx/public_html/wp-content/plugins/wp-shortstat.php on line 771
any help appreciated
thanks for the plugin. it was really helpfull.
Just cool an amazing tool Thats it! really good!
I just installed the plugin for short stat but get the following error message when i want to review the statistics
Since
Fatal error: Cannot access empty property in /home/biblio/domains/bibliometrics.eu/public_html/wordpress/wp-content/plugins/wp-shortstat.php on line 771
line 771 is Since getFirstHit()+(((gmdate(‘I’))?($wpss->$tz_offset+1):$wpss->$tz_offset)*3600));?>
could you please help me with that
Maria I too have problems with wp-shortstat and am unable to get to your fix at http://blog.happyarts.de/wp-shortstat/ .. will that site be back up or is there another place we can get it?
Those of you having problems with lines in the 700 range:
I think Juanjo posted the first correct solution, just take out the dollar signs in the code he posted. That fixed the error for me. Thanks Juanjo!
Good plugin and good job,thanks.
Why do people in here keep re-emphasing ShorStat! We all know what it does, now just solve the problems that people have about this plugin.
My plugin installed in the dashboard, but it’s not generating stats. It is not creating tables in my database, which I think that is the culprit. Any one had similar issues?
newperson, i’m having the same problem and i dont know what is wrong. *headscratch* help, anyone?
I had the line 771 error previously mentioned. I applied the fix Juanjo (thanks for the reminder post near the end Austin) and everything looks great now. Before everyone starts trashing support here, please read all the previous posts and work with them first.
Hey Jeff, if I install the plugin, I get an error. But it’s still activated, still I can’t see any stats. Instead, I see this kind of error messages in each window.
WordPress database error: [Table 'word.wp_ss_stats' doesn't exist]
SELECT browser, version, COUNT(*) AS ‘total’ FROM wp_ss_stats WHERE browser != ‘Indeterminable’ GROUP BY browser, version ORDER BY total DESC
Have I done anything wrong?
The download link doesn’t work, has this plugin been dumped?
As it was explained here: http://www.shauninman.com/archive/2005/12/05/shortstat_help,
the plugin is no longer supported, i guess the users are supposed to migrate to Shaun’s Mint(http://www.haveamint.com/) or use this plugin, developed on the base of the wp-shotstat:
jrm.cc/archives/blog/wp-shortstat/ which is still developed and supported at the moment of the writing
Wow this tool is amazing and work verry good. Excellent plugin!
Greetings from Germany
Sven
Great plugin, but it does not work on recent version of WP. Please update it as soon as you can :-)
Sorry, I get this message using the plugin:
Since
Fatal error: Cannot access empty property in /home/www/wp-content/plugins/wp-shortstat.php on line 771
Any idea?
Thanks.
Never stopped loving this stats!
Since
Fatal error: Cannot access empty property in D:\wwwroot\www.holzhandel.mobi\wordpress\wp-content\plugins\wp-shortstat.php on line 771
Good plugin and good job,thanks.
thank you.
i just installed this plugin on my blog and i love it! thank you!
I have been using an older version and today updated to the latest, they work wonderfuly but I have two questions:
Why would shortstat be disagreeing with statpress? By a huge margin. Shortstat claims I have had 6700 hits since launch, and statpress claims its actually 4200.
Also, is there any reason my Browser, Country, and Platform sections be empty in shortstat? Statpress isn’t having trouble with them.
thank you :)
Just upgraded to wordpress 2.5 and had to reinstall wp-shortstat..for some reason the old version wouldn’t take. Now the new one gives me an error -
“Hits Uniques
Hits Uniques
Since
Fatal error: Cannot access empty property in /home/waternoi/public_html/wp-content/plugins/wp-shortstat.php on line 771.”
Is this simply because it is waiting to fill up with data? Or is there something I can do to fix it.
Any help would be much appreciated. Thanks.
Vidya
For lack of ease of finding a better contact method, I’m trying this section to send a message asking a question.
Question:
Why is there an advertisement for Battlefield 2 cheats on the BF2 Stats page?
Tahnks!!!
thanks a lot for nice plugin
Hi…
So there’s probably something I’m doing wrong. This is the first plug in I download, so I might have missed something.
I get this error message
Fatal error: Cannot access empty property in /home1/carrotea/public_html/wp-content/plugins/wp-shortstat.php on line 771
Anything I can do to fix it?
Oh.. I just noticed someone had the same error message as me about two comments up.
Is it because I have the latest Wordpress version?
thanks again,
Steph
for all the people with 771 errors:
replace this ($wpss->$tz_offset+1) with ($wpss->tz_offset+1)
and also this $wpss->$tz_offset)*3600) with $wpss->tz_offset)*3600)
thanks to Juanjo up above.
Hi everybody!
I found this plugin in wp occasionally.
It shows nice stats for my personal blog!
hi,
here is a litle problem…
parse_url(http://__gads=ID=6456b5ee7af3fc51:T=1257031935:S=ALNI_MZF-tLfyP2d3UoUvJFFZ4TtLE2u9A; id=) [function.parse-url]: Unable to parse URL
and tracert:
# parse_url() at Line 692 in wp-content/plugins/wp-shortstat2/wp-shortstat.php
# getLastKeywords() at Line 996 in wp-content/plugins/wp-shortstat2/wp-shortstat.php
# wp_shortstat_display_stats() at Line in
# call_user_func_array() at Line 339 in wp-includes/plugin.php
# do_action() at Line 95 in wp-admin/admin.php
# require_once() at Line 10 in wp-admin/index.php
to fix this delete de URL in your databade mysql, search (http://__gads=ID=645…...
any dude send @seeal :D