shrimptest
Opened 15 years ago
Last modified 14 years ago
#1361 new defect
In the experiments overview, total visitors shows as zero until the experiment stops
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Severity: | normal |
| Plugin: | shrimptest | Keywords: | |
| Cc: |
Description
Starting an experiment and running it work okay, but while an experiment is running, the total visitor counts don't update.
Once the experiment stops, the numbers appear correctly.
In the attached image, there were actually (according to wp_shrimptest_visitors_variants) three unique visitors, two of which viewed variant 1 and one which viewed variant 0.
Attachments (1)
Change History (3)
#1
@
15 years ago
I should add: this is a shortcode variant experiment running on a page, in ShrimpTest 1.0b3, on a multisite version of WordPress 3.2.1.
Other than this, the test seems to be running fine.
On another computer (local version of identical website), I got the same problem. When the experiment stopped, this notice appeared:
Notice: Trying to get property of non-object in /Users/nabha/Sites/ananda/wp-content/plugins/shrimptest/admin/experiments.php on line 142
Same for lines 150 (twice), 156, and 181 (twice).
#2
@
14 years ago
Update:
If I force the stats to not use the cache, it seems to work fine.
Line 61 of experiments.php becomes:
$stats = $this->model->get_experiment_stats( $experiment->experiment_id, true );
I do get lots of errors like this, though:
Notice: Trying to get property of non-object in /Users/nabha/Sites/ananda/wp-content/plugins/shrimptest/admin/experiments.php on line 143.
Changing line 140 of experiments.php to this fixes this problem:
if ($stat === false || $key === 'duration_reached' )
Screenshot of the Experiments screen, with numbers showing zero