Event Category Pages Showing All Events (not just specified category)

Home Forums Calendar Products Events Calendar PRO Event Category Pages Showing All Events (not just specified category)

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #857899
    ariddlelfcc
    Participant

    Hi. I am running Events Calendar Pro on a student newsletter site for a community college.

    The problem is that on an initial page load it shows all events input to the event plugin and not those related to just that location. For instance, on of our college locations, the Luray Page County Center has no events scheduled for December 2014…if you go to this page directly it shows that correctly:

    http://lfcc.edu/focus/events/category/student-events-and-workshops/luray-page-county-center-events/2014-12/

    However, if you navigate to it using the navigational bar (Student Events and Workshops > Luray Page County Center Events), and then click the “December” link in the bottom right, it shows all events for all locations.

    If you refresh the page manually, it then shows the correct event listings. This is happening for all three calendar category pages (Middletown, Fauquier and Luray) if you navigate using the nav bar. Apparently using the calendar navigational links to go to the next or previous months shows all events input into the plugin (not just those designated with the specified category for that page).

    Can you help me resolve it?

    #858101
    Brook
    Participant

    Howdy ariddlelfcc,

    That’s interesting. I just tried to recreate this problem on my server. I have a category with a lot of events and I made it a subcategory of another, just like on yours. I navigated to that page organically, and it properly filtered events. I then clicked through to the next month of events, and it continued filtering properly.

    The difference between loading the page directly via your link, and clicking through “organically” on the December link, is that one is a regular page load but the other is Ajax. Frequently we find that other plugins and sometimes themes will tamper with Ajax requests. This can cause them to behave erratically as we are witnessing here. Since I am not seeing the problem on my server but we are seeing it on yours, we should look to the differences between our setups, as obviously one of the difference is causing the problem. Best way to begin is to do conflict testing. This guide walks you through every step of that process. Are you able to do that? If so, what if the name of the plugin or theme that is conflicting?

    Please let me know if I can be of further assistance with the conflict test or anything else. Thanks!

    – Brook

    #858128
    ariddlelfcc
    Participant

    Hi. I ran through the conflict testing…disabling all plugins aside from the Modern Tribe Events Calendar and Events Calendar Pro and switched to the default theme…and the problem still is present. The developer that helped me build the site said the problem is not present on his build of the site either, so I am wondering if there is some type of server configuration causing the issue.

    Here is a screenshot of the plugins I have running just as an FYI:

    View post on imgur.com

    #859167
    Brook
    Participant

    Howdy ariddlelfcc,

    That is puzzling! Thanks for the plugin list and letting me know about your devs setup. It helps narrow the possibilities for sure.

    It would be tough for a difference in server configuration to cause this. Since it is still returning an event query, just not the correct one, then it is almost guaranteed to be some bit of code running alongside it that is tampering with queries. I have seen it enough times before. Our plugins uses WP’ Ajax API, which stems from the file /wp-admin/admin-ajax.php. Sometimes security plugins or configurations will tamper with it. Because for whatever reason WP puts it in the wp-admin folder. And security plugins love locking down and altering requests to the admin folder, because of the understandable but false assumption that it is only admin stuff in there. Furthermore other plugins and themes just have to general of triggers, and will sometimes be tampering with queries that they do not really intend to. Since you are confident in your conflict test, however, that would rule out most of these possibilities. An exotic security configuration could still be to blame, but it would have to be exotic.

    Aside from it being a bit of PHP code unique to your server, there is one other possibility I can think of. If your SQL server had a frankly strange way of handling lengthy SQL queries it might truncate ones past a certain character limit. And perhaps our query’s where category = clause is getting snipped right off the end on Ajax requests? It’s a long shot and would take a rather perfect storm. But, at this point almost everything is a long shot, sadly. Does any of this strike a chord with you? Are you perhaps aware of any limitations or customizations to your server that might be roughly along these lines?

    – Brook

    #874733
    Ryan
    Participant

    I am having a nearly identical issue. In month view for a category, the events listed are not limited to that category. Sometimes it includes events from the next category alphabetically, sometimes it is random. Some categories actually display correctly. There is no discernible pattern for this behavior.

    When I refresh the page or directly navigate to it, everything is normal. This only happens with the ajax navigation.

    I’ve triple checked for conflicts (disabled plugins, changed themes, deleted customizations) and it’s still an issue.

    Is it possible to disable the ajax navigtation functionality only for the month view and replace with convention previous/next links? I’ve played with this but have not been able to get anything to work. If I disable ajax completely, the list view navigation fails.

    Thanks.

    #877737
    Brook
    Participant

    That is interesting. Thank you for chiming in fpdcc, and your triple confirmation. I am watching this intently. I did some asking around just to see if anyone else has seen this. One of our lead devs brought out that a bug like this has been fixed recently, but forgot which version of our plugin. Are you both running 3.8.1 of Core and PRO? If so, could I get a copy of your system information? You can grab a copy of it and paste it here? Make sure to either redact your license key or use the ‘Set as private reply’ checkbox to protect your private information from the public. You can find the system info by going to WP Admin > Events > Settings, clicking on the “Help” tab, and scrolling down to the ‘System Information’ box. (Or by going to [yoursite]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=help) That will give me a lot of extra information to help diagnose the problem.

    Thank you again. I look forward to getting to the bottom of this.

    – Brook

    #879464
    ariddlelfcc
    Participant

    Brook,
    Hi. Yup, I am running both 3.8.1 of Core and Pro. Here is my system information:

    URL

    Home


    INSTALL KEYS
    events-calendar-pro = XXXXXXXXX
    WORDPRESS VERSION
    4.0
    PHP VERSION
    5.3.15
    PLUGINS
    Advanced Custom Fields version 4.3.9 by Elliot Condon(http://www.elliotcondon.com/)
    Akismet version 3.0.3 by Automattic(http://automattic.com/wordpress-plugins/)
    The Events Calendar PRO version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/20)
    NK Google Analytics version 1.3.6 by Manfred Rodríguez(http://www.marodok.com)
    Quick Page/Post Redirect Plugin version 5.0.6 by Don Fischer(http://www.fischercreativemedia.com/)
    The Events Calendar version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/1x)
    TinyMCE Advanced version 4.1.1 by Andrew Ozz(http://www.laptoptips.ca/)
    Google Forms version 0.72 by Mike Walsh(http://www.michaelwalsh.org)
    NETWORK PLUGINS

    MU PLUGINS

    THEME
    LFCC Focus
    MULTISITE

    SETTINGS
    recurring_events_are_hidden = exposed
    tribeEventsTemplate =
    tribeEventsBeforeHTML =
    tribeEventsAfterHTML =
    previous_ecp_versions =
    Array
    (
    [0] => 0
    [1] => 3.0.3
    [2] => 3.1
    [3] => 3.7
    )
    latest_ecp_version = 3.8.1
    welcome_notice = 1
    donate-link =
    postsPerPage = 10
    liveFiltersUpdate = 1
    showComments =
    showEventsInMainLoop = 1
    eventsSlug = events
    singleEventSlug = event
    multiDayCutoff = 00:00
    defaultCurrencySymbol = $
    embedGoogleMaps = 1
    embedGoogleMapsZoom = 10
    debugEvents =
    stylesheetOption = tribe
    tribeEnableViews =
    Array
    (
    [0] => upcoming
    [1] => month
    [2] => week
    [3] => day
    )
    viewOption = month
    tribeDisableTribeBar =
    monthEventAmount = 10
    disable_metabox_custom_fields = show
    defaultValueReplace = 1
    defaultCountry =
    hideLocationSearch =
    hideRelatedEvents =
    earliest_date = 2013-10-10 12:15:00
    latest_date = 2014-12-22 08:40:00
    last-update-message = 3.8.1
    hideSubsequentRecurrencesDefault =
    userToggleSubsequentRecurrences =
    reverseCurrencyPosition =
    geoloc_default_geofence = 25
    geoloc_default_unit = miles
    pro-schema-version = 3.5
    WORDPRESS TIMEZONE
    America/New_York
    SERVER TIMEZONE
    UTC

    #879711
    Ryan
    Participant

    Running 3.8.1 on both. Here you go:

    url
    http://fpdcc.net
    install keys

    events-calendar-pro = XXX

    WordPress version
    4.0
    PHP version
    5.3.24
    plugins

    BackUpWordPress version 2.6.2 by Human Made Limited(http://hmn.md/)
    NDM version 1 by –(http://–)
    Contact Form DB version 2.8.16 by Michael Simpson
    Contact Form 7 version 4.0.1 by Takayuki Miyoshi(http://ideasilo.wordpress.com/)
    The Events Calendar PRO version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/20)
    iframe version 2.9 by webvitaly(http://web-profile.com.ua/wordpress/plugins/)
    Locations version 1.3 by GoldPlugins(http://goldplugins.com/)
    Private Blog version 5.0.3 by Daniel Chatfield(http://www.danielchatfield.com)
    Relevanssi version 3.3.7.1 by Mikko Saari(http://www.mikkosaari.fi/)
    Simple Page Sidebars version 1.1.7 by Blazer Six(http://www.blazersix.com/)
    Sucuri Security – Auditing, Malware Scanner and Hardening version 1.7.2 by Sucuri, INC(http://sucuri.net)
    The Events Calendar version 3.8.1 by Modern Tribe, Inc.(http://m.tri.be/1x)
    WordPress Importer version 0.6.1 by wordpressdotorg(http://wordpress.org/)
    WordPress SEO version 1.6.3 by Team Yoast(https://yoast.com/)

    network plugins

    mu plugins

    theme
    FPDCC
    multisite

    settings

    recurring_events_are_hidden = exposed
    tribeEventsTemplate =
    tribeEventsBeforeHTML =
    tribeEventsAfterHTML =
    previous_ecp_versions =

    Array
    (
    [0] => 0
    [1] => 3.6
    [2] => 3.6.1
    [3] => 3.8
    )

    latest_ecp_version = 3.8.1
    welcome_notice = 1
    donate-link =
    postsPerPage = 20
    liveFiltersUpdate = 1
    showComments =
    showEventsInMainLoop =
    eventsSlug = events
    singleEventSlug = event
    multiDayCutoff = 00:00
    defaultCurrencySymbol = $
    reverseCurrencyPosition =
    embedGoogleMaps = 1
    embedGoogleMapsZoom = 10
    debugEvents =
    stylesheetOption = full
    tribeEnableViews =

    Array
    (
    [0] => list
    [1] => month
    [2] => day
    )

    viewOption = list
    tribeDisableTribeBar =
    monthEventAmount = 10
    dateWithYearFormat = D, F j, Y
    dateWithoutYearFormat = D, F j
    monthAndYearFormat = F Y
    dateTimeSeparator = •
    timeRangeSeparator = –
    datepickerFormat = 1
    defaultValueReplace =
    disable_metabox_custom_fields = show
    pro-schema-version = 3.5
    hideSubsequentRecurrencesDefault =
    userToggleSubsequentRecurrences =
    recurrenceMaxMonthsBefore = 24
    recurrenceMaxMonthsAfter = 24
    geoloc_default_geofence = 10
    geoloc_default_unit = miles
    hideLocationSearch =
    hideRelatedEvents =
    weekDayFormat = D jS
    eventsDefaultOrganizerID = 0
    eventsDefaultVenueID = 0
    eventsDefaultAddress =
    eventsDefaultCity =
    eventsDefaultState = IL
    eventsDefaultProvince =
    eventsDefaultZip =
    defaultCountry =

    Array
    (
    [0] => US
    [1] => United States
    )

    eventsDefaultPhone =
    tribeEventsCountries =
    last-update-message = 3.8.1
    earliest_date = 2014-12-03 10:00:00
    latest_date = 2015-02-28 15:00:00

    WordPress timezone

    server timezone
    UTC

    #879903
    Brook
    Participant

    Thank you both! I have another thread that sounds like the exact same symptoms. The gentleman kindly provided a copy of his database. In the past few hours I was able to reproduce this bug with his data. I still do not know why this is happening. I will be spending some more time on this today trying to isolate the problem. If I am unable to I might grab a second set of eyes tomorrow. This is very difficult to diagnose, I hope you can understand the small delay while I work at it. I will update you guys as soon as I have more information. Your system info could very well help me identify a common link, thanks again.

    – Brook

    #880080
    ariddlelfcc
    Participant

    Sounds great! I’m glad the error has been able to be reproduced and I look forward to a hopeful resolution.

    #888761
    Brook
    Participant

    Another update: This is logged as a bug that we are going to try and fix. It is still possible that it will not require any changes update to our plugin. There are still a few unknowns. But either way I want to find a solution for you all. I will report back as soon as I have more information.

    – Brook

    #898395
    Brook
    Participant

    Alright, finally some great news on this front. I isolated the problem. And now for some even better news, this is fixed in v3.9 of our plugin! While that has not been released yet, if everything goes smooth it will be rather soon!

    Please let me know if you have any questions. If not, update to 3.9 once it is released and you should be in good order.

    Thank you guys for helping me work out the problem here.

    – Brook

    #898399
    ariddlelfcc
    Participant

    Awesome! I will keep an eye out for the new release and update it and report back to hopefully resolve this ticket.

    #898486
    Ryan
    Participant

    Great! Thanks Brook.

    #900019
    Brook
    Participant

    That sounds like a plan. I will keep this topic open until that release. Thanks guys.

    – Brook

Viewing 15 posts - 1 through 15 (of 20 total)
  • The topic ‘Event Category Pages Showing All Events (not just specified category)’ is closed to new replies.