Definitely, is vote different than a review?
No, it’s the same thing indeed π
Hi camu,
When I upgraded slimstat recently, the following line you gave me is breaking the page load:
wp_slimstat_db::$filters = array();
If I comment it out, the page loads fine but obviously the view count is off. Running 3.5.4 and it happened when updating to the 3.5 branch I believe. Any suggestions? Thank you!
Things will be fixed in 3.5.5, and you can then comment or remove the workaroundβ¦
Thanks camu!
Any timeframe on 3.5.5? Just asking since it breaks my site or it doesn’t show page views, haha.
Monday night, UTC-5. Or contact us to get it in advance:
http://support.getused.to.it/
Camu
Hi Camu – sorry to bug ya again but I updated to 3.5.5 and still no dice. Whether I have wp_slimstat_db::$filters = array(); or not, still doesn’t show the page views.
Could you let us take a look?
http://support.getused.to.it/
Sure, what is it you need? Here is the code in question:
wp_slimstat_db::$filters = array();
wp_slimstat_db::init('content_type equals cpt:vines|resource contains '.$post->post_name);
$views = wp_slimstat_db::count_records('1=1', '*', true, false);
If the filters = array() is commented out the page loads but views are all 0. If it’s not commented out, page doesn’t load that section.
Oh I see. There was a note in the changelog: the separator changed from | to &&& (three ampersand chars). See if that helps π
You’re the man!! That did the trick!
Curious, why the… weird change?
The pipe char, | , can now be used with the matches operator:
browser matches firefox|chrome
In order to do this, we had to use a different separator to avoid the ambiguity π
browser matches firefox|chrome&&&year equals last year