Fatal error: Call to undefined function tribe_is_week()

Home Forums Calendar Products Events Calendar PRO Fatal error: Call to undefined function tribe_is_week()

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #957564
    clintaugust
    Participant

    Hi,

    I am trying to call an ad to the sidebar of the events calendar.

    I am modifying sidebar.php on my theme to do this.

    It’s fine in month view but line view and single entry produces: Fatal error: Call to undefined function tribe_is_week()

    Any recommendations on how to fix this? I looked at the previous thread and it seems that reinstalling might fix it, but I wanted to see if anyone had other advice.

    Thanks!

    I pulled the code for now.
    Here is the rest of the error, I removed the full path. error: Fatal error: Call to undefined function tribe_is_week() in/home/content…/sidebar.php on line 44

    #957717
    Barry
    Member

    Hi there!

    Looking at your user account you seem to have purchased a license for Community Events, but not for Events Calendar PRO.

    • Can you confirm if you do indeed have Events Calendar PRO installed and activated?
    • Do bear in mind that tribe_is_week() only exists if you have Events Calendar PRO

    With that in mind, if the previous topic you are referencing was geared to helping someone who uses PRO – but you do not yourself have that plugin – you would either need to install it or take a different approach.

    Does that help at all?

    #957803
    clintaugust
    Participant

    It does! I was using /* Conditional Logic to Detect Various Event Related Views/Pages to see what pages were being generated then using it to call the ad zone in.

    I just pulled the conditionals that were erroring and I am not seeing the Fatal error.

    I do not have pro, but can you tell me the name/id used on the single event view page? The conditional tests are just turning up with a generic response echo ‘Any other page!’; which you can see at the bottom of the sidebar on the right: http://theridesite.com/event/ride-to-remember-2/

    Thank you!

    #957857
    Barry
    Member

    This should work (if you’re trying to determine if you are on a single event page):

    if ( is_singular( TribeEvents::POSTTYPE ) ) {
        /* Show something */
    }
    #958122
    clintaugust
    Participant

    That’s what I needed! Thank you for your help!

    #958136
    clintaugust
    Participant

    You guys are awesome by the way.

    #958534
    Barry
    Member

    Only too happy to help 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Call to undefined function tribe_is_week()’ is closed to new replies.