Whoops \ Exception \ ErrorException (E_WARNING)
Undefined variable $tourid Whoops\Exception\ErrorException thrown with message "Undefined variable $tourid" Stacktrace: #5 Whoops\Exception\ErrorException in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php:39 #4 Whoops\Run:handleError in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php:39 #3 get_my_daytour_realted_tours in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/single-day-tour.php:28 #2 include in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-blog-header.php:19 #0 require in /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/index.php:17
Stack frames (6)
5
Whoops\Exception\ErrorException
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php39
4
Whoops\Run handleError
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php39
3
get_my_daytour_realted_tours
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/single-day-tour.php28
2
include
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-includes/template-loader.php106
1
require_once
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-blog-header.php19
0
require
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/index.php17
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php
        $args = array(
          'post_type' => 'day-tour',
            'post__not_in' => array( get_the_ID() ),
            'posts_per_page' => 3,
            'tax_query' => array(
                array(
                    'taxonomy' => 'day-tours',
                    'field'    => 'slug',
                    'terms'    => $relatedterms['0']->slug,
                ),
            ),
        );
        $query = new WP_Query( $args );
        if( $query->have_posts() ) : while( $query->have_posts() ) : $query->the_post(); ?>
 
        <?php
        $image = get_the_post_thumbnail_url(get_the_ID(),'medium');
        $price = carbon_get_post_meta( get_the_ID(), 'crb_price' );
        $duration = carbon_get_post_meta( get_the_ID(), 'crb_duration' );
        $duration_unit = get_post_meta( $tourid, '_crb_duration_unit', true );
        $drtn_unt = ( $duration_unit == 2 ) ? 'Hours' : 'Days';
        ?>
 
        <div class="col-md-4">
          <div class="tour-box">
            <div class="tour-img">
              <a href="<?php echo get_permalink( get_the_ID() ); ?>">
                <img loading="lazy" src="<?php echo $image; ?>" alt="<?php the_title(); ?>" />
              </a>
              <p class="duration upphoto"><i class="icon-clock"></i> <?php echo $duration; ?> <?php echo $drtn_unt; ?></p>
              <div class="btn3 upphoto">from $<?php echo $price; ?></div>
            </div>
            <div class="tour-data">
              <span class="tour-title">
                <a href="<?php echo get_permalink( get_the_ID() ); ?>">
                  <?php the_title(); ?>
                </a>
              </span>
              <p><?php echo get_my_excerpt( 100 ); ?></p>
            </div>
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/template-parts/day-tours/day_tour_tours.php
        $args = array(
          'post_type' => 'day-tour',
            'post__not_in' => array( get_the_ID() ),
            'posts_per_page' => 3,
            'tax_query' => array(
                array(
                    'taxonomy' => 'day-tours',
                    'field'    => 'slug',
                    'terms'    => $relatedterms['0']->slug,
                ),
            ),
        );
        $query = new WP_Query( $args );
        if( $query->have_posts() ) : while( $query->have_posts() ) : $query->the_post(); ?>
 
        <?php
        $image = get_the_post_thumbnail_url(get_the_ID(),'medium');
        $price = carbon_get_post_meta( get_the_ID(), 'crb_price' );
        $duration = carbon_get_post_meta( get_the_ID(), 'crb_duration' );
        $duration_unit = get_post_meta( $tourid, '_crb_duration_unit', true );
        $drtn_unt = ( $duration_unit == 2 ) ? 'Hours' : 'Days';
        ?>
 
        <div class="col-md-4">
          <div class="tour-box">
            <div class="tour-img">
              <a href="<?php echo get_permalink( get_the_ID() ); ?>">
                <img loading="lazy" src="<?php echo $image; ?>" alt="<?php the_title(); ?>" />
              </a>
              <p class="duration upphoto"><i class="icon-clock"></i> <?php echo $duration; ?> <?php echo $drtn_unt; ?></p>
              <div class="btn3 upphoto">from $<?php echo $price; ?></div>
            </div>
            <div class="tour-data">
              <span class="tour-title">
                <a href="<?php echo get_permalink( get_the_ID() ); ?>">
                  <?php the_title(); ?>
                </a>
              </span>
              <p><?php echo get_my_excerpt( 100 ); ?></p>
            </div>
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-content/themes/eut/single-day-tour.php
// daytour Header
get_my_daytour_header();
 
// daytour Body
get_my_daytour_body();
 
// daytour Booking
get_my_daytour_booking();
 
// Endloop
endwhile;
 
// Reset My Data
wp_reset_postdata();
 
// reviews_box
get_reviews_box();
 
// realted_tours
get_my_daytour_realted_tours();
 
// Footer
get_footer();
 
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/home/995789.cloudwaysapps.com/fwyvftzscd/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.58 (Debian)
REQUEST_URI /day-tour/aswan-to-abu-simbel-day-tour/
WP_REDIS_DISABLED 0
USER fwyvftzscd
HOME /home/995789.cloudwaysapps.com/fwyvftzscd
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /day-tour/aswan-to-abu-simbel-day-tour/
REMOTE_PORT 47850
SCRIPT_FILENAME /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/995789.cloudwaysapps.com/fwyvftzscd/public_html/
REMOTE_ADDR 127.0.0.1
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME egyptunitedtours.com
SERVER_SIGNATURE <address>Apache/2.4.58 (Debian) Server at egyptunitedtours.com Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_X_VARNISH 4658192
HTTP_HOST egyptunitedtours.com
HTTP_X_FORWARDED_FOR 47.76.35.19
HTTP_CDN_LOOP cloudflare
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.2932.131 Safari/537.36
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_CF_RAY 82db3fbfdc7c04df-LHR
HTTP_ACCEPT_ENCODING gzip
HTTP_CF_IPCOUNTRY US
HTTP_CF_CONNECTING_IP 47.76.35.19
HTTP_X_VERSION 611
HTTP_X_APP_USER fwyvftzscd
HTTP_X_APPLICATION wordpress
HTTP_X_FORWARDED_HOST egyptunitedtours.com
HTTP_X_FORWARDED_PROTO https
HTTP_X_CLIENT_REAL_IP 47.76.35.19
HTTP_X_REAL_IP 47.76.35.19
BREEZE_BROWSER_CACHE_ON 1
BREEZE_GZIP_ON 1
SCRIPT_URI http://egyptunitedtours.com/day-tour/aswan-to-abu-simbel-day-tour/
SCRIPT_URL /day-tour/aswan-to-abu-simbel-day-tour/
HTTP_AUTHORIZATION
HTTPS on
cw_allowed_ip 1
REDIRECT_STATUS 200
REDIRECT_BREEZE_BROWSER_CACHE_ON 1
REDIRECT_BREEZE_GZIP_ON 1
REDIRECT_SCRIPT_URI http://egyptunitedtours.com/day-tour/aswan-to-abu-simbel-day-tour/
REDIRECT_SCRIPT_URL /day-tour/aswan-to-abu-simbel-day-tour/
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_cw_allowed_ip 1
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1701265085.5257
REQUEST_TIME 1701265085
empty
0. Whoops\Handler\PrettyPageHandler