Php Notice Template_Factory.php on line 272

Home Forums Calendar Products Events Calendar PRO Php Notice Template_Factory.php on line 272

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1248259
    John
    Participant

    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

    #1248667
    Cliff
    Member

    Hi, John. Thanks for this detailed report.

    Line 272 of the latest version of /wp-content/plugins/the-events-calendar/src/Tribe/Template_Factory.php doesn’t match up to what could be throwing such an error. Here’s Line 272.

    Since this code is used in the get_search_terms() method, could you please explain what you do to reproduce this issue, such as submitting a search on your site via the Tribe Bar?

    If you share an annotated screenshot or video screen capture, it might help communicate what you’re seeing and what exactly the issue is.

    #1259644
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Php Notice Template_Factory.php on line 272’ is closed to new replies.