Query bug introduced in v2.0.4
-
Hello,
I finally found why the filter I’ve been using for different categories was not working properly on one of them.
Context:
On my biggest category, after upgrading to v2.0.4 (which, at this time, I did not realize: I only discovered this on v2.0.6!), selecting a filter value (checkbox) on an attribute (ajax along with autofilter) did not bring any product at all on the page!Analysis:
I downgraded version on a staging site to check when it stopped working and discovered that if 2.0.3 was OK, all versions beyond were not. So I checked the cahcnges thanks to Winmerge and found that the query args were changed:'post_status' => 'publish',
was removed!
But as it was still working with other categories (with fewer products), I did not get that immediately…Resolution:
I modified /woo-product-filter/trunk/modules/woofilters/controller.php and reinserted'post_status' => 'publish',
before line 525.Finally:
As your modification worked on other categories, there might be something to check about timeouts (as you’ve introduced some) or about the meta indexes… I let you check that.
Otherwise, could you allow us to manage the post_status in query args?For the time being, I use my modified v2.0.6 version. Working well so far…
The page I need help with: [log in to see the link]
- The topic ‘Query bug introduced in v2.0.4’ is closed to new replies.