Whoops! There was an error.
Illuminate \ View \ ViewException (E_ERROR)
Undefined array key "post_type" (View: /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/resources/views/single.blade.php)
Previous exceptions
  • Undefined array key "post_type" (0)
Illuminate\View\ViewException thrown with message "Undefined array key "post_type" (View: /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/resources/views/single.blade.php)" Stacktrace: #25 Illuminate\View\ViewException in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php:138 #24 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Engines/PhpEngine.php:60 #23 ErrorException in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php:138 #22 Illuminate\Foundation\Bootstrap\HandleExceptions:handleError in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php:138 #21 App\View\Composers\Post:postType in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php:34 #20 App\View\Composers\Post:with in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:70 #19 Roots\Acorn\View\Composer:merge in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:59 #18 Roots\Acorn\View\Composer:compose in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php:124 #17 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php:162 #16 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/events/Dispatcher.php:401 #15 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/events/Dispatcher.php:249 #14 Illuminate\Events\Dispatcher:dispatch in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php:177 #13 Illuminate\View\Factory:callComposer in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php:120 #12 Illuminate\View\View:renderContents in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php:91 #11 Illuminate\View\View:render in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/storage/framework/views/1f64ab6fa66f817fe787a0e2285649e9a5ed257f.php:3 #10 require in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/filesystem/Filesystem.php:107 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/filesystem/Filesystem.php:108 #8 Illuminate\Filesystem\Filesystem:getRequire in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Engines/CompilerEngine.php:61 #6 Illuminate\View\Engines\CompilerEngine:get in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php:139 #5 Illuminate\View\View:getContents in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php:122 #4 Illuminate\View\View:renderContents in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php:91 #3 Illuminate\View\View:render in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/index.php:17 #2 include in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-includes/template-loader.php:106 #1 require_once in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-blog-header.php:19 #0 require in /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/index.php:6
25
Illuminate\View\ViewException
/app/View/Composers/Post.php138
24
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
23
ErrorException
/app/View/Composers/Post.php138
22
Illuminate\Foundation\Bootstrap\HandleExceptions handleError
/app/View/Composers/Post.php138
21
App\View\Composers\Post postType
/app/View/Composers/Post.php34
20
App\View\Composers\Post with
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php70
19
Roots\Acorn\View\Composer merge
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php59
18
Roots\Acorn\View\Composer compose
/vendor/illuminate/view/Concerns/ManagesEvents.php124
17
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/illuminate/view/Concerns/ManagesEvents.php162
16
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/illuminate/events/Dispatcher.php401
15
Illuminate\Events\Dispatcher Illuminate\Events\{closure}
/vendor/illuminate/events/Dispatcher.php249
14
Illuminate\Events\Dispatcher dispatch
/vendor/illuminate/view/Concerns/ManagesEvents.php177
13
Illuminate\View\Factory callComposer
/vendor/illuminate/view/View.php120
12
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php91
11
Illuminate\View\View render
/storage/framework/views/1f64ab6fa66f817fe787a0e2285649e9a5ed257f.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.php17
2
include
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-includes/template-loader.php106
1
require_once
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-blog-header.php19
0
require
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/index.php6
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php
        if (is_search()) {
            return sprintf(
            /* translators: %s is replaced with the search query */
                __('Search Results for %s', 'sage'),
                get_search_query()
            );
        }
 
        if (is_404()) {
            return __('Not Found', 'sage');
        }
 
        return get_the_title();
    }
 
 
    public function postType()
    {
        global $wp_query;
        return $wp_query->query['post_type'];
    }
}
 
Arguments
  1. "Undefined array key "post_type" (View: /home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/resources/views/single.blade.php)"
    
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php
        if (is_search()) {
            return sprintf(
            /* translators: %s is replaced with the search query */
                __('Search Results for %s', 'sage'),
                get_search_query()
            );
        }
 
        if (is_404()) {
            return __('Not Found', 'sage');
        }
 
        return get_the_title();
    }
 
 
    public function postType()
    {
        global $wp_query;
        return $wp_query->query['post_type'];
    }
}
 
Arguments
  1. "Undefined array key "post_type""
    
Exception message: Undefined array key "post_type"
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php
        if (is_search()) {
            return sprintf(
            /* translators: %s is replaced with the search query */
                __('Search Results for %s', 'sage'),
                get_search_query()
            );
        }
 
        if (is_404()) {
            return __('Not Found', 'sage');
        }
 
        return get_the_title();
    }
 
 
    public function postType()
    {
        global $wp_query;
        return $wp_query->query['post_type'];
    }
}
 
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/app/View/Composers/Post.php
     */
    protected static $views = [
        'partials.page-header',
        'partials.single.content',
        'partials.single.content-*',
    ];
 
    /**
     * Data to be passed to view before rendering, but after merging.
     * @return array
     */
    public function with()
    {
        return [
            'description' => $this->description(),
            'featuredImage' => $this->featuredImage(),
            'featuredPosts' => $this->featuredPosts(),
            'title' => $this->title(),
            'contents' => $this->contents(),
            'postType' => $this->postType(),
        ];
    }
 
    /**
     * Returns the post excerpt for a post, description for terms and acf based description for archives.
     * @return string
     */
    public function description()
    {
        if (is_archive()) {
            $type = get_queried_object()->name;
            $description = get_field($type . '_description', 'options');
 
            if ($description) {
                return $description;
            }
        }
 
        return get_the_excerpt();
    }
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php
     * @param  View $view
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * Data to be merged and passed to the view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        return array_merge(
            $this->with(),
            $this->view->getData(),
            $this->override()
        );
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
     */
    protected function with()
    {
        return [];
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
     */
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php
            return static::$views;
        }
 
        $view = array_slice(explode('\\', static::class), 3);
        $view = array_map([Str::class, 'snake'], $view, array_fill(0, count($view), '-'));
        return implode('/', $view);
    }
 
    /**
     * Compose the view before rendering.
     *
     * @param  View $view
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * Data to be merged and passed to the view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        return array_merge(
            $this->with(),
            $this->view->getData(),
            $this->override()
        );
    }
 
    /**
     * Data to be passed to view before rendering
     *
     * @return array
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php
 
        return $callback;
    }
 
    /**
     * Build a class based container callback Closure.
     *
     * @param  string  $class
     * @param  string  $prefix
     * @return \Closure
     */
    protected function buildClassEventCallback($class, $prefix)
    {
        [$class, $method] = $this->parseClassEvent($class, $prefix);
 
        // Once we have the class and method name, we can build the Closure to resolve
        // the instance out of the IoC container and call the method on it with the
        // given arguments that are passed to the Closure as the composer's data.
        return function () use ($class, $method) {
            return $this->container->make($class)->{$method}(...func_get_args());
        };
    }
 
    /**
     * Parse a class based composer name.
     *
     * @param  string  $class
     * @param  string  $prefix
     * @return array
     */
    protected function parseClassEvent($class, $prefix)
    {
        return Str::parseCallback($class, $this->classEventMethodForPrefix($prefix));
    }
 
    /**
     * Determine the class event method based on the given prefix.
     *
     * @param  string  $prefix
     * @return string
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php
     * @param  string  $prefix
     * @return string
     */
    protected function classEventMethodForPrefix($prefix)
    {
        return Str::contains($prefix, 'composing') ? 'compose' : 'create';
    }
 
    /**
     * Add a listener to the event dispatcher.
     *
     * @param  string  $name
     * @param  \Closure  $callback
     * @return void
     */
    protected function addEventListener($name, $callback)
    {
        if (Str::contains($name, '*')) {
            $callback = function ($name, array $data) use ($callback) {
                return $callback($data[0]);
            };
        }
 
        $this->events->listen($name, $callback);
    }
 
    /**
     * Call the composer for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callComposer(ViewContract $view)
    {
        $this->events->dispatch('composing: '.$view->name(), [$view]);
    }
 
    /**
     * Call the creator for a given view.
     *
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/events/Dispatcher.php
    /**
     * Register an event listener with the dispatcher.
     *
     * @param  \Closure|string|array  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function makeListener($listener, $wildcard = false)
    {
        if (is_string($listener)) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        if (is_array($listener) && isset($listener[0]) && is_string($listener[0])) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return $listener($event, $payload);
            }
 
            return $listener(...array_values($payload));
        };
    }
 
    /**
     * Create a class based listener using the IoC container.
     *
     * @param  string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function createClassListener($listener, $wildcard = false)
    {
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return call_user_func($this->createClassCallable($listener), $event, $payload);
            }
 
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/events/Dispatcher.php
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        [$event, $payload] = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
 
            // If a response is returned from the listener and event halting is enabled
            // we will just return this response, and not call the rest of the event
            // listeners. Otherwise we will add the response on the response list.
            if ($halt && ! is_null($response)) {
                return $response;
            }
 
            // If a boolean false is returned from a listener, we will stop propagating
            // the event to any further listeners down in the chain, else we keep on
            // looping through the listeners and firing every one in our sequence.
            if ($response === false) {
                break;
            }
 
            $responses[] = $response;
        }
 
        return $halt ? null : $responses;
    }
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/Concerns/ManagesEvents.php
    protected function addEventListener($name, $callback)
    {
        if (Str::contains($name, '*')) {
            $callback = function ($name, array $data) use ($callback) {
                return $callback($data[0]);
            };
        }
 
        $this->events->listen($name, $callback);
    }
 
    /**
     * Call the composer for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callComposer(ViewContract $view)
    {
        $this->events->dispatch('composing: '.$view->name(), [$view]);
    }
 
    /**
     * Call the creator for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callCreator(ViewContract $view)
    {
        $this->events->dispatch('creating: '.$view->name(), [$view]);
    }
}
 
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/vendor/illuminate/view/View.php
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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 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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/storage/framework/views/1f64ab6fa66f817fe787a0e2285649e9a5ed257f.php
<?php $__env->startSection('content'); ?>
    <?php while(have_posts()): ?> <?php (the_post()); ?>
        <?php echo $__env->first(['partials.single.content-single-' . get_post_type(), 'partials.single.content-single'], \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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/resources/views/single.blade.php ENDPATH**/ ?>
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
Arguments
  1. "/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/storage/framework/views/1f64ab6fa66f817fe787a0e2285649e9a5ed257f.php"
    
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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 ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/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 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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/index.php
<!doctype html>
<html <?php language_attributes(); ?>>
 
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php wp_head(); ?>
    
</head>
 
<body <?php body_class(); ?>>
    <?php wp_body_open(); ?>
    <?php do_action('get_header'); ?>
 
    <div class="app" role="main">
        <?php echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render(); ?>
    </div>
 
    <?php do_action('get_footer'); ?>
    <?php wp_footer(); ?>
</body>
 
</html>
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/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/uleb-demo/releases/uleb.lademo.be/1699459782/web/app/themes/cherrypulp/index.php"
    
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/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 __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-includes/template-loader.php"
    
/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/index.php
<?php
/**
 * WordPress View Bootstrapper
 */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
 
Arguments
  1. "/home/uleb-demo/releases/uleb.lademo.be/1699459782/web/wp/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.20.1"
REQUEST_URI
"/hello-world/"
USER
"uleb-demo"
HOME
"/home/uleb-demo"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"uleb.lademo.be"
REDIRECT_STATUS
"200"
HTTPS
"on"
SERVER_NAME
"uleb.lademo.be"
SERVER_PORT
"443"
SERVER_ADDR
"164.92.148.120"
REMOTE_PORT
"50924"
REMOTE_ADDR
"18.191.88.249"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/home/uleb-demo/uleb.lademo.be/web"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"/home/uleb-demo/uleb.lademo.be/web/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1714055170.6984
REQUEST_TIME
1714055170
DB_NAME
"uleb_demo"
DB_USER
"uleb_demo"
DB_PASSWORD
"********************"
DB_HOST
"localhost"
WP_ENV
"development"
WP_HOME
"https://uleb.lademo.be"
WP_SITEURL
"https://uleb.lademo.be/wp"
WP_TITLE
"A website made with love"
WP_USER
"private"
WP_PASSWORD
"strong_password"
WP_EMAIL
"private@cherrypulp.com"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
THEME_NAME
"cherrypulp"
APP_SUB_DOMAIN
"uleb"
APP_NAME
"uleb"
DLAB_NETWORK
"cherrylab"
DLAB_DOMAIN
"cherrylab.test"
Key Value
DB_NAME
"uleb_demo"
DB_USER
"uleb_demo"
DB_PASSWORD
"********************"
DB_HOST
"localhost"
WP_ENV
"development"
WP_HOME
"https://uleb.lademo.be"
WP_SITEURL
"https://uleb.lademo.be/wp"
WP_TITLE
"A website made with love"
WP_USER
"private"
WP_PASSWORD
"strong_password"
WP_EMAIL
"private@cherrypulp.com"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
THEME_NAME
"cherrypulp"
APP_SUB_DOMAIN
"uleb"
APP_NAME
"uleb"
DLAB_NETWORK
"cherrylab"
DLAB_DOMAIN
"cherrylab.test"
0. Whoops\Handler\PrettyPageHandler