We are getting a php notice…
Notice: Trying to get property of non-object in \wp-content\plugins\the-events-calendar\src\Tribe\Template_Factory.php on line 272
The code this corresponds to looks like this…
// Do we have a keyword or place name search?
if ( ! empty( $wp_query->query_vars[‘s’] ) ) {
$search_term = $wp_query->query_vars[‘s’];
} elseif ( ! empty( $_REQUEST[‘tribe-bar-search’] ) ) {
$search_term = $_REQUEST[‘tribe-bar-search’];
} elseif ( ! empty( $_REQUEST[‘tribe-bar-geoloc’] ) ) {
$geographic_term = $_REQUEST[‘tribe-bar-geoloc’];
}
if ( is_tax( $tribe->get_event_taxonomy() ) ) {
$tax_term = get_term_by( ‘slug’, get_query_var( ‘term’ ), $tribe->get_event_taxonomy() );
$tax_term = esc_html( $tax_term->name );
}
Line 271 is $tax_term = esc_html( $tax_term->name );
Is this a bug in The Events Calendar PRO plugin? We are using the latest version 4.4.3 along with…
The Events Calendar: Community Events Version 4.4.2
The Events Calendar: Filter Bar Version 4.4