ErrorException (E_ERROR)
Undefined index: sidebar (View: /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/resources/views/single-whats-on.blade.php)
Previous exceptions
  • Undefined index: sidebar (0)
ErrorException thrown with message "Undefined index: sidebar (View: /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/resources/views/single-whats-on.blade.php)" Stacktrace: #14 ErrorException in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php:22 #13 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/PhpEngine.php:60 #12 ErrorException in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php:22 #11 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php:22 #10 require in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/filesystem/Filesystem.php:107 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/filesystem/Filesystem.php:108 #8 Illuminate\Filesystem\Filesystem:getRequire in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/CompilerEngine.php:61 #6 Illuminate\View\Engines\CompilerEngine:get in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php:139 #5 Illuminate\View\View:getContents in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php:122 #4 Illuminate\View\View:renderContents in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php:91 #3 Illuminate\View\View:render in /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/index.php:1 #2 include in /home/runcloud/webapps/lets-go-huddersfield/wp-includes/template-loader.php:106 #1 require_once in /home/runcloud/webapps/lets-go-huddersfield/wp-blog-header.php:19 #0 require in /home/runcloud/webapps/lets-go-huddersfield/index.php:17
14
ErrorException
/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php22
13
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
12
ErrorException
/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php22
11
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php22
10
require
/vendor/illuminate/filesystem/Filesystem.php107
9
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/illuminate/filesystem/Filesystem.php108
8
Illuminate\Filesystem\Filesystem getRequire
/vendor/illuminate/view/Engines/PhpEngine.php58
7
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php61
6
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php139
5
Illuminate\View\View getContents
/vendor/illuminate/view/View.php122
4
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php91
3
Illuminate\View\View render
/index.php1
2
include
/home/runcloud/webapps/lets-go-huddersfield/wp-includes/template-loader.php106
1
require_once
/home/runcloud/webapps/lets-go-huddersfield/wp-blog-header.php19
0
require
/home/runcloud/webapps/lets-go-huddersfield/index.php17
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <?php echo $__env->make('partials.hero-with-image', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
        <?php if( '' !== get_post()->post_content ): ?>
            <section data-viewport="detect" data-animate="fade">
                <div class="grid-container">
                    <div class="grid-x grid-margin-x">
                        <div class="medium-8 small-12 cell">
                            <?php if(function_exists('yoast_breadcrumb')): ?>
                                <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ) ?>
                            <?php endif; ?>
                            <?php the_content(); ?>
                            <hr class="mt4 mb3">
                            <a href="<?php echo site_url(); ?>/whats-on" class="text-link">Back To What's On</a>
                        </div>
                        <div class="cell auto hide-for-small-only">
                            <div class="vr"></div>
                        </div>
                        <?php $sidebar = $fields['sidebar'] ?>
                        <?php if($sidebar): ?>
                            <div class="cell large-3 medium-4 small-12 food-and-drink-sidebar">
                                <?php if($fields['event_date']): ?>
                                    <h5>Date</h5>
                                    <ul>
                                        <li><?php echo $fields['event_date']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php if($sidebar['location']): ?>
                                    <h5>Location</h5>
                                    <ul>
                                        <li><?php echo $sidebar['location']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php
                                    $category = strip_tags(get_the_term_list(get_the_id(), 'whats-on-categories', '', ', '));
                                ?>
                                <?php if($category): ?>
                                    <h5>Category</h5>
                                    <ul>
Arguments
  1. "Undefined index: sidebar (View: /home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/resources/views/single-whats-on.blade.php)"
    
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
        }
 
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <?php echo $__env->make('partials.hero-with-image', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
        <?php if( '' !== get_post()->post_content ): ?>
            <section data-viewport="detect" data-animate="fade">
                <div class="grid-container">
                    <div class="grid-x grid-margin-x">
                        <div class="medium-8 small-12 cell">
                            <?php if(function_exists('yoast_breadcrumb')): ?>
                                <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ) ?>
                            <?php endif; ?>
                            <?php the_content(); ?>
                            <hr class="mt4 mb3">
                            <a href="<?php echo site_url(); ?>/whats-on" class="text-link">Back To What's On</a>
                        </div>
                        <div class="cell auto hide-for-small-only">
                            <div class="vr"></div>
                        </div>
                        <?php $sidebar = $fields['sidebar'] ?>
                        <?php if($sidebar): ?>
                            <div class="cell large-3 medium-4 small-12 food-and-drink-sidebar">
                                <?php if($fields['event_date']): ?>
                                    <h5>Date</h5>
                                    <ul>
                                        <li><?php echo $fields['event_date']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php if($sidebar['location']): ?>
                                    <h5>Location</h5>
                                    <ul>
                                        <li><?php echo $sidebar['location']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php
                                    $category = strip_tags(get_the_term_list(get_the_id(), 'whats-on-categories', '', ', '));
                                ?>
                                <?php if($category): ?>
                                    <h5>Category</h5>
                                    <ul>
Arguments
  1. "Undefined index: sidebar"
    
Exception message: Undefined index: sidebar
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <?php echo $__env->make('partials.hero-with-image', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
        <?php if( '' !== get_post()->post_content ): ?>
            <section data-viewport="detect" data-animate="fade">
                <div class="grid-container">
                    <div class="grid-x grid-margin-x">
                        <div class="medium-8 small-12 cell">
                            <?php if(function_exists('yoast_breadcrumb')): ?>
                                <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ) ?>
                            <?php endif; ?>
                            <?php the_content(); ?>
                            <hr class="mt4 mb3">
                            <a href="<?php echo site_url(); ?>/whats-on" class="text-link">Back To What's On</a>
                        </div>
                        <div class="cell auto hide-for-small-only">
                            <div class="vr"></div>
                        </div>
                        <?php $sidebar = $fields['sidebar'] ?>
                        <?php if($sidebar): ?>
                            <div class="cell large-3 medium-4 small-12 food-and-drink-sidebar">
                                <?php if($fields['event_date']): ?>
                                    <h5>Date</h5>
                                    <ul>
                                        <li><?php echo $fields['event_date']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php if($sidebar['location']): ?>
                                    <h5>Location</h5>
                                    <ul>
                                        <li><?php echo $sidebar['location']; ?></li>
                                    </ul>
                                <?php endif; ?>
                                <?php
                                    $category = strip_tags(get_the_term_list(get_the_id(), 'whats-on-categories', '', ', '));
                                ?>
                                <?php if($category): ?>
                                    <h5>Category</h5>
                                    <ul>
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/filesystem/Filesystem.php
 
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
Arguments
  1. "/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/storage/framework/views/0e59a65148a66ecef545df8a258098aba51d1961.php"
    
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/filesystem/Filesystem.php
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/PhpEngine.php
    }
 
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/Engines/CompilerEngine.php
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    public function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/vendor/illuminate/view/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return array|string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? $callback($this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/index.php
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
/home/runcloud/webapps/lets-go-huddersfield/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;
}
 
Arguments
  1. "/home/runcloud/webapps/lets-go-huddersfield/wp-content/themes/lets-go-huddersfield/index.php"
    
/home/runcloud/webapps/lets-go-huddersfield/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';
 
}
 
Arguments
  1. "/home/runcloud/webapps/lets-go-huddersfield/wp-includes/template-loader.php"
    
/home/runcloud/webapps/lets-go-huddersfield/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';
 
Arguments
  1. "/home/runcloud/webapps/lets-go-huddersfield/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.55 (Unix) OpenSSL/1.1.1f"
REQUEST_URI
"/whats-on/honley-show/"
USER
"runcloud"
HOME
"/home/runcloud"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/whats-on/honley-show/"
REMOTE_PORT
"41440"
SCRIPT_FILENAME
"/home/runcloud/webapps/lets-go-huddersfield/index.php"
SERVER_ADMIN
"you@example.com"
CONTEXT_DOCUMENT_ROOT
"/home/runcloud/webapps/lets-go-huddersfield/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/runcloud/webapps/lets-go-huddersfield/"
REMOTE_ADDR
"3.236.209.138"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"huddersfield.org"
SERVER_SIGNATURE
""
LD_LIBRARY_PATH
"/RunCloud/Packages/apache2-rc/lib"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
HTTP_ACCEPT_ENCODING
"br,gzip"
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/)"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"3.236.209.138"
HTTP_X_SERVER_ADDR
"172.31.44.209"
HTTP_HOST
"huddersfield.org"
HTTP_AUTHORIZATION
""
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1680095655.1858
REQUEST_TIME
1680095655
empty
0. Whoops\Handler\PrettyPageHandler