Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: s_apartment_number Whoops\Exception\ErrorException thrown with message "Undefined variable: s_apartment_number" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/html/wp-content/themes/riverstone/single-apartment.php:49 #3 Whoops\Run:handleError in /var/www/html/wp-content/themes/riverstone/single-apartment.php:49 #2 include in /var/www/html/wp-includes/template-loader.php:106 #1 require_once in /var/www/html/wp-blog-header.php:19 #0 require in /var/www/html/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/single-apartment.php49
3
Whoops\Run handleError
/single-apartment.php49
2
include
/var/www/html/wp-includes/template-loader.php106
1
require_once
/var/www/html/wp-blog-header.php19
0
require
/var/www/html/index.php17
/var/www/html/wp-content/themes/riverstone/single-apartment.php
        foreach ($arr_with_furniture as $key => $val) {
            $gallery_with_furniture[] = $arr_with_furniture[$key]['url'];
        }
    };
 
    ?>
 
<?php if (!empty(get_post_meta(get_the_ID(), 'house', 'true'))) { 
    $s_house = $text_dom . ' ' . get_post_meta(get_the_ID(), 'house', 'true');
}
if (!empty(get_post_meta(get_the_ID(), 'floor', 'true'))) {
    $s_floor =  __('Floor', 'tts') . ' ' . get_post_meta(get_the_ID(), 'floor', 'true');
 }
if (!empty(get_post_meta(get_the_ID(), 'apartment_number', 'true'))) {
    $s_apartment_number = __('Apartment number', 'tts') . ' №' . get_post_meta(get_the_ID(), 'apartment_number', 'true');
}
if (!empty(get_post_meta(get_the_ID(), 'full_square', 'true'))) {
    $s_square = __('Full square', 'tts') . ' ' . get_post_meta(get_the_ID(), 'full_square', 'true');
} 
$s_alt = $s_apartment_number . ', ' . $s_house . ', ' . $s_floor . ', ' . $s_square;
?>
 
    <div class="container singleFlat">
        <h1><?php the_title(); ?></h1>
        <div class="row">
            <div class="col-sm-5 col-xs-12">
 
                <div class="gallery_tabs tabs">
 
                    <!--[ WITH FURNITURE ]-->
 
                        <div class="tabs__content active">
                            <div class="single-flat-slider with_furniture">
                                <?php if (isset($gallery_with_furniture)) : ?>
                                <?php foreach ($gallery_with_furniture as $item) { ?>
                                    <?php if (!empty($item)) { ?>
                                        <div class="single-flat-slider-item">
                                            <a class="open-slick-popup" href="#slickPopup">
                                                <img src="<?= $item ?>" alt="<?php echo $s_alt; ?>">
                                            </a>
/var/www/html/wp-content/themes/riverstone/single-apartment.php
        foreach ($arr_with_furniture as $key => $val) {
            $gallery_with_furniture[] = $arr_with_furniture[$key]['url'];
        }
    };
 
    ?>
 
<?php if (!empty(get_post_meta(get_the_ID(), 'house', 'true'))) { 
    $s_house = $text_dom . ' ' . get_post_meta(get_the_ID(), 'house', 'true');
}
if (!empty(get_post_meta(get_the_ID(), 'floor', 'true'))) {
    $s_floor =  __('Floor', 'tts') . ' ' . get_post_meta(get_the_ID(), 'floor', 'true');
 }
if (!empty(get_post_meta(get_the_ID(), 'apartment_number', 'true'))) {
    $s_apartment_number = __('Apartment number', 'tts') . ' №' . get_post_meta(get_the_ID(), 'apartment_number', 'true');
}
if (!empty(get_post_meta(get_the_ID(), 'full_square', 'true'))) {
    $s_square = __('Full square', 'tts') . ' ' . get_post_meta(get_the_ID(), 'full_square', 'true');
} 
$s_alt = $s_apartment_number . ', ' . $s_house . ', ' . $s_floor . ', ' . $s_square;
?>
 
    <div class="container singleFlat">
        <h1><?php the_title(); ?></h1>
        <div class="row">
            <div class="col-sm-5 col-xs-12">
 
                <div class="gallery_tabs tabs">
 
                    <!--[ WITH FURNITURE ]-->
 
                        <div class="tabs__content active">
                            <div class="single-flat-slider with_furniture">
                                <?php if (isset($gallery_with_furniture)) : ?>
                                <?php foreach ($gallery_with_furniture as $item) { ?>
                                    <?php if (!empty($item)) { ?>
                                        <div class="single-flat-slider-item">
                                            <a class="open-slick-popup" href="#slickPopup">
                                                <img src="<?= $item ?>" alt="<?php echo $s_alt; ?>">
                                            </a>
/var/www/html/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/html/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/html/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 nginx/1.16.1
REQUEST_URI /ua/apartment/apartment-1-floor-532/
DATABASE_ENV_MYSQL_ROOT_PASSWORD root
DATABASE_ENV_MYSQL_DATABASE riverstone
PHP_MD5
DATABASE_ENV_MARIADB_VERSION 1:10.3.13+maria~bionic
PHP_URL https://www.php.net/get/php-7.3.9.tar.xz/from/this/mirror
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_ADDR database
SUPERVISOR_GROUP_NAME php-fpm
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_PROTO tcp
GPG_KEYS CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D
HOME /var/cache/nginx
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_PORT 3306
GEOIP2_MODULE_VERSION 3.2
DATABASE_ENV_MARIADB_MAJOR 10.3
DATABASE_ENV_GOSU_VERSION 1.10
TERM xterm
SUPERVISOR_SERVER_URL unix:///dev/shm/supervisor.sock
LUAJIT_INC /usr/include/luajit-2.1
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_PASSWORD riverstone
SHLVL 1
DATABASE_PORT_3306_TCP_PORT 3306
SUPERVISOR_ENABLED 1
fpm_conf /usr/local/etc/php-fpm.d/www.conf
PHP_CPPFLAGS -fstack-protector-strong -fpic -fpie -O2
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_GPG_KEYS 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB 177F4010FE56CA3336300305F1656F24C74CD1D8 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 4D1BB29D63D98E422B2113B19334A25F8507EFA5
PHP_VERSION 7.3.9
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_DATABASE riverstone
PHP_SHA256 4007f24a39822bef2805b75c625551d30be9eeed329d52eb0838fa5c1b91c1fd
PHPIZE_DEPS autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
LUA_MODULE_VERSION 0.10.14
LUAJIT_LIB /usr/lib
php_conf /usr/local/etc/php-fpm.conf
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_ROOT_PASSWORD root
PHP_LDFLAGS -Wl,-O1 -Wl,--hash-style=both -pie
DATABASE_ENV_GPG_KEYS 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB 177F4010FE56CA3336300305F1656F24C74CD1D8 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 4D1BB29D63D98E422B2113B19334A25F8507EFA5
DATABASE_PORT_3306_TCP_PROTO tcp
RIVERSTONE_PROD_RIVERSTONE_DB_1_NAME /cattle/riverstone-PROD-riverstone-db-1
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SUPERVISOR_PROCESS_NAME php-fpm
DEVEL_KIT_MODULE_VERSION 0.3.0
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MARIADB_MAJOR 10.3
DATABASE_PORT_3306_TCP_ADDR database
PHP_INI_DIR /usr/local/etc/php
LD_PRELOAD /usr/lib/preloadable_libiconv.so php
PHP_CFLAGS -fstack-protector-strong -fpic -fpie -O2
PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MARIADB_VERSION 1:10.3.13+maria~bionic
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_GOSU_VERSION 1.10
NGINX_VERSION 1.16.1
DATABASE_NAME /cattle/database
HOSTNAME 63ed904a7de1
DATABASE_PORT_3306_TCP tcp://database:3306
DATABASE_ENV_MYSQL_USER riverstone
PWD /var/www/html
DATABASE_ENV_MYSQL_PASSWORD riverstone
php_vars /usr/local/etc/php/conf.d/docker-vars.ini
DATABASE_PORT tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_USER riverstone
PHP_ASC_URL https://www.php.net/get/php-7.3.9.tar.xz.asc/from/this/mirror
USER nginx
HTTP_X_REAL_IP 172.70.45.166
HTTP_X_FORWARDED_SERVER traefik-traefik2-2
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 80
HTTP_X_FORWARDED_HOST riverstone.com.ua
HTTP_X_FORWARDED_FOR 3.238.174.50, 172.70.45.166
HTTP_IF_MODIFIED_SINCE Sat, 18 Jan 2020 02:56:41 GMT
HTTP_CF_VISITOR {\"scheme\":\"https\"}
HTTP_CF_REQUEST_ID 098e48158c00005e95f507a000000001
HTTP_CF_RAY 642a42cf4dfc5e95-IAD
HTTP_CF_IPCOUNTRY US
HTTP_CF_CONNECTING_IP 3.238.174.50
HTTP_CDN_LOOP cloudflare
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_HOST riverstone.com.ua
REDIRECT_STATUS 200
SERVER_NAME riverstone.com.ua
SERVER_PORT 443
SERVER_ADDR 10.42.82.104
REMOTE_PORT 55260
REMOTE_ADDR 10.42.62.201
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/html
DOCUMENT_URI /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
SCRIPT_FILENAME /var/www/html/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1618878594.6478
REQUEST_TIME 1618878594
argv Array ( )
argc 0
Key Value
DATABASE_ENV_MYSQL_ROOT_PASSWORD root
DATABASE_ENV_MYSQL_DATABASE riverstone
PHP_MD5
DATABASE_ENV_MARIADB_VERSION 1:10.3.13+maria~bionic
PHP_URL https://www.php.net/get/php-7.3.9.tar.xz/from/this/mirror
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_ADDR database
SUPERVISOR_GROUP_NAME php-fpm
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_PROTO tcp
GPG_KEYS CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D
HOME /var/cache/nginx
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP_PORT 3306
GEOIP2_MODULE_VERSION 3.2
DATABASE_ENV_MARIADB_MAJOR 10.3
DATABASE_ENV_GOSU_VERSION 1.10
TERM xterm
SUPERVISOR_SERVER_URL unix:///dev/shm/supervisor.sock
LUAJIT_INC /usr/include/luajit-2.1
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_PASSWORD riverstone
SHLVL 1
DATABASE_PORT_3306_TCP_PORT 3306
SUPERVISOR_ENABLED 1
fpm_conf /usr/local/etc/php-fpm.d/www.conf
PHP_CPPFLAGS -fstack-protector-strong -fpic -fpie -O2
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_GPG_KEYS 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB 177F4010FE56CA3336300305F1656F24C74CD1D8 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 4D1BB29D63D98E422B2113B19334A25F8507EFA5
PHP_VERSION 7.3.9
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_DATABASE riverstone
PHP_SHA256 4007f24a39822bef2805b75c625551d30be9eeed329d52eb0838fa5c1b91c1fd
PHPIZE_DEPS autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
LUA_MODULE_VERSION 0.10.14
LUAJIT_LIB /usr/lib
php_conf /usr/local/etc/php-fpm.conf
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT_3306_TCP tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_ROOT_PASSWORD root
PHP_LDFLAGS -Wl,-O1 -Wl,--hash-style=both -pie
DATABASE_ENV_GPG_KEYS 199369E5404BD5FC7D2FE43BCBCB082A1BB943DB 177F4010FE56CA3336300305F1656F24C74CD1D8 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 4D1BB29D63D98E422B2113B19334A25F8507EFA5
DATABASE_PORT_3306_TCP_PROTO tcp
RIVERSTONE_PROD_RIVERSTONE_DB_1_NAME /cattle/riverstone-PROD-riverstone-db-1
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SUPERVISOR_PROCESS_NAME php-fpm
DEVEL_KIT_MODULE_VERSION 0.3.0
RIVERSTONE_PROD_RIVERSTONE_DB_1_PORT tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MARIADB_MAJOR 10.3
DATABASE_PORT_3306_TCP_ADDR database
PHP_INI_DIR /usr/local/etc/php
LD_PRELOAD /usr/lib/preloadable_libiconv.so php
PHP_CFLAGS -fstack-protector-strong -fpic -fpie -O2
PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MARIADB_VERSION 1:10.3.13+maria~bionic
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_GOSU_VERSION 1.10
NGINX_VERSION 1.16.1
DATABASE_NAME /cattle/database
HOSTNAME 63ed904a7de1
DATABASE_PORT_3306_TCP tcp://database:3306
DATABASE_ENV_MYSQL_USER riverstone
PWD /var/www/html
DATABASE_ENV_MYSQL_PASSWORD riverstone
php_vars /usr/local/etc/php/conf.d/docker-vars.ini
DATABASE_PORT tcp://database:3306
RIVERSTONE_PROD_RIVERSTONE_DB_1_ENV_MYSQL_USER riverstone
PHP_ASC_URL https://www.php.net/get/php-7.3.9.tar.xz.asc/from/this/mirror
USER nginx
HTTP_X_REAL_IP 172.70.45.166
HTTP_X_FORWARDED_SERVER traefik-traefik2-2
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_PORT 80
HTTP_X_FORWARDED_HOST riverstone.com.ua
HTTP_X_FORWARDED_FOR 3.238.174.50, 172.70.45.166
HTTP_IF_MODIFIED_SINCE Sat, 18 Jan 2020 02:56:41 GMT
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CF_REQUEST_ID 098e48158c00005e95f507a000000001
HTTP_CF_RAY 642a42cf4dfc5e95-IAD
HTTP_CF_IPCOUNTRY US
HTTP_CF_CONNECTING_IP 3.238.174.50
HTTP_CDN_LOOP cloudflare
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_HOST riverstone.com.ua
REDIRECT_STATUS 200
SERVER_NAME riverstone.com.ua
SERVER_PORT 443
SERVER_ADDR 10.42.82.104
REMOTE_PORT 55260
REMOTE_ADDR 10.42.62.201
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/html
DOCUMENT_URI /index.php
REQUEST_URI /ua/apartment/apartment-1-floor-532/
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
SCRIPT_FILENAME /var/www/html/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1618878594.6478
REQUEST_TIME 1618878594
argv Array ( )
argc 0
0. Whoops\Handler\PrettyPageHandler