Custom template error with tribe_get_view();
-
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.
- The topic ‘Custom template error with tribe_get_view();’ is closed to new replies.