HomePage Forums Traveler Undefined variable: taxonomy in st-search-filter.php on line 261

This topic contains 1 reply, has 2 voices, and was last updated by  Bryan 3 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9852

    Hello i’m getting this error: could you help me solve this?

    2017/12/22 15:23:24 [error] 25463#25463: *6495 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined variable: taxonomy in /wp-content/themes/traveler/inc/vc-elements/st-search-filter/st-search-filter.php on line 261

    line 261: (file attached)

    $html = '<li><h5 class="booking-filters-title">' . $title . '</h5>' . st()->load_template( 'vc-elements/st-search-filter/filter' , 'taxonomy' ,  array('taxonomy'=>$taxonomy,'post_type'=>$st_post_type) ) . '</li>';
                return $html;
    Attachments:
    You must be logged in to view attached files.
    #9902

    Hello

    That is just warning message of php structure. Don’t worry, it does not effect on theme functions.

    You can hide all the warning message by turn debug off.

    define( 'WP_DEBUG', false );
    @ini_set( 'display_errors', 0 );

    The following code, inserted in your wp-config.php file.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Traveler’ is closed to new topics and replies.