Whoops! There was an error.
Illuminate \ View \ ViewException (E_ERROR)
App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20 (View: /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/resources/views/archive-level.blade.php)
Previous exceptions
  • App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20 (0)
Illuminate\View\ViewException thrown with message "App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20 (View: /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/resources/views/archive-level.blade.php)" Stacktrace: #29 Illuminate\View\ViewException in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/DTO/LevelDTO.php:48 #28 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/Engines/PhpEngine.php:60 #27 TypeError in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/DTO/LevelDTO.php:48 #26 App\DTO\LevelDTO:fromWpPost in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php:20 #25 App\View\Composers\Sections\LevelsSectionComposer:App\View\Composers\Sections\{closure} in [internal]:0 #24 array_map in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/collections/Arr.php:600 #23 Illuminate\Support\Arr:map in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/collections/Collection.php:778 #22 Illuminate\Support\Collection:map in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php:19 #21 App\View\Composers\Sections\LevelsSectionComposer:with in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:93 #20 Roots\Acorn\View\Composer:merge in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/roots/acorn/src/Roots/Acorn/View/Composer.php:83 #19 Roots\Acorn\View\Composer:compose in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/Concerns/ManagesEvents.php:124 #18 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/events/Dispatcher.php:458 #17 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/events/Dispatcher.php:286 #16 Illuminate\Events\Dispatcher:invokeListeners in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/events/Dispatcher.php:266 #15 Illuminate\Events\Dispatcher:dispatch in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/Concerns/ManagesEvents.php:177 #14 Illuminate\View\Factory:callComposer in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:188 #13 Illuminate\View\View:renderContents in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:159 #12 Illuminate\View\View:render in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:504 #11 Illuminate\View\View:__toString in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/storage/framework/views/450903c4ac78c04a5e802ea4619c43d0.php:8 #10 require in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/filesystem/Filesystem.php:123 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/filesystem/Filesystem.php:124 #8 Illuminate\Filesystem\Filesystem:getRequire in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/Engines/CompilerEngine.php:72 #6 Illuminate\View\Engines\CompilerEngine:get in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:207 #5 Illuminate\View\View:getContents in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:190 #4 Illuminate\View\View:renderContents in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php:159 #3 Illuminate\View\View:render in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/index.php:15 #2 include in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-blog-header.php:19 #0 require in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/index.php:17
Stack frames (30)
29
Illuminate\View\ViewException
/app/DTO/LevelDTO.php48
28
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
27
TypeError
/app/DTO/LevelDTO.php48
26
App\DTO\LevelDTO fromWpPost
/app/View/Composers/Sections/LevelsSectionComposer.php20
25
App\View\Composers\Sections\LevelsSectionComposer App\View\Composers\Sections\{closure}
[internal]0
24
array_map
/vendor/illuminate/collections/Arr.php600
23
Illuminate\Support\Arr map
/vendor/illuminate/collections/Collection.php778
22
Illuminate\Support\Collection map
/app/View/Composers/Sections/LevelsSectionComposer.php19
21
App\View\Composers\Sections\LevelsSectionComposer with
/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/events/Dispatcher.php458
17
Illuminate\Events\Dispatcher Illuminate\Events\{closure}
/vendor/illuminate/events/Dispatcher.php286
16
Illuminate\Events\Dispatcher invokeListeners
/vendor/illuminate/events/Dispatcher.php266
15
Illuminate\Events\Dispatcher dispatch
/vendor/illuminate/view/Concerns/ManagesEvents.php177
14
Illuminate\View\Factory callComposer
/vendor/illuminate/view/View.php188
13
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php159
12
Illuminate\View\View render
/vendor/illuminate/view/View.php504
11
Illuminate\View\View __toString
/storage/framework/views/450903c4ac78c04a5e802ea4619c43d0.php8
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.php15
2
include
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-includes/template-loader.php106
1
require_once
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-blog-header.php19
0
require
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/index.php17
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/DTO/LevelDTO.php
    public Carbon $post_modified_gmt;
    public string $post_content_filtered;
    public int $post_parent;
    public string $guid;
    public int $menu_order;
    public string $post_type;
    public string $post_mime_type;
    public int $comment_count;
    public string $filter;

    public static function fromWpQuery(WP_Query|null $query = null): Collection
    {
        $query = $query ?? get_query();

        return collect($query->posts)->map(function ($post) {
            return self::fromWpPost($post);
        });
    }

    public static function fromWpPost(WP_Post|null $post = null)
    {
        $post = $post ?? get_post();

        return new self([
            'id' => (int) $post->ID,
            'post_author' => (int) $post->post_author,
            'post_date' => Carbon::parse($post->post_date),
            'post_date_gmt' => Carbon::parse($post->post_date_gmt),
            'post_content' => $post->post_content,
            'post_title' => $post->post_title,
            'post_excerpt' => $post->post_excerpt,
            'post_status' => $post->post_status,
            'comment_status' => $post->comment_status,
            'ping_status' => $post->ping_status,
            'post_password' => $post->post_password,
            'post_name' => $post->post_name,
            'to_ping' => $post->to_ping,
            'pinged' => $post->pinged,
            'post_modified' => Carbon::parse($post->post_modified),
            'post_modified_gmt' => Carbon::parse($post->post_modified_gmt),
Arguments
  1. "App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20 (View: /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/resources/views/archive-level.blade.php)"
    
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/DTO/LevelDTO.php
    public Carbon $post_modified_gmt;
    public string $post_content_filtered;
    public int $post_parent;
    public string $guid;
    public int $menu_order;
    public string $post_type;
    public string $post_mime_type;
    public int $comment_count;
    public string $filter;

    public static function fromWpQuery(WP_Query|null $query = null): Collection
    {
        $query = $query ?? get_query();

        return collect($query->posts)->map(function ($post) {
            return self::fromWpPost($post);
        });
    }

    public static function fromWpPost(WP_Post|null $post = null)
    {
        $post = $post ?? get_post();

        return new self([
            'id' => (int) $post->ID,
            'post_author' => (int) $post->post_author,
            'post_date' => Carbon::parse($post->post_date),
            'post_date_gmt' => Carbon::parse($post->post_date_gmt),
            'post_content' => $post->post_content,
            'post_title' => $post->post_title,
            'post_excerpt' => $post->post_excerpt,
            'post_status' => $post->post_status,
            'comment_status' => $post->comment_status,
            'ping_status' => $post->ping_status,
            'post_password' => $post->post_password,
            'post_name' => $post->post_name,
            'to_ping' => $post->to_ping,
            'pinged' => $post->pinged,
            'post_modified' => Carbon::parse($post->post_modified),
            'post_modified_gmt' => Carbon::parse($post->post_modified_gmt),
Arguments
  1. "App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20"
    
Exception message: App\DTO\LevelDTO::fromWpPost(): Argument #1 ($post) must be of type ?WP_Post, bool given, called in /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php on line 20
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php
<?php
 
namespace App\View\Composers\Sections;
 
use Roots\Acorn\View\Composer;
use App\DTO\LevelDTO;
 
class LevelsSectionComposer extends Composer
{
  
    protected static $views = [
        'partials.sections.level_boxes.level_boxes',
    ];
 
    public function with()
    {       
        $levels = [];
        if(!empty($this->data['levels'])){
            $levels = collect($this->data['levels'])->map(fn($lvl)=>
                ['post' => LevelDTO::fromWpPost($lvl['level']), 'link' => $lvl['link']]
            );
            
        }
 
        return [
            'lvls' => $levels,
        ];
    } 
 
}
  
[internal]
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/collections/Arr.php
        $value = is_string($value) ? explode('.', $value) : $value;
 
        $key = is_null($key) || is_array($key) ? $key : explode('.', $key);
 
        return [$value, $key];
    }
 
    /**
     * Run a map over each of the items in the array.
     *
     * @param  array  $array
     * @param  callable  $callback
     * @return array
     */
    public static function map(array $array, callable $callback)
    {
        $keys = array_keys($array);
 
        try {
            $items = array_map($callback, $array, $keys);
        } catch (ArgumentCountError) {
            $items = array_map($callback, $array);
        }
 
        return array_combine($keys, $items);
    }
 
    /**
     * Run an associative map over each of the items.
     *
     * The callback should return an associative array with a single key/value pair.
     *
     * @template TKey
     * @template TValue
     * @template TMapWithKeysKey of array-key
     * @template TMapWithKeysValue
     *
     * @param  array<TKey, TValue>  $array
     * @param  callable(TValue, TKey): array<TMapWithKeysKey, TMapWithKeysValue>  $callback
     * @return array
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/collections/Collection.php
     * @param  string|int|array<array-key, string>  $value
     * @param  string|null  $key
     * @return static<array-key, mixed>
     */
    public function pluck($value, $key = null)
    {
        return new static(Arr::pluck($this->items, $value, $key));
    }
 
    /**
     * Run a map over each of the items.
     *
     * @template TMapValue
     *
     * @param  callable(TValue, TKey): TMapValue  $callback
     * @return static<TKey, TMapValue>
     */
    public function map(callable $callback)
    {
        return new static(Arr::map($this->items, $callback));
    }
 
    /**
     * Run a dictionary map over the items.
     *
     * The callback should return an associative array with a single key/value pair.
     *
     * @template TMapToDictionaryKey of array-key
     * @template TMapToDictionaryValue
     *
     * @param  callable(TValue, TKey): array<TMapToDictionaryKey, TMapToDictionaryValue>  $callback
     * @return static<TMapToDictionaryKey, array<int, TMapToDictionaryValue>>
     */
    public function mapToDictionary(callable $callback)
    {
        $dictionary = [];
 
        foreach ($this->items as $key => $item) {
            $pair = $callback($item, $key);
 
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/app/View/Composers/Sections/LevelsSectionComposer.php
<?php
 
namespace App\View\Composers\Sections;
 
use Roots\Acorn\View\Composer;
use App\DTO\LevelDTO;
 
class LevelsSectionComposer extends Composer
{
  
    protected static $views = [
        'partials.sections.level_boxes.level_boxes',
    ];
 
    public function with()
    {       
        $levels = [];
        if(!empty($this->data['levels'])){
            $levels = collect($this->data['levels'])->map(fn($lvl)=>
                ['post' => LevelDTO::fromWpPost($lvl['level']), 'link' => $lvl['link']]
            );
            
        }
 
        return [
            'lvls' => $levels,
        ];
    } 
 
}
  
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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(
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/events/Dispatcher.php
     * @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);
            }
 
            $callable = $this->createClassCallable($listener);
 
            return $callable(...array_values($payload));
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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;
    }
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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);
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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());
    }
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/vendor/illuminate/view/View.php
    /**
     * Get content as a string of HTML.
     *
     * @return string
     */
    public function toHtml()
    {
        return $this->render();
    }
 
    /**
     * Get the string contents of the view.
     *
     * @return string
     *
     * @throws \Throwable
     */
    public function __toString()
    {
        return $this->render();
    }
}
 
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/storage/framework/views/450903c4ac78c04a5e802ea4619c43d0.php
<?php $__env->startSection('content'); ?>
    <?php if(isset($page_heading) && !empty($page_heading)): ?>
        <?php echo $__env->make('partials.body.page-heading', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?>
 
    <?php if(isset($sections) && is_array($sections) && !empty($sections)): ?>
        <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php echo $section; ?>
 
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
 
    
<?php $__env->stopSection(); ?>
 
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/resources/views/archive-level.blade.php ENDPATH**/ ?>
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/storage/framework/views/450903c4ac78c04a5e802ea4619c43d0.php"
    
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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;
    }
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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;
    }
 
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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());
    }
 
    /**
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/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
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/index.php
<!doctype html>
<html <?php language_attributes(); ?>>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
  <?php wp_body_open(); ?>
  <?php do_action('get_header'); ?>

  <div id="app">
    <?php echo view(app('sage.view'), app('sage.data'))->render(); ?>
  </div>

  <?php do_action('get_footer'); ?>
  <?php wp_footer(); ?>
</body>

</html>
 
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-content/themes/savvy-ed/index.php"
    
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-includes/template-loader.php"
    
/home/ebearsdev/domains/stage-bears.edubears.pl/public_html/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/ebearsdev/domains/stage-bears.edubears.pl/public_html/wp-blog-header.php"
    

Environment & details:

Key Value
anchorTo
"two_columns_basic-1"
empty
empty
Key Value
wp-wpml_current_language
"pl"
empty
Key Value
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_URI
"/poziomy/?anchorTo=two_columns_basic-1"
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_HOST
"stage-se.edubears.pl"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
DOCUMENT_ROOT
"/home/ebearsdev/domains/stage-bears.edubears.pl/private_html"
REMOTE_ADDR
"3.143.237.54"
REMOTE_PORT
"39969"
SERVER_ADDR
"136.243.41.103"
SERVER_NAME
"stage-se.edubears.pl"
SERVER_ADMIN
"webmaster@stage-bears.edubears.pl"
SERVER_PORT
"443"
REQUEST_SCHEME
"https"
REDIRECT_URL
"/poziomy/"
REDIRECT_QUERY_STRING
"anchorTo=two_columns_basic-1"
REDIRECT_REQUEST_METHOD
"GET"
HTTPS
"on"
HTTP_AUTHORIZATION
""
REDIRECT_STATUS
"200"
X_SPDY
"HTTP2"
SSL_PROTOCOL
"TLSv1.3"
SSL_CIPHER
"TLS_CHACHA20_POLY1305_SHA256"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
SCRIPT_FILENAME
"/home/ebearsdev/domains/stage-bears.edubears.pl/private_html/index.php"
QUERY_STRING
"anchorTo=two_columns_basic-1"
SCRIPT_URI
"https://stage-se.edubears.pl/poziomy/"
SCRIPT_URL
"/poziomy/"
SCRIPT_NAME
"/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
X-LSCACHE
"on"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1734857238.1358
REQUEST_TIME
1734857238
APP_URL
"http://savvy-ed.edubears.pl"
APP_ENV
"production"
APP_DEBUG
"false"
THEME_NAME
"savvy-ed"
ASSETS_DEBUG
"false"
Key Value
APP_URL
"http://savvy-ed.edubears.pl"
APP_ENV
"production"
APP_DEBUG
"false"
THEME_NAME
"savvy-ed"
ASSETS_DEBUG
"false"
0. Whoops\Handler\PrettyPageHandler