Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined offset: 1 Whoops\Exception\ErrorException thrown with message "Undefined offset: 1" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/single-materials.php:67 #3 Whoops\Run:handleError in /var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/single-materials.php:67 #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/single-materials.php67
3
Whoops\Run handleError
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/single-materials.php67
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/single-materials.php
                    </header><!-- .entry-header -->

                    <div class="entry-content">
                        <?php the_content(); ?>
                        <?php $custom = get_post_custom();
                        $files_items = $custom["materials_files"] ?? '';
                        if ( !empty($files_items[0]) ) {?>
                            <div class="fileblock">
                                <div class="filestableflex">
                                    <?php $files_to_zip = array();// create files array
                                    foreach ( $files_items as $item ) {
                                        $files_to_zip [] = get_attached_file( $item ); // populate files array
                                        $file_url = wp_get_attachment_url( $item );
                                        $filetype = wp_check_filetype( $file_url );
                                        ?>
                                        <div class="filerow">
                                            <div class="filename">
                                                <?php
                                                $title = explode('|', get_the_title($item) );
                                                if ( $title[1] ) {
                                                    if ( pll_current_language() == 'uk') {
                                                        echo $title[1];
                                                    } else {
                                                        echo $title[0];
                                                    }
                                                } else {
                                                    echo get_the_title($item);
                                                }
                                                echo ('.'.$filetype['ext'])
                                                ?>
                                            </div>
                                            <div class="filedownload">
                                                <a class="download" href="<?php echo wp_get_attachment_url($item); ?>" download><?=__( 'Download', 'twentyseventeen' )?> <?php /*$filetype['ext'] */?></a>
                                            </div>
                                        </div>
                                        <?php
                                    } ?>
                                </div>
                                <?php
                                $zip = new ZipArchive;
/var/www/newjustice/newjustice.org.ua/wp-content/themes/twentyseventeen/single-materials.php
                    </header><!-- .entry-header -->

                    <div class="entry-content">
                        <?php the_content(); ?>
                        <?php $custom = get_post_custom();
                        $files_items = $custom["materials_files"] ?? '';
                        if ( !empty($files_items[0]) ) {?>
                            <div class="fileblock">
                                <div class="filestableflex">
                                    <?php $files_to_zip = array();// create files array
                                    foreach ( $files_items as $item ) {
                                        $files_to_zip [] = get_attached_file( $item ); // populate files array
                                        $file_url = wp_get_attachment_url( $item );
                                        $filetype = wp_check_filetype( $file_url );
                                        ?>
                                        <div class="filerow">
                                            <div class="filename">
                                                <?php
                                                $title = explode('|', get_the_title($item) );
                                                if ( $title[1] ) {
                                                    if ( pll_current_language() == 'uk') {
                                                        echo $title[1];
                                                    } else {
                                                        echo $title[0];
                                                    }
                                                } else {
                                                    echo get_the_title($item);
                                                }
                                                echo ('.'.$filetype['ext'])
                                                ?>
                                            </div>
                                            <div class="filedownload">
                                                <a class="download" href="<?php echo wp_get_attachment_url($item); ?>" download><?=__( 'Download', 'twentyseventeen' )?> <?php /*$filetype['ext'] */?></a>
                                            </div>
                                        </div>
                                        <?php
                                    } ?>
                                </div>
                                <?php
                                $zip = new ZipArchive;
/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 /materials/public_trust_conference_materials/
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI newjustice.org.ua
REDIRECT_HTTP_HOST newjustice.org.ua
REDIRECT_HTTP_X_FORWARDED_FOR 3.93.173.205
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_HTTP_X_SERVER_IP 89.184.68.202
REDIRECT_HTTP_X_REAL_IP 3.93.173.205
REDIRECT_HTTP_X_CLIENT_IP 3.93.173.205
REDIRECT_HTTP_X_FORWARDED_SSL on
REDIRECT_HTTP_X_FORWARDED_PROTO https
REDIRECT_HTTP_CONNECTION close
REDIRECT_HTTP_ACCEPT */*
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.93.173.205
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 50672
REDIRECT_GEOIP_ADDR 3.93.173.205
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.93.173.205
HTTP_USER_AGENT claudebot
HTTP_X_SERVER_IP 89.184.68.202
HTTP_X_REAL_IP 3.93.173.205
HTTP_X_CLIENT_IP 3.93.173.205
HTTP_X_FORWARDED_SSL on
HTTP_X_FORWARDED_PROTO https
HTTP_CONNECTION close
HTTP_ACCEPT */*
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.93.173.205
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 50672
REDIRECT_URL /materials/public_trust_conference_materials/
GEOIP_ADDR 3.93.173.205
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 1710835549.914
REQUEST_TIME 1710835549
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