Whoops \ Exception \ ErrorException (E_WARNING)
Attempt to read property "term_id" on null Whoops\Exception\ErrorException thrown with message "Attempt to read property "term_id" on null" Stacktrace: #4 Whoops\Exception\ErrorException in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-content/themes/movecloser/index.php:27 #3 Whoops\Run:handleError in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-content/themes/movecloser/index.php:27 #2 include in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-includes/template-loader.php:106 #1 require_once in /home/noveo4/domains/biotaniqe.pl/public_html/public/wp-blog-header.php:19 #0 require in /home/noveo4/domains/biotaniqe.pl/public_html/public/index.php:17
Stack frames (5)
4
Whoops
\
Exception
\
ErrorException
/
index.php
27
3
Whoops
\
Run
handleError
/
index.php
27
2
include
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-includes
/
template-loader.php
106
1
require_once
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-blog-header.php
19
0
require
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
index.php
17
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-content
/
themes
/
movecloser
/
index.php
//         } else {
//             $actual_term_id = $key->term_id;
//             break;
//         }
//     }
 
?>
 
 
 
 
<?php
$page_object = get_queried_object();
$args = array(
    'posts_per_page' => -1,
    'tax_query' => array(
        array(
            'taxonomy' => 'categoryproduct',
            'field' => 'term_id',
            'terms' => $page_object->term_id,
        )
    )
);
$posts = new WP_Query($args);
$posts = $posts->posts;
?>
 
 
 
<?php if( get_field('category_image', $page_object) ): ?>
 
    <div class="row main-banner">
        <?php echo wp_get_attachment_image(get_field('category_image', $page_object), array(1920), "", array( "class" => "img-responsive" )); ?>
    </div>
<?php else: ?>
    <div class="container">
        <div class="row">
            <div class="col-md-2 col-xs-1"></div>
            <div class="col-md-8 col-xs-10">
                <div class="row-article-products-header"><h2><?php echo $page_object->name; ?></h2></div>
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
wp-content
/
themes
/
movecloser
/
index.php
//         } else {
//             $actual_term_id = $key->term_id;
//             break;
//         }
//     }
 
?>
 
 
 
 
<?php
$page_object = get_queried_object();
$args = array(
    'posts_per_page' => -1,
    'tax_query' => array(
        array(
            'taxonomy' => 'categoryproduct',
            'field' => 'term_id',
            'terms' => $page_object->term_id,
        )
    )
);
$posts = new WP_Query($args);
$posts = $posts->posts;
?>
 
 
 
<?php if( get_field('category_image', $page_object) ): ?>
 
    <div class="row main-banner">
        <?php echo wp_get_attachment_image(get_field('category_image', $page_object), array(1920), "", array( "class" => "img-responsive" )); ?>
    </div>
<?php else: ?>
    <div class="container">
        <div class="row">
            <div class="col-md-2 col-xs-1"></div>
            <div class="col-md-8 col-xs-10">
                <div class="row-article-products-header"><h2><?php echo $page_object->name; ?></h2></div>
/
home
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
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
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
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
/
noveo4
/
domains
/
biotaniqe.pl
/
public_html
/
public
/
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 LiteSpeed
REQUEST_URI /green-detox-nawilzanie-i-detoks/
PATH /usr/local/bin:/usr/bin:/bin
LD_PRELOAD /usr/local/lib/h88/av.so
PHP_INI_SCAN_DIR :/etc/configs/users/noveo4/php/www.biotaniqe.pl/
HTTP_ACCEPT */*
HTTP_HOST biotaniqe.pl
HTTP_REFERER http://biotaniqe.pl/green-detox-nawilzanie-i-detoks/
HTTP_USER_AGENT claudebot
DOCUMENT_ROOT /home/noveo4/domains/biotaniqe.pl/public_html/public/
REMOTE_ADDR 34.236.152.203
REMOTE_PORT 39748
SERVER_ADDR 195.78.66.221
SERVER_NAME biotaniqe.pl
SERVER_ADMIN webmaster@biotaniqe.pl
SERVER_PORT 443
REQUEST_SCHEME https
REDIRECT_URL /green-detox-nawilzanie-i-detoks/
REDIRECT_REQUEST_METHOD GET
HTTPS on
HTTP_AUTHORIZATION
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/noveo4/domains/biotaniqe.pl/public_html/public/index.php
QUERY_STRING
SCRIPT_URI https://biotaniqe.pl/green-detox-nawilzanie-i-detoks/
SCRIPT_URL /green-detox-nawilzanie-i-detoks/
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710833306.8152
REQUEST_TIME 1710833306
Key Value
PATH /usr/local/bin:/usr/bin:/bin
LD_PRELOAD /usr/local/lib/h88/av.so
PHP_INI_SCAN_DIR :/etc/configs/users/noveo4/php/www.biotaniqe.pl/
0. Whoops\Handler\PrettyPageHandler