Illuminate \ View \ ViewException (E_ERROR)
Undefined array key 0 (View: /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/resources/views/single.blade.php)
Previous exceptions
  • Undefined array key 0 (2)
Illuminate\View\ViewException thrown with message "Undefined array key 0 (View: /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/resources/views/single.blade.php)" Stacktrace: #26 Illuminate\View\ViewException in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php:120 #25 Illuminate\View\Engines\CompilerEngine:handleViewException in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Engines/PhpEngine.php:60 #24 Whoops\Exception\ErrorException in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php:120 #23 Whoops\Run:handleError in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php:120 #22 App\View\Composers\Post:pinnedPost in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php:33 #21 App\View\Composers\Post:override in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:93 #20 Roots\Acorn\View\Composer:merge in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:83 #19 Roots\Acorn\View\Composer:compose in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Concerns/ManagesEvents.php:124 #18 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Concerns/ManagesEvents.php:162 #17 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/events/Dispatcher.php:455 #16 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/events/Dispatcher.php:286 #15 Illuminate\Events\Dispatcher:invokeListeners in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/events/Dispatcher.php:266 #14 Illuminate\Events\Dispatcher:dispatch in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Concerns/ManagesEvents.php:177 #13 Illuminate\View\Factory:callComposer in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php:188 #12 Illuminate\View\View:renderContents in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php:159 #11 Illuminate\View\View:render in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/cache/acorn/framework/views/411ae967962dd4c92400836522dac4dc.php:3 #10 require in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/filesystem/Filesystem.php:123 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/filesystem/Filesystem.php:124 #8 Illuminate\Filesystem\Filesystem:getRequire in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Engines/CompilerEngine.php:72 #6 Illuminate\View\Engines\CompilerEngine:get in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php:207 #5 Illuminate\View\View:getContents in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php:190 #4 Illuminate\View\View:renderContents in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php:159 #3 Illuminate\View\View:render in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/index.php:3 #2 include in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/index.php:17
Stack frames (27)
26
Illuminate\View\ViewException
/app/View/Composers/Post.php120
25
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
24
Whoops\Exception\ErrorException
/app/View/Composers/Post.php120
23
Whoops\Run handleError
/app/View/Composers/Post.php120
22
App\View\Composers\Post pinnedPost
/app/View/Composers/Post.php33
21
App\View\Composers\Post override
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php93
20
Roots\Acorn\View\Composer merge
/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php83
19
Roots\Acorn\View\Composer compose
/vendor/illuminate/view/Concerns/ManagesEvents.php124
18
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/illuminate/view/Concerns/ManagesEvents.php162
17
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/illuminate/events/Dispatcher.php455
16
Illuminate\Events\Dispatcher Illuminate\Events\{closure}
/vendor/illuminate/events/Dispatcher.php286
15
Illuminate\Events\Dispatcher invokeListeners
/vendor/illuminate/events/Dispatcher.php266
14
Illuminate\Events\Dispatcher dispatch
/vendor/illuminate/view/Concerns/ManagesEvents.php177
13
Illuminate\View\Factory callComposer
/vendor/illuminate/view/View.php188
12
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php159
11
Illuminate\View\View render
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/cache/acorn/framework/views/411ae967962dd4c92400836522dac4dc.php3
10
require
/vendor/illuminate/filesystem/Filesystem.php123
9
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/illuminate/filesystem/Filesystem.php124
8
Illuminate\Filesystem\Filesystem getRequire
/vendor/illuminate/view/Engines/PhpEngine.php58
7
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php72
6
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php207
5
Illuminate\View\View getContents
/vendor/illuminate/view/View.php190
4
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php159
3
Illuminate\View\View render
/index.php3
2
include
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/index.php17
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php
     */
    public function pagination()
    {
        return wp_link_pages([
            'echo' => 0,
            'before' => '<p>'.__('Pages:', 'sage'),
            'after' => '</p>',
        ]);
    }
 
    /**
     * Get Pinned Blog Post
     */
    public function pinnedPost()
    {
        $post = \carbon_get_theme_option('pin_p');
        $output = [];
 
        $output = [
            'image' => wp_get_attachment_image_url(get_post_thumbnail_id($post[0]['id']), 'large'),
            'cat' => get_the_category($post[0]['id'])[0]->name,
            'cat_link' => get_the_category($post[0]['id'])[0]->slug,
            'date' => get_the_date('F j, Y', $post[0]['id']),
            'title' => get_the_title($post[0]['id']),
            'link' => get_post_permalink($post[0]['id']),
            'excerpt' => apply_filters('the_content', get_the_excerpt($post[0]['id'])),
            'reading_time' => ceil(str_word_count(strip_tags(get_post_field('post_content', $post[0]['id']))) / 200)
        ];
 
        return json_decode(json_encode($output));   
    }
 
    /**
     * Get Blog Collection fields
     */
    public function blogs()
    {
        $output = [];
 
        $output = [
Arguments
  1. "Undefined array key 0 (View: /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/resources/views/single.blade.php)"
    
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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();
        }
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php
     */
    public function pagination()
    {
        return wp_link_pages([
            'echo' => 0,
            'before' => '<p>'.__('Pages:', 'sage'),
            'after' => '</p>',
        ]);
    }
 
    /**
     * Get Pinned Blog Post
     */
    public function pinnedPost()
    {
        $post = \carbon_get_theme_option('pin_p');
        $output = [];
 
        $output = [
            'image' => wp_get_attachment_image_url(get_post_thumbnail_id($post[0]['id']), 'large'),
            'cat' => get_the_category($post[0]['id'])[0]->name,
            'cat_link' => get_the_category($post[0]['id'])[0]->slug,
            'date' => get_the_date('F j, Y', $post[0]['id']),
            'title' => get_the_title($post[0]['id']),
            'link' => get_post_permalink($post[0]['id']),
            'excerpt' => apply_filters('the_content', get_the_excerpt($post[0]['id'])),
            'reading_time' => ceil(str_word_count(strip_tags(get_post_field('post_content', $post[0]['id']))) / 200)
        ];
 
        return json_decode(json_encode($output));   
    }
 
    /**
     * Get Blog Collection fields
     */
    public function blogs()
    {
        $output = [];
 
        $output = [
Arguments
  1. "Undefined array key 0"
    
Exception message: Undefined array key 0
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php
     */
    public function pagination()
    {
        return wp_link_pages([
            'echo' => 0,
            'before' => '<p>'.__('Pages:', 'sage'),
            'after' => '</p>',
        ]);
    }
 
    /**
     * Get Pinned Blog Post
     */
    public function pinnedPost()
    {
        $post = \carbon_get_theme_option('pin_p');
        $output = [];
 
        $output = [
            'image' => wp_get_attachment_image_url(get_post_thumbnail_id($post[0]['id']), 'large'),
            'cat' => get_the_category($post[0]['id'])[0]->name,
            'cat_link' => get_the_category($post[0]['id'])[0]->slug,
            'date' => get_the_date('F j, Y', $post[0]['id']),
            'title' => get_the_title($post[0]['id']),
            'link' => get_post_permalink($post[0]['id']),
            'excerpt' => apply_filters('the_content', get_the_excerpt($post[0]['id'])),
            'reading_time' => ceil(str_word_count(strip_tags(get_post_field('post_content', $post[0]['id']))) / 200)
        ];
 
        return json_decode(json_encode($output));   
    }
 
    /**
     * Get Blog Collection fields
     */
    public function blogs()
    {
        $output = [];
 
        $output = [
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/app/View/Composers/Post.php
    protected static $views = [
        'partials.page-header',
        'partials.content',
        'partials.content-*',
        'index',
        'template-news-and-press',
        'search',
    ];
 
    /**
     * Data to be passed to view before rendering, but after merging.
     *
     * @return array
     */
    public function override()
    {
        return [
            'title' => $this->title(),
            'pagination' => $this->pagination(),
            'pinnedPost' => $this->pinnedPost(),
            'blogs' => $this->blogs(),
            'singleBlog' => $this->singleBlog(),
            'recent' => $this->recent(),
            'newsPress' => function($cat_id) {
                $output = [];
                $posts = get_posts([
                    'post_type' => 'post',
                    'numberposts' => 6,
                    'category' => $cat_id,
                ]);
 
                foreach($posts as $post) {
                    $output[] = (object)[
                        'image' => wp_get_attachment_image_url(get_post_thumbnail_id($post), 'large'),
                        'title' => get_the_title($post),
                        'link' => get_post_permalink($post),
                        'date' => get_the_date('F j, Y', $post),
                        'reading_time' => ceil(str_word_count(strip_tags(get_post_field('post_content', $post))) / 200)
                    ];
                }
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php
     * Compose the view before rendering.
     *
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * The merged data to be passed to view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        [$with, $override] = [$this->with(), $this->override()];
 
        if (! $with && ! $override) {
            return array_merge(
                $this->extractPublicProperties(),
                $this->extractPublicMethods(),
                $this->view->getData()
            );
        }
 
        return array_merge(
            $with,
            $this->view->getData(),
            $override
        );
    }
 
    /**
     * The data passed to the view before rendering.
     *
     * @return array
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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.
     *
     * @return void
     */
    public function compose(View $view)
    {
        $this->view = $view;
        $this->data = new Fluent($view->getData());
 
        $view->with($this->merge());
    }
 
    /**
     * The merged data to be passed to view before rendering.
     *
     * @return array
     */
    protected function merge()
    {
        [$with, $override] = [$this->with(), $this->override()];
 
        if (! $with && ! $override) {
            return array_merge(
                $this->extractPublicProperties(),
                $this->extractPublicMethods(),
                $this->view->getData()
            );
        }
 
        return array_merge(
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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.
     *
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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);
            }
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/events/Dispatcher.php
    }
 
    /**
     * Broadcast an event and call its listeners.
     *
     * @param  string|object  $event
     * @param  mixed  $payload
     * @param  bool  $halt
     * @return array|null
     */
    protected function invokeListeners($event, $payload, $halt = false)
    {
        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;
    }
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/events/Dispatcher.php
        // payload to the handler, which makes object based events quite simple.
        [$isEventObject, $event, $payload] = [
            is_object($event),
            ...$this->parseEventAndPayload($event, $payload),
        ];
 
        // If the event is not intended to be dispatched unless the current database
        // transaction is successful, we'll register a callback which will handle
        // dispatching this event on the next successful DB transaction commit.
        if ($isEventObject &&
            $payload[0] instanceof ShouldDispatchAfterCommit &&
            ! is_null($transactions = $this->resolveTransactionManager())) {
            $transactions->addCallback(
                fn () => $this->invokeListeners($event, $payload, $halt)
            );
 
            return null;
        }
 
        return $this->invokeListeners($event, $payload, $halt);
    }
 
    /**
     * Broadcast an event and call its listeners.
     *
     * @param  string|object  $event
     * @param  mixed  $payload
     * @param  bool  $halt
     * @return array|null
     */
    protected function invokeListeners($event, $payload, $halt = false)
    {
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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]);
    }
}
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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 number 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 section gets 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());
    }
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php
     *
     * @return string
     */
    protected function allFragments()
    {
        return collect($this->render(fn () => $this->factory->getFragments()))->implode('');
    }
 
    /**
     * 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
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/cache/acorn/framework/views/411ae967962dd4c92400836522dac4dc.php
<?php $__env->startSection('content'); ?>
  <?php while(have_posts()): ?> <?php (the_post()); ?>
    <?php echo $__env->first(['partials.content-single-' . get_post_type(), 'partials.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 /var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/resources/views/single.blade.php ENDPATH**/ ?>
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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. "/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/cache/acorn/framework/views/411ae967962dd4c92400836522dac4dc.php"
    
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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;
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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();
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/Engines/CompilerEngine.php
     * @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 (! isset($this->compiledOrNotExpired[$path]) && $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.
 
        try {
            $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
        } catch (ViewException $e) {
            if (! str($e->getMessage())->contains(['No such file or directory', 'File does not exist at path'])) {
                throw $e;
            }
 
            if (! isset($this->compiledOrNotExpired[$path])) {
                throw $e;
            }
 
            $this->compiler->compile($path);
 
            $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
        }
 
        $this->compiledOrNotExpired[$path] = true;
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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 section gets 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;
    }
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/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 number 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 section gets 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());
    }
 
    /**
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/vendor/illuminate/view/View.php
     *
     * @return string
     */
    protected function allFragments()
    {
        return collect($this->render(fn () => $this->factory->getFragments()))->implode('');
    }
 
    /**
     * 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
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/index.php
<?php
 
echo view(app('sage.view'), app('sage.data'))->render();
 
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/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. "/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-content/themes/pegasus/index.php"
    
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/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. "/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-includes/template-loader.php"
    
/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/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. "/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
image-map-pro-shortcodes
[]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/news-press/eyegetdilated-every-day-is-a-gift/"
USER
"pegasus.kalerwhales._x52ay7hgkcg"
HOME
"/var/www/vhosts/pegasus.kalerwhales.com"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/news-press/eyegetdilated-every-day-is-a-gift/"
REMOTE_PORT
"52814"
SCRIPT_FILENAME
"/var/www/vhosts/pegasus.kalerwhales.com/httpdocs/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/pegasus.kalerwhales.com/httpdocs"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/pegasus.kalerwhales.com/httpdocs"
REMOTE_ADDR
"162.158.154.38"
SERVER_PORT
"443"
SERVER_ADDR
"159.65.232.42"
SERVER_NAME
"pegasus.kalerwhales.com"
SERVER_SIGNATURE
"<address>Apache Server at pegasus.kalerwhales.com Port 443</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_CONNECTING_IP
"216.73.216.156"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_CF_RAY
"9995afaf29d743fa-EWR"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_REFERER
"https://pegasus.kalerwhales.com/news-press/eyegetdilated-every-day-is-a-gift"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
HTTP_CONNECTION
"close"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_FORWARDED_FOR
"216.73.216.156"
HTTP_X_REAL_IP
"162.158.154.38"
HTTP_HOST
"pegasus.kalerwhales.com"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"pegasus.kalerwhales.com"
HTTPS
"on"
HTTP_AUTHORIZATION
""
SCRIPT_URI
"https://pegasus.kalerwhales.com/news-press/eyegetdilated-every-day-is-a-gift/"
SCRIPT_URL
"/news-press/eyegetdilated-every-day-is-a-gift/"
UNIQUE_ID
"aQox7bE1CYZc6KAg1kJlBQAAAQc"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"pegasus.kalerwhales.com"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://pegasus.kalerwhales.com/news-press/eyegetdilated-every-day-is-a-gift/"
REDIRECT_SCRIPT_URL
"/news-press/eyegetdilated-every-day-is-a-gift/"
REDIRECT_UNIQUE_ID
"aQox7bE1CYZc6KAg1kJlBQAAAQc"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1762275821.9692
REQUEST_TIME
1762275821
empty
0. Whoops\Handler\PrettyPageHandler