Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: postdates Whoops\Exception\ErrorException thrown with message "Undefined variable: postdates" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php:125 #3 Whoops\Run:handleError in /var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php:125 #2 include in /var/www/newjustice/newjustice.org.ua/wp-includes/template-loader.php:106 #1 require_once in /var/www/newjustice/newjustice.org.ua/wp-blog-header.php:19 #0 require in /var/www/newjustice/newjustice.org.ua/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php125
3
Whoops\Run handleError
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php125
2
include
/var/www/newjustice/newjustice.org.ua/wp-includes/template-loader.php106
1
require_once
/var/www/newjustice/newjustice.org.ua/wp-blog-header.php19
0
require
/var/www/newjustice/newjustice.org.ua/index.php17
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php
            </div>
        <?php }?>

        <header class="page-header">

            <?php

            if ( get_query_var('tag') || get_query_var('post_date') )  {
                if ( pll_current_language() == 'uk') {
                    setlocale(LC_ALL, 'uk_UA.UTF-8');
                }
                ?>
                <h1 class="page-title">
                    <?php if (get_query_var('tag')) {
                        echo __( 'NEWS FROM REGION - ', 'twentyseventeen' );
                        $tag = get_term_by('slug', $tagquery, 'post_tag');
                        echo $tag->name;
                        echo ('<br>');
                    } else echo (__( 'NEWS', 'twentyseventeen' ).' ') ?>
                    <?php if ( ( $postdates[0] != 0) || ( $postdates[1] !=  0 ) ) {
                        echo __( 'DATES ', 'twentyseventeen' );
                    } ?>
                    <?php
                    if ( $postdates[0] != 0 ) {
                        echo __( 'FROM ', 'twentyseventeen' );
                        echo mysql2date( get_option( 'date_format' ), $postdates[0] );
                    }?>
                    <?php
                    if ( $postdates[1] !=  0 ) {
                        echo __( 'TO ', 'twentyseventeen' );
                        echo mysql2date( get_option( 'date_format' ), $postdates[1] );
                    } ?>
                </h1>
            <?} else {
                echo '<h1 class="page-title">'.$title.'</h1>';
                the_archive_description( '<div class="taxonomy-description">', '</div>' );
            }
            ?>
        </header><!-- .page-header -->

/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/archive.php
            </div>
        <?php }?>

        <header class="page-header">

            <?php

            if ( get_query_var('tag') || get_query_var('post_date') )  {
                if ( pll_current_language() == 'uk') {
                    setlocale(LC_ALL, 'uk_UA.UTF-8');
                }
                ?>
                <h1 class="page-title">
                    <?php if (get_query_var('tag')) {
                        echo __( 'NEWS FROM REGION - ', 'twentyseventeen' );
                        $tag = get_term_by('slug', $tagquery, 'post_tag');
                        echo $tag->name;
                        echo ('<br>');
                    } else echo (__( 'NEWS', 'twentyseventeen' ).' ') ?>
                    <?php if ( ( $postdates[0] != 0) || ( $postdates[1] !=  0 ) ) {
                        echo __( 'DATES ', 'twentyseventeen' );
                    } ?>
                    <?php
                    if ( $postdates[0] != 0 ) {
                        echo __( 'FROM ', 'twentyseventeen' );
                        echo mysql2date( get_option( 'date_format' ), $postdates[0] );
                    }?>
                    <?php
                    if ( $postdates[1] !=  0 ) {
                        echo __( 'TO ', 'twentyseventeen' );
                        echo mysql2date( get_option( 'date_format' ), $postdates[1] );
                    } ?>
                </h1>
            <?} else {
                echo '<h1 class="page-title">'.$title.'</h1>';
                the_archive_description( '<div class="taxonomy-description">', '</div>' );
            }
            ?>
        </header><!-- .page-header -->

/var/www/newjustice/newjustice.org.ua/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;
}
 
/var/www/newjustice/newjustice.org.ua/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';
 
}
 
/var/www/newjustice/newjustice.org.ua/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
REQUEST_URI /uk/tag/rivne/
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI newjustice.org.ua
REDIRECT_HTTP_HOST newjustice.org.ua
REDIRECT_HTTP_X_FORWARDED_FOR 3.238.195.81
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_HTTP_X_SERVER_IP 89.184.68.202
REDIRECT_HTTP_X_REAL_IP 3.238.195.81
REDIRECT_HTTP_X_CLIENT_IP 3.238.195.81
REDIRECT_HTTP_X_FORWARDED_SSL on
REDIRECT_HTTP_X_FORWARDED_PROTO https
REDIRECT_HTTP_CONNECTION close
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_REFERER http://newjustice.org.ua/uk/tag/rivne/
REDIRECT_PATH /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_SERVER_NAME newjustice.org.ua
REDIRECT_SERVER_ADDR 89.184.68.202
REDIRECT_SERVER_PORT 443
REDIRECT_REMOTE_ADDR 3.238.195.81
REDIRECT_DOCUMENT_ROOT /var/www/newjustice/newjustice.org.ua
REDIRECT_REQUEST_SCHEME https
REDIRECT_CONTEXT_PREFIX
REDIRECT_CONTEXT_DOCUMENT_ROOT /var/www/newjustice/newjustice.org.ua
REDIRECT_SERVER_ADMIN support@mirohost.net
REDIRECT_SCRIPT_FILENAME
REDIRECT_REMOTE_PORT 60518
REDIRECT_GEOIP_ADDR 3.238.195.81
REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_GEOIP_REGION 51
REDIRECT_GEOIP_CITY Ashburn
REDIRECT_GEOIP_DMA_CODE 511
REDIRECT_GEOIP_METRO_CODE 511
REDIRECT_GEOIP_AREA_CODE 0
REDIRECT_GEOIP_LATITUDE 39.046902
REDIRECT_GEOIP_LONGITUDE -77.490303
REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_STATUS 200
HTTPS on
SSL_TLS_SNI newjustice.org.ua
HTTP_HOST newjustice.org.ua
HTTP_X_FORWARDED_FOR 3.238.195.81
HTTP_USER_AGENT claudebot
HTTP_X_SERVER_IP 89.184.68.202
HTTP_X_REAL_IP 3.238.195.81
HTTP_X_CLIENT_IP 3.238.195.81
HTTP_X_FORWARDED_SSL on
HTTP_X_FORWARDED_PROTO https
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_REFERER http://newjustice.org.ua/uk/tag/rivne/
PATH /bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
SERVER_SIGNATURE
SERVER_NAME newjustice.org.ua
SERVER_ADDR 89.184.68.202
SERVER_PORT 443
REMOTE_ADDR 3.238.195.81
DOCUMENT_ROOT /var/www/newjustice/newjustice.org.ua
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/newjustice/newjustice.org.ua
SERVER_ADMIN support@mirohost.net
SCRIPT_FILENAME /var/www/newjustice/newjustice.org.ua/index.php
REMOTE_PORT 60518
REDIRECT_URL /uk/tag/rivne/
GEOIP_ADDR 3.238.195.81
GEOIP_CONTINENT_CODE NA
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION 51
GEOIP_CITY Ashburn
GEOIP_DMA_CODE 511
GEOIP_METRO_CODE 511
GEOIP_AREA_CODE 0
GEOIP_LATITUDE 39.046902
GEOIP_LONGITUDE -77.490303
GEOIP_POSTAL_CODE 20149
HTTP_AUTHORIZATION
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711633471.972
REQUEST_TIME 1711633471
argv Array ( )
argc 0
Key Value
INVOCATION_ID f5b104a76a314535831de6ffa34b7c46
APACHE_LOCK_DIR /var/lock/apache2
LANG C
APACHE_RUN_USER apache
APACHE_RUN_GROUP apache
APACHE_VZNAME ds98
APACHE_IP [::1]
PWD /
0. Whoops\Handler\PrettyPageHandler