Calendar not working correctly

Home Forums Calendar Products Events Calendar PRO Calendar not working correctly

  • This topic has 0 replies, 2 voices, and was last updated 8 years ago by Thaddeus Ruszkowski.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1488576
    Thaddeus Ruszkowski
    Participant

    calendar not showing correctly on our site. See calendar on https://www.atonementfriars.org/novena-calendar/ it has lot of events. if you go April it is empty. if you go back March again it is empty too. When you go that page first there have lot of events on March. what’s wrong?

    #1489057
    Brendan
    Keymaster

    Hi there,

    Thanks for email support and sorry you are having issues. Sounds like there is a conflict. To get you started on troubleshooting: First, please make sure you are using the most current versions of all of our plugins. You can also try reinstalling them by following these instructions. If that doesn’t help, the next step in troubleshooting this is going to be testing for conflicts with your theme and other plugins (with WP_DEBUG enabled). If you need a testing environment, the free WP Staging plugin will let you create a quick copy of your live site that you can use for testing.

    Let me know what you find.

    Thanks,
    Brendan

    #1489207
    Thaddeus Ruszkowski
    Participant

    I found issue. it happen because of custom code. The event Calendar Support help me to build that code. are you able resolve for me this? we want to hide novenas category on main event page. actually it work last few months. I think this broken after event calendar plugin update. see code below,

    add_action( 'pre_get_posts', 'exclude_events_category' );
    function exclude_events_category( $query ) {
    if ( $query->query_vars['eventDisplay'] == 'upcoming' && !is_tax(TribeEvents::TAXONOMY) || ($query->query_vars['eventDisplay'] == 'month' || $query->query_vars['eventDisplay'] == 'list' || $query->query_vars['eventDisplay'] == 'week'  || $query->query_vars['eventDisplay'] == 'day') && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
    $query->set( 'tax_query', array(
     
    array(
    'taxonomy' => TribeEvents::TAXONOMY,
    'field' => 'slug',
    'terms' => array('novenas'),
    'operator' => 'NOT IN'
    )
     
    )
    );
    }
    return $query;
    }
    #1490259
    Brendan
    Keymaster

    Hi there,

    So it looks like the previous support rep was trying to be helpful with providing code. Its not part of service level but I did run this code through and see that it works. Looks like there are a few warnings but I am able to scroll through events for each month and go back to the previous month.

    So what you are saying is when you remove this snippet, your site works?

    With that being said, we’d love to help point you in the right direction.

    I’d recommend starting off by taking a look at our Themer’s Guide, which can show you which templates can be edited and copied in order to attempt the results that you are looking for.

    For your customization, you may want to take a look at this template:

    If you’d prefer not to tackle this customization on your own, we may be able to assist you further. We do need to prioritize support requests from other customers at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help, we’ll be happy to do so. Please let us know if you’d like to go this route so that you can be added to this queue.

    In the meantime, if there is any more information you can share (including mocks) that will help us to better understand what you are seeking please do feel free to add them to this ticket.

    If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.

    Thanks!

    Brendan

    #1490400
    Thaddeus Ruszkowski
    Participant

    Hi there.

    The main calendar work without any issue https://www.atonementfriars.org/events/

    The issue happen with other calendar on this page https://www.atonementfriars.org/novena-calendar/ it used [tribe_events view=”month” category=”novenas”] short-code. If you go next month and previous month the calendar say ‘no result found’. if you back to current month it again say ‘no result found’. if you directly go to calendar it works. http://prntscr.com/ixgegs

    I hope you understand what i’m trying to say.

    I also can confirm this happen after latest plugin update. We restore backup(the backup take before update event plugin) to stage server and it work good.

    Thank you.

    #1492232
    Brendan
    Keymaster

    Hi there,

    I understand. So when you remove the custom code, it works fine?

    Thanks,
    Brendan

    #1492396
    Thaddeus Ruszkowski
    Participant

    Yes you are right.

    There have of lot of example on The Events Calendar Forum. None of them working with new plugin update.

    #1496026
    Brendan
    Keymaster

    Hi there,

    In this case there could have been some changes to the naming conventions. I can put this in the queue for someone to look more into this as a customization.

    Let me know if you would like to explore that.

    thanks,
    Brendan

    #1496099
    Thaddeus Ruszkowski
    Participant

    Yes please.

    #1498103
    Brendan
    Keymaster

    HI there,

    I am putting this into the queue. Once someone is able to take a look and provide a snippet, they will reach out to you.

    Thanks,
    Brendan

    #1517971
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Calendar not working correctly’ is closed to new replies.