Single event meta data calls a fatal error

Home Forums Calendar Products Events Calendar PRO Single event meta data calls a fatal error

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #993827
    William Morrison
    Participant

    On our single event pages the meta data is calling a fatal error…

    Fatal error: Call to undefined function tribe_events_single_event_meta() in /nfs/c05/h04/mnt/18844/domains/gethope.net/html/wp-content/themes/church-event/tribe-events/single-event.php on line 41

    where the meta data should be.

    I first noticed the error when updating from 3.11.1 to 3.11.2 and thought it was a conflict with my recently updated event calendar pro which is still 3.11.1. So I rolled back events calendar to 3.11.1 and still have the same error. Please help.

    #993829
    William Morrison
    Participant

    This is the line of code that the error is referring to:

    <?php echo tribe_events_single_event_meta() ?>

    #993904
    Brian
    Member

    Hi,

    Sorry for the issues on this.

    I can help resolve this. The function giving the fatal error, tribe_events_single_event_meta() was deprecated 14 months ago in 3.6 and removed in 3.11.

    To fix this you need to update your custom template single-events.php in your theme.

    You want to replace:

    echo tribe_events_single_event_meta();

    with this function:

    tribe_get_template_part( 'modules/meta' );

    Let me know if that resolves the issue for you.

    Thanks

    #993908
    William Morrison
    Participant

    Perfect. That fixed it. Thank you very much. I appreciate your product and your timely response.

    #993931
    Brian
    Member

    You’re Welcome, glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Single event meta data calls a fatal error’ is closed to new replies.