• Resolved frissekomjesse

    (@frissekomjesse)


    In the latest update of The Event Calandar they have added a feature to create series passes, which is a ticket for an entire series of events.

    Ever since this update our custom template with our theme is giving me the following error:

    Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Argument 2 passed to TEC\Tickets\Flexible_Tickets\Series_Passes\Base::filter_end_date_for_series() must be an instance of WP_Post, instance of stdClass given, called in /wp-includes/class-wp-hook.php on line 324 in /wp-content/plugins/event-tickets/src/Tickets/Flexible_Tickets/Series_Passes/Base.php on line 643

    On our custom template we use tribe_get_view(); to get the content of the single-event.php.This is what is causing the error but I don’t know how else I should build the template.

    The error is displayed on events with AND without a series pass.

    This is what the template looks like:

    {{-- Template Name: Events Template --}}
    @extends('layouts.app')
    @section('jumbotron')
    ?@include('partials.jumbotron-events')
    @endsection
    ?@if (is_singular('tribe_events'))
    ???@include('blocks.base')
    ?????<div class="event-single-content">
    ???????<div class="container">
    ?????????<?php tribe_events_before_html(); ?>
    ?????????<?php tribe_get_view(); ?>
    ?????????<?php tribe_events_after_html(); ?>
    ???????</div>
    ?????</div>
    ?@endif


    Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @frissekomjesse

    I’m sorry to hear that you’re having this issue with our plugins.

    For us to check the issue further, could you provide the version of the following:

    • PHP
    • WordPress
    • The Events Calendar
    • Event Tickets
    • Theme

    Looking forward to your reply.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that there hasn’t been any recent activity on this thread, so we’ll consider it resolved. However, if you have any additional questions or concerns, feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom template error with tribe_get_view();’ is closed to new replies.