Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key 1 Whoops\Exception\ErrorException thrown with message "Undefined array key 1" Stacktrace: #9 Whoops\Exception\ErrorException in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php:3733 #8 Whoops\Run:handleError in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php:3733 #7 WP_Query:next_post in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php:3792 #6 WP_Query:the_post in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/query.php:1005 #5 the_post in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/404.php:14 #4 include in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/page-smi.php:89 #3 include in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/taxonomy-smi_category.php:3 #2 include in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/template-loader.php:106 #1 require_once in /var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-blog-header.php:19 #0 require in /var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php:17
Stack frames (10)
9
Whoops\Exception\ErrorException
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php3733
8
Whoops\Run handleError
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php3733
7
WP_Query next_post
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php3792
6
WP_Query the_post
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/query.php1005
5
the_post
/404.php14
4
include
/page-smi.php89
3
include
/taxonomy-smi_category.php3
2
include
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/template-loader.php106
1
require_once
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-blog-header.php19
0
require
/var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php17
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php
        $this->found_posts = (int) apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) );
 
        if ( ! empty( $limits ) ) {
            $this->max_num_pages = (int) ceil( $this->found_posts / $q['posts_per_page'] );
        }
    }
 
    /**
     * Sets up the next post and iterate current post index.
     *
     * @since 1.5.0
     *
     * @return WP_Post Next post.
     */
    public function next_post() {
 
        ++$this->current_post;
 
        /** @var WP_Post */
        $this->post = $this->posts[ $this->current_post ];
        return $this->post;
    }
 
    /**
     * Sets up the current post.
     *
     * Retrieves the next post, sets up the post, sets the 'in the loop'
     * property to true.
     *
     * @since 1.5.0
     *
     * @global WP_Post $post Global post object.
     */
    public function the_post() {
        global $post;
 
        if ( ! $this->in_the_loop ) {
            if ( 'all' === $this->query_vars['fields'] ) {
                // Full post objects queried.
                $post_objects = $this->posts;
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php
        $this->found_posts = (int) apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) );
 
        if ( ! empty( $limits ) ) {
            $this->max_num_pages = (int) ceil( $this->found_posts / $q['posts_per_page'] );
        }
    }
 
    /**
     * Sets up the next post and iterate current post index.
     *
     * @since 1.5.0
     *
     * @return WP_Post Next post.
     */
    public function next_post() {
 
        ++$this->current_post;
 
        /** @var WP_Post */
        $this->post = $this->posts[ $this->current_post ];
        return $this->post;
    }
 
    /**
     * Sets up the current post.
     *
     * Retrieves the next post, sets up the post, sets the 'in the loop'
     * property to true.
     *
     * @since 1.5.0
     *
     * @global WP_Post $post Global post object.
     */
    public function the_post() {
        global $post;
 
        if ( ! $this->in_the_loop ) {
            if ( 'all' === $this->query_vars['fields'] ) {
                // Full post objects queried.
                $post_objects = $this->posts;
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/class-wp-query.php
                $post_objects = array_map( 'get_post', $post_ids );
            }
            update_post_author_caches( $post_objects );
        }
 
        $this->in_the_loop = true;
        $this->before_loop = false;
 
        if ( -1 === $this->current_post ) { // Loop has just started.
            /**
             * Fires once the loop is started.
             *
             * @since 2.0.0
             *
             * @param WP_Query $query The WP_Query instance (passed by reference).
             */
            do_action_ref_array( 'loop_start', array( &$this ) );
        }
 
        $post = $this->next_post();
 
        // Ensure a full post object is available.
        if ( 'all' !== $this->query_vars['fields'] ) {
            if ( 'ids' === $this->query_vars['fields'] ) {
                // Post IDs queried.
                $post = get_post( $post );
            } elseif ( isset( $post->ID ) ) {
                /*
                 * Partial objecct queried.
                 *
                 * The post object was queried with a partial set of
                 * fields, populate the entire object for the loop.
                 */
                $post = get_post( $post->ID );
            }
        }
 
        // Set up the global post object for the loop.
        $this->setup_postdata( $post );
    }
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-includes/query.php
    }
 
    $wp_query->rewind_posts();
}
 
/**
 * Iterate the post index in the loop.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
function the_post() {
    global $wp_query;
 
    if ( ! isset( $wp_query ) ) {
        return;
    }
 
    $wp_query->the_post();
}
 
/*
 * Comments loop.
 */
 
/**
 * Determines whether current WordPress query has comments to loop over.
 *
 * @since 2.2.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 *
 * @return bool True if comments are available, false if no more comments.
 */
function have_comments() {
    global $wp_query;
 
    if ( ! isset( $wp_query ) ) {
        return false;
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/404.php
<?php /**
 * Created by PhpStorm.
 * User: AkinaySau
 * Date: 12.05.2017
 * Time: 10:30
 */
 
use Sau\WP\Theme\Source\ST;
use Sau\WP\Theme\Twig\SauTwig;
 
$data = [];
 
while (have_posts()) {
    the_post();
    $data['page'] = get_post();
}
$data['breadcrumbs'] = print_breadcrumbs();
 
SauTwig::display('@template/404.twig', $data);
 
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/page-smi.php
    ]);
 
    // общее количество записей
    $countPosts = count(get_posts([
        'post_type' => 'smi',
        'numberposts' => -1,
        'post_status' => 'publish',
        'tax_query' => [
            [
                'taxonomy' => 'smi_category',
                'field' => 'slug',
                'terms' => $term,
            ],
        ],
    ]));
}
 
// если записей нет
if (!count($posts)) {
    include __DIR__ . '/404.php';
    exit;
}
 
// навигация
$data['pagination'] = [];
if ($countPosts > count($posts)) {
    $maxPages = ceil($countPosts / $numberPosts);
 
    // первым пунктом добавляем стрелку на предыдущую запись
    if ($paged != 1) {
        $data['pagination'][] = '<a class="pagination__arrow pagination__arrow_prev pagination__link" href="/smi/page/'.($paged - 1).'/"></a>';
    }
 
    // формируем список
    for ($i = 1; $i <= $maxPages; $i++) {
        if ($paged == $i) {
            $data['pagination'][] = '<span aria-_active="page" class="pagination__link _active">'.$i.'</span>';
            continue;
        }
        if ($i == 1) {
/var/www/mclouds_ru_usr/data/www/mclouds.ru/wp-content/themes/mclouds/taxonomy-smi_category.php
<?php
 
include 'page-smi.php';
 
/var/www/mclouds_ru_usr/data/www/mclouds.ru/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/mclouds_ru_usr/data/www/mclouds.ru/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/mclouds_ru_usr/data/www/mclouds.ru/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
Key Value
uMKgbAtUhXYZJ FGH5Q6
__ddg1_ VdGcT6xBmEfJgFh2FUKe
lhbwLUBceT ZCdM3W
bs_ERPLe b43GiSTnB0H
__ddg10_ 1751532924
__ddg9_ 216.73.216.162
sLPDqcSVxvom a53Z7LckOfiQbC
__ddg8_ pJMKqELnkUzafpQt
empty
Key Value
SERVER_SOFTWARE nginx/1.26.1
REQUEST_URI /smi/category/trendy/page/4/
USER mclouds_ru_usr
HOME /var/www/mclouds_ru_usr/data
HTTP_DDG_CONNECTING_IP 216.73.216.162
HTTP_COOKIE uMKgbAtUhXYZJ=FGH5Q6; __ddg1_=VdGcT6xBmEfJgFh2FUKe; lhbwLUBceT=ZCdM3W; bs_ERPLe=b43GiSTnB0H; __ddg10_=1751532924; __ddg9_=216.73.216.162; sLPDqcSVxvom=a53Z7LckOfiQbC; __ddg8_=pJMKqELnkUzafpQt
HTTP_REFERER https://mclouds.ru/smi/category/trendy/page/4
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_HOST mclouds.ru
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.162, 216.73.216.162
HTTP_X_REAL_IP 216.73.216.162
HTTP_HOST mclouds.ru
HTTP_CONNECTION upgrade
SCRIPT_FILENAME /var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php
REDIRECT_STATUS 200
SERVER_NAME mclouds.ru
SERVER_PORT 443
SERVER_ADDR 192.168.100.98
REMOTE_PORT 48724
REMOTE_ADDR 192.168.100.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/mclouds_ru_usr/data/www/mclouds.ru
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1751532924.4054
REQUEST_TIME 1751532924
argv Array ( )
argc 0
Key Value
USER mclouds_ru_usr
HOME /var/www/mclouds_ru_usr/data
HTTP_DDG_CONNECTING_IP 216.73.216.162
HTTP_COOKIE uMKgbAtUhXYZJ=FGH5Q6; __ddg1_=VdGcT6xBmEfJgFh2FUKe; lhbwLUBceT=ZCdM3W; bs_ERPLe=b43GiSTnB0H; __ddg10_=1751532924; __ddg9_=216.73.216.162; sLPDqcSVxvom=a53Z7LckOfiQbC; __ddg8_=pJMKqELnkUzafpQt
HTTP_REFERER https://mclouds.ru/smi/category/trendy/page/4
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_HOST mclouds.ru
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.162, 216.73.216.162
HTTP_X_REAL_IP 216.73.216.162
HTTP_HOST mclouds.ru
HTTP_CONNECTION upgrade
SCRIPT_FILENAME /var/www/mclouds_ru_usr/data/www/mclouds.ru/index.php
REDIRECT_STATUS 200
SERVER_NAME mclouds.ru
SERVER_PORT 443
SERVER_ADDR 192.168.100.98
REMOTE_PORT 48724
REMOTE_ADDR 192.168.100.2
SERVER_SOFTWARE nginx/1.26.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/mclouds_ru_usr/data/www/mclouds.ru
DOCUMENT_URI /index.php
REQUEST_URI /smi/category/trendy/page/4/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1751532924.4054
REQUEST_TIME 1751532924
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler