HomePage Forums Traveler Undefined Variable

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

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

    HI, getting this error on tours:

    Notice: Undefined variable: style in /srv/users/serverpilot/apps/cairnstourbookings/public/wp-content/themes/traveler/st_templates/tours/elements/nearby.php on line 16

    The variable on said line is: if($style == ‘style-2’){

    I’m sure this has been brought up before but you don’t have a search function (Blows my mind) so I can’t tell if it’s already been answered.

    Thanks for the help.



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

    You can hide it by turn debug off.

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

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


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

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