ErrorException (E_ERROR)
Undefined index: theme (View: /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php)
Previous exceptions
  • Undefined index: theme (0)
ErrorException thrown with message "Undefined index: theme (View: /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php)" Stacktrace: #14 ErrorException in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php:3 #13 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/Engines/PhpEngine.php:60 #12 ErrorException in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php:3 #11 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php:3 #10 require in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/filesystem/Filesystem.php:107 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/filesystem/Filesystem.php:108 #8 Illuminate\Filesystem\Filesystem:getRequire in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/Engines/CompilerEngine.php:61 #6 Illuminate\View\Engines\CompilerEngine:get in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/View.php:139 #5 Illuminate\View\View:getContents in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/View.php:122 #4 Illuminate\View\View:renderContents in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/vendor/illuminate/view/View.php:91 #3 Illuminate\View\View:render in /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/index.php:1 #2 include in /home/runcloud/webapps/born-criminal/wp-includes/template-loader.php:106 #1 require_once in /home/runcloud/webapps/born-criminal/wp-blog-header.php:19 #0 require in /home/runcloud/webapps/born-criminal/index.php:17
14
ErrorException
/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php3
13
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
12
ErrorException
/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php3
11
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php3
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/born-criminal/wp-includes/template-loader.php106
1
require_once
/home/runcloud/webapps/born-criminal/wp-blog-header.php19
0
require
/home/runcloud/webapps/born-criminal/index.php17
/home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php
<?php $__env->startSection('content'); ?>
 
    <div class="hero single-post-hero <?php if($global['theme']): ?> <?php echo $global['theme']; ?><?php endif; ?>">
        <div class="caption single-post-caption">
            <div class="grid-container">
                <div class="grid-x grid-margin-x align-middle align-center">
                    <div class="large-10 small-12 cell text-center">
                        <h1 class="h2"><?php echo $title; ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <div class="post-content">
            <?php if( '' !== get_post()->post_content ): ?>
                <section>
                    <div class="grid-container mt4">
                        <div class="grid-x grid-margin-x align-right">
                            <div class="large-8 medium-9 small-12 cell">
                                <h5 class="secondary-text"><?php echo e(get_the_date('d F Y', get_the_ID())); ?></h5>
                                <?php the_content(); ?>
                                <hr class="mt4">
                                <a href="<?php echo get_permalink(get_option('page_for_posts')); ?>" class="text-link-back">Back to <?php echo get_the_title(get_option('page_for_posts')); ?></a>
                            </div>
                        </div>
                    </div>
                </section>
            <?php endif; ?>
        </div>
        
        <?php echo $__env->make('partials.flexible-content', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
      <?php endwhile; ?>
 
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php ENDPATH**/ ?>
Arguments
  1. "Undefined index: theme (View: /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php)"
    
/home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php
<?php $__env->startSection('content'); ?>
 
    <div class="hero single-post-hero <?php if($global['theme']): ?> <?php echo $global['theme']; ?><?php endif; ?>">
        <div class="caption single-post-caption">
            <div class="grid-container">
                <div class="grid-x grid-margin-x align-middle align-center">
                    <div class="large-10 small-12 cell text-center">
                        <h1 class="h2"><?php echo $title; ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <div class="post-content">
            <?php if( '' !== get_post()->post_content ): ?>
                <section>
                    <div class="grid-container mt4">
                        <div class="grid-x grid-margin-x align-right">
                            <div class="large-8 medium-9 small-12 cell">
                                <h5 class="secondary-text"><?php echo e(get_the_date('d F Y', get_the_ID())); ?></h5>
                                <?php the_content(); ?>
                                <hr class="mt4">
                                <a href="<?php echo get_permalink(get_option('page_for_posts')); ?>" class="text-link-back">Back to <?php echo get_the_title(get_option('page_for_posts')); ?></a>
                            </div>
                        </div>
                    </div>
                </section>
            <?php endif; ?>
        </div>
        
        <?php echo $__env->make('partials.flexible-content', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
      <?php endwhile; ?>
 
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php ENDPATH**/ ?>
Arguments
  1. "Undefined index: theme"
    
Exception message: Undefined index: theme
/home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php
<?php $__env->startSection('content'); ?>
 
    <div class="hero single-post-hero <?php if($global['theme']): ?> <?php echo $global['theme']; ?><?php endif; ?>">
        <div class="caption single-post-caption">
            <div class="grid-container">
                <div class="grid-x grid-margin-x align-middle align-center">
                    <div class="large-10 small-12 cell text-center">
                        <h1 class="h2"><?php echo $title; ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <?php while(have_posts()): ?> <?php the_post() ?>
 
        <div class="post-content">
            <?php if( '' !== get_post()->post_content ): ?>
                <section>
                    <div class="grid-container mt4">
                        <div class="grid-x grid-margin-x align-right">
                            <div class="large-8 medium-9 small-12 cell">
                                <h5 class="secondary-text"><?php echo e(get_the_date('d F Y', get_the_ID())); ?></h5>
                                <?php the_content(); ?>
                                <hr class="mt4">
                                <a href="<?php echo get_permalink(get_option('page_for_posts')); ?>" class="text-link-back">Back to <?php echo get_the_title(get_option('page_for_posts')); ?></a>
                            </div>
                        </div>
                    </div>
                </section>
            <?php endif; ?>
        </div>
        
        <?php echo $__env->make('partials.flexible-content', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
      <?php endwhile; ?>
 
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/resources/views/single.blade.php ENDPATH**/ ?>
/home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/storage/framework/views/d90d6941d1e867ae23960b471529f9a6a173448e.php"
    
/home/runcloud/webapps/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/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/born-criminal/wp-content/themes/born-criminal/index.php
<?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
/home/runcloud/webapps/born-criminal/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/born-criminal/wp-content/themes/born-criminal/index.php"
    
/home/runcloud/webapps/born-criminal/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/born-criminal/wp-includes/template-loader.php"
    
/home/runcloud/webapps/born-criminal/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/born-criminal/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.58 (Unix) OpenSSL/1.1.1f"
REQUEST_URI
"/2022/10/hello-world/"
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
"/2022/10/hello-world/"
REMOTE_PORT
"60146"
SCRIPT_FILENAME
"/home/runcloud/webapps/born-criminal/index.php"
SERVER_ADMIN
"you@example.com"
CONTEXT_DOCUMENT_ROOT
"/home/runcloud/webapps/born-criminal/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/runcloud/webapps/born-criminal/"
REMOTE_ADDR
"3.239.9.151"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"borncriminal.com"
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.239.9.151"
HTTP_X_SERVER_ADDR
"172.26.1.85"
HTTP_HOST
"borncriminal.com"
HTTP_AUTHORIZATION
""
HTTPS
"on"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1709627858.5074
REQUEST_TIME
1709627858
empty
0. Whoops\Handler\PrettyPageHandler