Comments on: Overflow in Wp-Dstats2 WordPress plugin? Friends of Oracle and Java Fri, 29 May 2015 11:00:21 +0000 hourly 1 By: jon kvanvig Sat, 20 Aug 2005 03:18:35 +0000 /?p=278#comment-1229 I don’t know if you’ll see this, since it is a fairly old post, but I’ll try.

I’ve switched to WP 1.5, and wp-dstats2 doesn’t work for it, so started using Stattraq. Amazing result: same overflow problem! If it’s the same issue, the relevant code is:
`$sqlQuery = “SELECT COUNT(DISTINCT session_id) AS cnt FROM $tablestattraq WHERE ” . (‘all’ != $time_frame ? “access_time BETWEEN ‘$startDate’ AND ‘$endDate’ AND” : ” ) .” user_agent_type=0″;
$output = $wpdb->get_row($sqlQuery);
return $output->cnt;

I’m not facile enough to see why this might cause the same overflow problem–any idea?

By: jon kvanvig Mon, 04 Apr 2005 01:01:36 +0000 /?p=278#comment-1228 Fantastic! I just hit the problem about a week ago, and have been trying to figure it out ever since. Thanks so much for the code!!!