Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: product_id Whoops\Exception\ErrorException thrown with message "Undefined variable: product_id" Stacktrace: #7 Whoops\Exception\ErrorException in /var/www/user2038614/data/www/termotech.by/wp-content/themes/g5_hydrogen/woocommerce/content-product.php:40 #6 Gantry\Component\Whoops\SystemFacade:handleError in /var/www/user2038614/data/www/termotech.by/wp-content/themes/g5_hydrogen/woocommerce/content-product.php:40 #5 require in /var/www/user2038614/data/www/termotech.by/wp-includes/template.php:724 #4 load_template in /var/www/user2038614/data/www/termotech.by/wp-content/plugins/woocommerce/includes/wc-core-functions.php:195 #3 wc_get_template_part in /var/www/user2038614/data/www/termotech.by/wp-content/themes/g5_hydrogen/woocommerce/archive-product.php:84 #2 include in /var/www/user2038614/data/www/termotech.by/wp-includes/template-loader.php:78 #1 require_once in /var/www/user2038614/data/www/termotech.by/wp-blog-header.php:19 #0 require in /var/www/user2038614/data/www/termotech.by/index.php:17
Stack frames (8)
7
Whoops
\
Exception
\
ErrorException
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-content
/
themes
/
g5_hydrogen
/
woocommerce
/
content-product.php
40
6
Gantry
\
Component
\
Whoops
\
SystemFacade
handleError
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-content
/
themes
/
g5_hydrogen
/
woocommerce
/
content-product.php
40
5
require
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-includes
/
template.php
724
4
load_template
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-content
/
plugins
/
woocommerce
/
includes
/
wc-core-functions.php
195
3
wc_get_template_part
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-content
/
themes
/
g5_hydrogen
/
woocommerce
/
archive-product.php
84
2
include
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-includes
/
template-loader.php
78
1
require_once
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
wp-blog-header.php
19
0
require
/
var
/
www
/
user2038614
/
data
/
www
/
termotech.by
/
index.php
17
}
 
global $product;
 
// Ensure visibility
if ( empty( $product ) || ! $product->is_visible() ) {
    return;
}
?>
<div class="product-card">
    <div <?php post_class("uk-flex uk-flex-column uk-flex-center"); ?>>
        <?php
        /**
         * woocommerce_before_shop_loop_item hook.
         *
         * @hooked woocommerce_template_loop_product_link_open - 10
         */
        // do_action( 'woocommerce_before_shop_loop_item' );
        ?>
        <a class="uk-flex uk-flex-column uk-margin-auto-bottom" href=<?php echo get_permalink($product_id)?> >
            <div>
                <?php 
 
                /**
                 * woocommerce_before_shop_loop_item_title hook.
                 *
                 * @hooked woocommerce_show_product_loop_sale_flash - 10
                 * @hooked woocommerce_template_loop_product_thumbnail - 10
                 */
                do_action( 'woocommerce_before_shop_loop_item_title' );
                ?>
            </div>
 
            <?php 
 
            /**
             * woocommerce_shop_loop_item_title hook.
             *
             * @hooked woocommerce_template_loop_product_title - 10
             */
}
 
global $product;
 
// Ensure visibility
if ( empty( $product ) || ! $product->is_visible() ) {
    return;
}
?>
<div class="product-card">
    <div <?php post_class("uk-flex uk-flex-column uk-flex-center"); ?>>
        <?php
        /**
         * woocommerce_before_shop_loop_item hook.
         *
         * @hooked woocommerce_template_loop_product_link_open - 10
         */
        // do_action( 'woocommerce_before_shop_loop_item' );
        ?>
        <a class="uk-flex uk-flex-column uk-margin-auto-bottom" href=<?php echo get_permalink($product_id)?> >
            <div>
                <?php 
 
                /**
                 * woocommerce_before_shop_loop_item_title hook.
                 *
                 * @hooked woocommerce_show_product_loop_sale_flash - 10
                 * @hooked woocommerce_template_loop_product_thumbnail - 10
                 */
                do_action( 'woocommerce_before_shop_loop_item_title' );
                ?>
            </div>
 
            <?php 
 
            /**
             * woocommerce_shop_loop_item_title hook.
             *
             * @hooked woocommerce_template_loop_product_title - 10
             */
        /*
         * This use of extract() cannot be removed. There are many possible ways that
         * templates could depend on variables that it creates existing, and no way to
         * detect and deprecate it.
         *
         * Passing the EXTR_SKIP flag is the safest option, ensuring globals and
         * function variables cannot be overwritten.
         */
        // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
        }
 
        if ( ! $template ) {
            // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/woocommerce/slug.php.
            $template = WC_TEMPLATE_DEBUG_MODE ? '' : locate_template(
                array(
                    "{$slug}.php",
                    WC()->template_path() . "{$slug}.php",
                )
            );
        }
 
        wp_cache_set( $cache_key, $template, 'woocommerce' );
    }
 
    // Allow 3rd party plugins to filter template file from their plugin.
    $template = apply_filters( 'wc_get_template_part', $template, $slug, $name );
 
    if ( $template ) {
        load_template( $template, false );
    }
}
 
/**
 * Get other templates (e.g. product attributes) passing attributes and including the file.
 *
 * @param string $template_name Template name.
 * @param array  $args          Arguments. (default: array).
 * @param string $template_path Template path. (default: '').
 * @param string $default_path  Default path. (default: '').
 */
function wc_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
    $cache_key = sanitize_key( implode( '-', array( 'template', $template_name, $template_path, $default_path, WC_VERSION ) ) );
    $template  = (string) wp_cache_get( $cache_key, 'woocommerce' );
 
    if ( ! $template ) {
        $template = wc_locate_template( $template_name, $template_path, $default_path );
        wp_cache_set( $cache_key, $template, 'woocommerce' );
    }
 
                 */
                do_action( 'woocommerce_before_shop_loop' );
            ?>
 
            <?php woocommerce_product_loop_start(); ?>
 
                <?php woocommerce_product_subcategories(); ?>
 
                <?php while ( have_posts() ) : the_post(); ?>
 
                    <?php
                        /**
                         * woocommerce_shop_loop hook.
                         *
                         * @hooked WC_Structured_Data::generate_product_data() - 10
                         */
                        do_action( 'woocommerce_shop_loop' );
                    ?>
 
                    <?php wc_get_template_part( 'content', 'product' ); ?>
 
                <?php endwhile; // end of the loop. ?>
 
            <?php woocommerce_product_loop_end(); ?>
 
            <?php
                /**
                 * woocommerce_after_shop_loop hook.
                 *
                 * @hooked woocommerce_pagination - 10
                 */
                do_action( 'woocommerce_after_shop_loop' );
            ?>
 
        <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
 
            <?php
                /**
                 * woocommerce_no_products_found hook.
                 *
    elseif ( is_single() && $template = get_single_template() ) :
    elseif ( is_page() && $template = get_page_template() ) :
    elseif ( is_singular() && $template = get_singular_template() ) :
    elseif ( is_category() && $template = get_category_template() ) :
    elseif ( is_tag() && $template = get_tag_template() ) :
    elseif ( is_author() && $template = get_author_template() ) :
    elseif ( is_date() && $template = get_date_template() ) :
    elseif ( is_archive() && $template = get_archive_template() ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

Key Value
page catalog/
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.62 (CloudLinux) OpenSSL/3.5.5 mod_fcgid/2.3.9 PHP/8.0.30
REQUEST_URI /catalog/
HTTP_HOST termotech.by
DOCUMENT_ROOT /var/www/user2038614/data/www/termotech.by
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
CONTENT_LENGTH 0
HTTP_REFERER https://termotech.by/catalog
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 443
HTTP_X_BN_WHITELISTED false
HTTP_BN_CLIENT_PORT 5287
REDIRECT_HTTPS on
REDIRECT_UNIQUE_ID apunWV-kFxCy7aceTxtmzwAAABA
REDIRECT_STATUS 200
HTTPS on
UNIQUE_ID apunWV-kFxCy7aceTxtmzwAAABA
SERVER_SIGNATURE
SERVER_NAME termotech.by
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 216.73.216.147
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/user2038614/data/www/termotech.by
SERVER_ADMIN webmaster@termotech.by
SCRIPT_FILENAME /var/www/user2038614/data/www/termotech.by/index.php
REMOTE_PORT 51102
REDIRECT_URL /catalog/
REDIRECT_QUERY_STRING page=catalog/
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING page=catalog/
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1788585817.2245
REQUEST_TIME 1788585817
Key Value
HTTP_HOST termotech.by
DOCUMENT_ROOT /var/www/user2038614/data/www/termotech.by
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler