Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined offset: 0 Whoops\Exception\ErrorException thrown with message "Undefined offset: 0" Stacktrace: #9 Whoops\Exception\ErrorException in /data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/src/Content/Schedule.php:136 #8 Whoops\Run:handleError in /data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/src/Content/Schedule.php:136 #7 Samurai\Wp\Astro\Astro24\Content\Schedule:isHostShowLive in /data/va/versions/24astro.tv/2.0.0/vendor/illuminate/support/Facades/Facade.php:237 #6 Illuminate\Support\Facades\Facade:__callStatic in /data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/partials/hosts/profile.php:37 #5 require in /data/va/versions/24astro.tv/2.0.0/public/app/mu-plugins/sd-wordpress-framework/src/View/View.php:100 #4 Samurai\Wp\View\View:partial in /data/va/versions/24astro.tv/2.0.0/public/app/mu-plugins/sd-wordpress-framework/src/helpers.php:85 #3 sd_partial in /data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/single-sd-hosts.php:19 #2 include in /data/va/versions/24astro.tv/2.0.0/public/wp/wp-includes/template-loader.php:78 #1 require_once in /data/va/versions/24astro.tv/2.0.0/public/wp/wp-blog-header.php:19 #0 require in /data/va/versions/24astro.tv/2.0.0/public/index.php:4
Stack frames (10)
9
Whoops\Exception\ErrorException
/public/app/themes/24astro/src/Content/Schedule.php136
8
Whoops\Run handleError
/public/app/themes/24astro/src/Content/Schedule.php136
7
Samurai\Wp\Astro\Astro24\Content\Schedule isHostShowLive
/vendor/illuminate/support/Facades/Facade.php237
6
Illuminate\Support\Facades\Facade __callStatic
/public/app/themes/24astro/partials/hosts/profile.php37
5
require
/public/app/mu-plugins/sd-wordpress-framework/src/View/View.php100
4
Samurai\Wp\View\View partial
/public/app/mu-plugins/sd-wordpress-framework/src/helpers.php85
3
sd_partial
/public/app/themes/24astro/single-sd-hosts.php19
2
include
/public/wp/wp-includes/template-loader.php78
1
require_once
/public/wp/wp-blog-header.php19
0
require
/public/index.php4
/data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/src/Content/Schedule.php
            $host = $show['host'][0];
 
            if (!empty($host)) {
                if ($host->ID != $host_id) {
                    unset($schedule[$index]);
                }
            }
        }
 
        return $schedule;
    }
 
    /**
     * Check if the host has a live show
     * @param $host_id
     * @return bool
     */
    public function isHostShowLive($host_id) {
        $show = $this->getCurrentLiveShow();
        $show = $show[0];
        $show_host = $show['host'][0];
 
        if ($show_host->ID == $host_id) {
            return true;
        }
 
        return false;
    }
 
    /**
     * Returns all scheduled TV Show hosts
     * @return array
     */
    public function getScheduledShowHosts() {
        $schedule = $this->getSchedule();
        $hosts = [];
        foreach ($schedule as $event) {
            if ($host = array_get($event, 'host', '')) {
                $hosts[] = $host[0];
 
/data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/src/Content/Schedule.php
            $host = $show['host'][0];
 
            if (!empty($host)) {
                if ($host->ID != $host_id) {
                    unset($schedule[$index]);
                }
            }
        }
 
        return $schedule;
    }
 
    /**
     * Check if the host has a live show
     * @param $host_id
     * @return bool
     */
    public function isHostShowLive($host_id) {
        $show = $this->getCurrentLiveShow();
        $show = $show[0];
        $show_host = $show['host'][0];
 
        if ($show_host->ID == $host_id) {
            return true;
        }
 
        return false;
    }
 
    /**
     * Returns all scheduled TV Show hosts
     * @return array
     */
    public function getScheduledShowHosts() {
        $schedule = $this->getSchedule();
        $hosts = [];
        foreach ($schedule as $event) {
            if ($host = array_get($event, 'host', '')) {
                $hosts[] = $host[0];
 
/data/va/versions/24astro.tv/2.0.0/vendor/illuminate/support/Facades/Facade.php
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        return $instance->$method(...$args);
    }
}
 
/data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/partials/hosts/profile.php
        <?php echo the_title() ?>
    </h1>
 
    <div class="profile-content">
 
        <div class="profile-img">
            <div class="img" style="background-image:url('<?php echo $img_url; ?>')"></div>
 
            <div class="social-share">
                <?php
                if ( shortcode_exists( 'sd-widget' ) ) {
                    echo do_shortcode('[sd-widget id="ssba_widget-2"]');
                }
                ?>
            </div>
 
        </div>
 
        <?php
        $live_show = \SD\Schedule::isHostShowLive(get_the_ID());
        $schedule = \SD\Schedule::getHostShows(get_the_ID());
 
        if (!empty($schedule)) {
        ?>
        <div class="profile-next-show-details">
                <p>
                    <?php _e('Sljedeći puta u emisiji:', SD_TEXT_DOMAIN); ?>
                </p>
                <?php
                $live_show = \SD\Schedule::isHostShowLive(get_the_ID());
                $schedule = \SD\Schedule::getHostShows(get_the_ID());
                if ($live_show) {
                    ?>
                        <a class="btn btn-play-icon" href="<?php echo getPagePermalinkByTemplate('template-sd-live-stream.php') ?>">
                            <?php _e('UPRAVO SADA, POGLEDAJ', SD_TEXT_DOMAIN); ?>
                        </a>
                    <?php
                } else {
                    if (!empty($schedule)) {
                        // Use the first event
/data/va/versions/24astro.tv/2.0.0/public/app/mu-plugins/sd-wordpress-framework/src/View/View.php
        do_action("get_template_part_{$path}", $path, $path);
 
        // Add paths
        if ($path) $partials[] = "partials/{$path}.php";
        $partials[] = "partials/partial.php";
 
        // And find template
        $partial  = $this->findPartial($partials);
 
        if ($partial)
        {
            // Get data
            $data = $this->data($data);
 
            // Extract the data
            if (is_array($wp_query->query_vars)) extract( $wp_query->query_vars, EXTR_SKIP);
            if (is_array($data)) extract($data);
 
            // And require the partial
            require($partial);
        }
    }
 
    /**
     * Render a partial
     *
     * @param  string $name
     * @param  array  $data
     * @return string
     */
    public function widgetPartial($path, $data)
    {
        $path = '../widgets/' . $path;
 
        return $this->partial($path, $data);
    }
 
    /**
     * Simply return all data (merged with shared)
     *
/data/va/versions/24astro.tv/2.0.0/public/app/mu-plugins/sd-wordpress-framework/src/helpers.php
     *
     * @param  string $path
     * @return string
     */
    function sd_parent_asset($path = null)
    {
        return SD\Theme::parentUrl($path);
    }
}
 
if (!function_exists('sd_partial')) {
    /**
     * Include partial
     *
     * @param  string $path
     * @return string
     */
    function sd_partial($path = null, $data = [])
    {
        return sd_app('samurai.wp.view')->partial($path, $data);
    }
}
 
if (!function_exists('sd_widget_partial')) {
    /**
     * Include partial
     *
     * @param  string $path
     * @return string
     */
    function sd_widget_partial($path = null, $data = [])
    {
        return sd_app('samurai.wp.view')->widgetPartial($path, $data);
    }
}
 
if (!function_exists('sd_header')) {
    /**
     * Build URL's
     *
/data/va/versions/24astro.tv/2.0.0/public/app/themes/24astro/single-sd-hosts.php
<?php
$templateColor = 'green';
sd_header();
?>
 
    <main class="main theme-<?php echo $templateColor; ?>">
 
        <div class="container">
 
            <div class="spacer"></div>
 
            <div class="row">
 
                <div class="col-md-8">
                    <a href="<?php echo getPagePermalinkByTemplate('template-sd-live-stream.php') ?>">
                        <?php _e('TV Show', SD_TEXT_DOMAIN); ?>
                    </a> / <?php the_title() ?>
 
                    <?php sd_partial('hosts/profile'); ?>
 
                    <div class="spacer"></div>
 
                    <?php sd_partial('hosts/profile_chat_sms'); ?>
 
                    <div class="spacer"></div>
 
                    <?php sd_partial('hosts/gallery') ?>
 
                    <div class="spacer"></div>
 
                    <?php comments_template('', true); ?>
 
                </div>
 
                <div class="col-md-4">
                    <?php sd_widget_area('desktop-host-sidebar') ?>
                    <div class="spacer"></div>
 
                </div>
 
/data/va/versions/24astro.tv/2.0.0/public/wp/wp-includes/template-loader.php
    elseif ( is_single() && $template = get_single_template() ) :
    elseif ( is_page() && $template = get_page_template() ) :
    elseif ( is_singular() && $template = get_singular_template() ) :
    elseif ( is_category() && $template = get_category_template() ) :
    elseif ( is_tag() && $template = get_tag_template() ) :
    elseif ( is_author() && $template = get_author_template() ) :
    elseif ( is_date() && $template = get_date_template() ) :
    elseif ( is_archive() && $template = get_archive_template() ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
/data/va/versions/24astro.tv/2.0.0/public/wp/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( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/data/va/versions/24astro.tv/2.0.0/public/index.php
<?php
// WordPress view bootstrapper
define('WP_USE_THEMES', true);
require(dirname( __FILE__ ) . '/wp/wp-blog-header.php');
 

Environment & details:

empty
empty
empty
empty
Key Value
sduseragenttype desktop
sdurCountry
Key Value
SERVER_SOFTWARE nginx/1.14.2
REQUEST_URI /voditelji/dennis-3/
USER nginx
HOME /nonexistent
HTTP_X_FORWARDED_FOR 3.227.249.234
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST 24astrotv.rtn.vastest.us
HTTP_IF_MODIFIED_SINCE Sun, 25 Aug 2019 09:45:19 PDT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
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/)
SCRIPT_FILENAME /data/va/websites/24astrotv.rtn.vastest.us/public/index.php
WEB_FRAMEWORK /data/webcore2
REDIRECT_STATUS 200
SERVER_NAME 24astrotv.rtn.vastest.us
SERVER_PORT 80
SERVER_ADDR 10.70.0.112
REMOTE_PORT 55360
REMOTE_ADDR 10.70.0.99
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/va/websites/24astrotv.rtn.vastest.us/public
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 1571241567.4985
REQUEST_TIME 1571241567
HTTPS on
WP_ENV rtn
DB_NAME rtn_24astrotvrt
DB_USER rtn_24astrotvrt
DB_PASSWORD EvUCYCezz0Y
DB_HOST 10.70.0.100
PHP_EXECUTABLE php7.3
SD_CAMS_URL http://voicecro3.nth.ch:6600/cams/v1
SD_CAMS_SERVICE_ID 27
SD_CAMS_USERNAME 24astrowebn
SD_CAMS_PASSWORD 2k3kkl04ej
SD_CAMS_WEBSOCKET wss://wssv2sc1.vasendpoint.com/agents
SD_NEWSLETTER_SUBSCRIBE_ACTION http://newsletter.digitalfbapps.com/subscribe
SD_NEWSLETTER_SUBSCRIBE_LIST_ID a9
SD_LOG_HANDLER graylog
SD_GRAYLOG_HOST web-log1.int.ch
SD_GRAYLOG_PORT 12201
SD_GRAYLOG_FACILITY 24astrotv
Key Value
WP_ENV rtn
DB_NAME rtn_24astrotvrt
DB_USER rtn_24astrotvrt
DB_PASSWORD EvUCYCezz0Y
DB_HOST 10.70.0.100
PHP_EXECUTABLE php7.3
SD_CAMS_URL http://voicecro3.nth.ch:6600/cams/v1
SD_CAMS_SERVICE_ID 27
SD_CAMS_USERNAME 24astrowebn
SD_CAMS_PASSWORD 2k3kkl04ej
SD_CAMS_WEBSOCKET wss://wssv2sc1.vasendpoint.com/agents
SD_NEWSLETTER_SUBSCRIBE_ACTION http://newsletter.digitalfbapps.com/subscribe
SD_NEWSLETTER_SUBSCRIBE_LIST_ID a9
SD_LOG_HANDLER graylog
SD_GRAYLOG_HOST web-log1.int.ch
SD_GRAYLOG_PORT 12201
SD_GRAYLOG_FACILITY 24astrotv
0. Whoops\Handler\PrettyPageHandler