• Resolved mrwweb

    (@mrwweb)


    On a nonprofit site using TEC, ECP, Filter Bar, WooCommerce Tickets, and Events Category Colors, we’re running into a really odd problem.

    When either changing to certain views (Week, Day, and Month seem to do it most of the time) or changing the time period viewed either via paging OR the “Find Events” > Date selection, the following gets appended to the URL and most events don’t show up because of it: &tribe_cost=0-50-90.

    I initially thought this was a caching issue, but I disabled W3 Total Cache and the issue continued. That “0-50-90” doesn’t even seem to be a valid argument for the filter query value, so I’m totally stumped about where it’s coming from. Is this a known problem and is there a work around for it?

    https://wordpress.org/plugins/the-events-calendar/

Viewing 12 replies - 1 through 12 (of 12 total)
  • geoffgraham

    (@geoffgraham)

    Hey there, MRWweb!

    That is certainly odd. Thanks for giving a good amount of detail here–that’s super helpful.

    I’m having trouble trying to recreate the issue myself I’m working with the same plugins and testing in the Twenty Fifteen theme.

    I do see that a similar issue has recently been reported in our premium forums:
    https://theeventscalendar.com/support/forums/topic/reset-filters-adds-a-tag-to-the-search-ie-doesnt-reset/

    Rather than regurgitate the same things here, will you please head over there and run through the suggestions provided so far? You’ll see that the issue at hand there is a similar tag get appended to the URL when using the filters. At this point, we have a hunch that caching could still be at play, but possibly from another source than W3 Total Cache.

    Let’s start there for now–please let us know what you find!

    Cheers,
    Geoff

    Thread Starter mrwweb

    (@mrwweb)

    Thanks for checking this out, @geoffgraham. I’m currently copying the site for further testing. In the mean time, I was browsing the forums and also came across this thread which feels kind of similar to the “0-50-90” part of my problem. Hopefully they come back and post further information.

    Hey @mrwweb,

    Thanks for your patience with this issue – and for sharing that other thread, which does indeed seem related.

    We recently had one or two similar issues come up on our PRO forums as well, with similar behavior, so this is indeed something we’re diving deep into to see where the bug is coming from. It’s been tricky to debug so far, because some of our team members are able to reproduce these errors on their sites, while others with the exact same site configuration can not.

    Stay tuned to further updates on this, thank you for your patience here!

    — George

    Thread Starter mrwweb

    (@mrwweb)

    @momnt, thanks for the update. I have not had a chance to do as much testing as I was hoping, but it’s still on the to-do list, hopefully sooner than later.

    Thread Starter mrwweb

    (@mrwweb)

    @momnt and @geoffgraham,

    You may know this already but as I’m playing with this, I’m seeing now that this problem only occurs when PRO is activated. Running the filter bar with the free TEC doesn’t not have this problem. This is true with no other plugins, stock Twenty Twelve, and all my mu-plugins disabled.

    A few other miscellaneous things just in case they’re useful:

    • Deleting all transients didn’t do anything.
    • Flushing the object cache didn’t do anything.
    • Both values for the “Filters Default State” for the offending filter in the settings show the issue.
    • I found no matches to “0-50-90” in my database.
    • Deactivating and reactivating the Filterbar plugin didn’t fix the issue.
    • Looking at the admin-ajax.php call in dev tools, I can see “tribe_cost:0-50-90” in the request header.
    • That lead me to the fact that there’s this in the HTML of the page (the page before the problem appears, that is): <input type="hidden" id="tribe_events_filter_cost" name="tribe_cost" value="0-50-90" />
    • And that takes me on a meandering journey to Lines ~317-339 of tribe-filter.class.php as the likely culprit since it’s setting the errant value in the source even before JS kicks in (unless there’s something more complicated server side going on that I don’t know about).

    That’s all I have time for today, but hopefully that’s useful.

    Barry

    (@barryhughes-1)

    Thanks for the further update – we’re continuing to investigate and pursue a fix here 🙂

    Thread Starter mrwweb

    (@mrwweb)

    Thanks @barryhughes-1,

    Can I provide you with any further troubleshooting information?

    Barry

    (@barryhughes-1)

    At this point I don’t think so – though I appreciate the offer (and one of the team may jump back in to ask for more detail if needed) 🙂

    Thread Starter mrwweb

    (@mrwweb)

    At the request of the plugin maker, I migrated this thread to this new support thread on theeventscalendar.com.

    If/when this is resolved, I will come back here and mark it as such.

    Plugin Author Brian

    (@brianjessee)

    Just another note that we are working on this on theeventscalendar.com

    Plugin Author Brian

    (@brianjessee)

    This issue has been resolved.

    The issue was using 50-90 in the cost field caused the Filter Bar to use 50-90 as the max value, which in turn caused &tribe_cost=0-50-90 to be added to the query string.

    This problem only occurs with the Events Calendar and the Filter Bar Add On are active together.

    We are working on a better validation in future versions to prevent this.

    Cheers

    Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi there,

    Thanks again for your post. We wanted to get in touch and let you know that although we weren’t able to address this issue in our upcoming 3.10 release, it is still very much a priority. We have a ticket in our system and will be investigating a solution to be released in a future version. Thank you for your patience and support while we work on this!

    Cheers,
    The Events Calendar Team

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Filter Bar, Changing Dates, And Unwanted Query Parameters’ is closed to new replies.