ErrorException (E_ERROR)
Invalid argument supplied for foreach() (View: /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php)
Previous exceptions
  • Invalid argument supplied for foreach() (2)
ErrorException thrown with message "Invalid argument supplied for foreach() (View: /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php)" Stacktrace: #15 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/Engines/PhpEngine.php:45 #14 Whoops\Exception\ErrorException in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php:26 #13 Whoops\Run:handleError in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php:26 #12 include in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/Engines/PhpEngine.php:43 #11 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/Engines/CompilerEngine.php:59 #10 Illuminate\View\Engines\CompilerEngine:get in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/View.php:142 #9 Illuminate\View\View:getContents in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/View.php:125 #8 Illuminate\View\View:renderContents in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/View.php:90 #7 Illuminate\View\View:render in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/roots/sage-lib/Template/Blade.php:58 #6 Roots\Sage\Template\Blade:render in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/app/helpers.php:55 #5 view in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/app/filters.php:70 #4 App\{closure} in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/class-wp-hook.php:307 #3 WP_Hook:apply_filters in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/plugin.php:191 #2 apply_filters in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/template-loader.php:104 #1 require_once in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-blog-header.php:19 #0 require in /home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php:17
Stack frames (16)
15
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php45
14
Whoops\Exception\ErrorException
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php26
13
Whoops\Run handleError
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php26
12
include
/vendor/illuminate/view/Engines/PhpEngine.php43
11
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php59
10
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php142
9
Illuminate\View\View getContents
/vendor/illuminate/view/View.php125
8
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php90
7
Illuminate\View\View render
/vendor/roots/sage-lib/Template/Blade.php58
6
Roots\Sage\Template\Blade render
/app/helpers.php55
5
view
/app/filters.php70
4
App\{closure}
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/class-wp-hook.php307
3
WP_Hook apply_filters
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/plugin.php191
2
apply_filters
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/template-loader.php104
1
require_once
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-blog-header.php19
0
require
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php17
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/illuminate/view/Engines/PhpEngine.php
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // 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 {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
Arguments
  1. Whoops\Exception\ErrorException {#7900
      #message: "Invalid argument supplied for foreach()"
      #code: 2
      #file: "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php"
      #line: 26
      #severity: E_WARNING
    }
    
  2. 0
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php
  <section>
    <div class="container mx-auto">
      <nav class="relative z-10 flex flex-wrap gap-5 mb-20 filters text-dark" x-data="{ filters: window.location.search ? true : false }">
        Filtruj wpisy:
        <ul class="flex gap-4">
          <li data-filter="kategoria" x-data="dropdown" x-on:keydown.escape.prevent.stop="close($refs.button)" x-on:focusin.window="! $refs.panel.contains($event.target) && close()" x-id="['dropdown-button']" class="relative">
            <!-- Button -->
            <button class="flex items-center" x-ref="button" x-on:click="toggle()" :aria-expanded="open" :aria-controls="$id('dropdown-button')" type="button">
              <span>Kategorie</span>
              <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
              </svg>
              
            </button>
 
            <!-- Panel -->
            <div x-ref="panel" x-show="open" x-transition.origin.top.left x-on:click.outside="close($refs.button)" :id="$id('dropdown-button')" style="display: none;"
              class="max-h-[300px]  overflow-y-scroll overflow-x-hidden absolute right-0 w-56 mt-2 origin-top-left bg-white divide-y divide-gray-100 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
              <ul>
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li data-slug="<?php echo e($cat->slug); ?>" @click="changeLink" class="flex items-center w-full px-4 py-2 text-sm text-left border-b cursor-pointer border-[#bbb] last:border-none hover:bg-gray-100 focus:outline-none focus:ring focus:ring-aqua-400 disabled:text-gray-500">
                    <?php echo e($cat->name); ?>
 
                    <input class="block m-0 ml-auto border-2 pointer-events-none !border-[#bbb]" type="checkbox">
                  </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
 
            </div>
          </li>
 
          <li data-filter="tag" x-data="dropdown" x-on:keydown.escape.prevent.stop="close($refs.button)" x-on:focusin.window="! $refs.panel.contains($event.target) && close()" x-id="['dropdown-button']" class="relative">
            <!-- Button -->
            <button class="flex items-center" x-ref="button" x-on:click="toggle()" :aria-expanded="open" :aria-controls="$id('dropdown-button')" type="button">
              <span>Tagi</span>
              <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
              </svg>
              
            </button>
Arguments
  1. "Invalid argument supplied for foreach()"
    
Exception message: Invalid argument supplied for foreach()
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php
  <section>
    <div class="container mx-auto">
      <nav class="relative z-10 flex flex-wrap gap-5 mb-20 filters text-dark" x-data="{ filters: window.location.search ? true : false }">
        Filtruj wpisy:
        <ul class="flex gap-4">
          <li data-filter="kategoria" x-data="dropdown" x-on:keydown.escape.prevent.stop="close($refs.button)" x-on:focusin.window="! $refs.panel.contains($event.target) && close()" x-id="['dropdown-button']" class="relative">
            <!-- Button -->
            <button class="flex items-center" x-ref="button" x-on:click="toggle()" :aria-expanded="open" :aria-controls="$id('dropdown-button')" type="button">
              <span>Kategorie</span>
              <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
              </svg>
              
            </button>
 
            <!-- Panel -->
            <div x-ref="panel" x-show="open" x-transition.origin.top.left x-on:click.outside="close($refs.button)" :id="$id('dropdown-button')" style="display: none;"
              class="max-h-[300px]  overflow-y-scroll overflow-x-hidden absolute right-0 w-56 mt-2 origin-top-left bg-white divide-y divide-gray-100 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none">
              <ul>
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li data-slug="<?php echo e($cat->slug); ?>" @click="changeLink" class="flex items-center w-full px-4 py-2 text-sm text-left border-b cursor-pointer border-[#bbb] last:border-none hover:bg-gray-100 focus:outline-none focus:ring focus:ring-aqua-400 disabled:text-gray-500">
                    <?php echo e($cat->name); ?>
 
                    <input class="block m-0 ml-auto border-2 pointer-events-none !border-[#bbb]" type="checkbox">
                  </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
              </ul>
 
            </div>
          </li>
 
          <li data-filter="tag" x-data="dropdown" x-on:keydown.escape.prevent.stop="close($refs.button)" x-on:focusin.window="! $refs.panel.contains($event.target) && close()" x-id="['dropdown-button']" class="relative">
            <!-- Button -->
            <button class="flex items-center" x-ref="button" x-on:click="toggle()" :aria-expanded="open" :aria-controls="$id('dropdown-button')" type="button">
              <span>Tagi</span>
              <svg class="w-5 h-5 ml-2 -mr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
                <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
              </svg>
              
            </button>
Arguments
  1. 2
    
  2. "Invalid argument supplied for foreach()"
    
  3. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php"
    
  4. 26
    
  5. array:11 [
      "__path" => "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php"
      "__data" => array:7 [
        "__env" => Illuminate\View\Factory {#4849}
        "app" => Roots\Sage\Container {#4825}
        "post" => WP_Post {#7634}
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
        "__store" => array:3 [
          "__blade" => array:1 [
            0 => {#7877}
          ]
          "model" => false
          "__app" => array:2 [
            "model" => false
            "__blade" => array:1 [
              0 => {#7877}
            ]
          ]
        ]
      ]
      "obLevel" => 0
      "__env" => Illuminate\View\Factory {#4849}
      "app" => Roots\Sage\Container {#4825}
      "post" => WP_Post {#7634}
      "model" => false
      "__blade" => array:1 [
        0 => {#7877}
      ]
      "__app" => array:2 [
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
      ]
      "__store" => array:3 [
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "model" => false
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
      ]
      "__currentLoopData" => null
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/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();
 
        extract($__data, EXTR_SKIP);
 
        // 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 {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php"
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/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 ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($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($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/uploads/cache/38e3c275a457adf4c677c30e520e36cc77e84e3c.php"
    
  2. array:7 [
      "__env" => Illuminate\View\Factory {#4849}
      "app" => Roots\Sage\Container {#4825}
      "post" => WP_Post {#7634}
      "model" => false
      "__blade" => array:1 [
        0 => {#7877}
      ]
      "__app" => array:2 [
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
      ]
      "__store" => array:3 [
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "model" => false
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
      ]
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/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
     */
    protected 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;
    }
 
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
  2. array:7 [
      "__env" => Illuminate\View\Factory {#4849}
      "app" => Roots\Sage\Container {#4825}
      "post" => WP_Post {#7634}
      "model" => false
      "__blade" => array:1 [
        0 => {#7877}
      ]
      "__app" => array:2 [
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
      ]
      "__store" => array:3 [
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "model" => false
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
      ]
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/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/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/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) ? call_user_func($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 (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/vendor/roots/sage-lib/Template/Blade.php
    public function compiler()
    {
        static $engineResolver;
        if (!$engineResolver) {
            $engineResolver = $this->getContainer()->make('view.engine.resolver');
        }
        return $engineResolver->resolve('blade')->getCompiler();
    }
 
    /**
     * @param string $view
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function render($view, $data = [], $mergeData = [])
    {
        /** @var \Illuminate\Contracts\Filesystem\Filesystem $filesystem */
        $filesystem = $this->getContainer()['files'];
        return $this->{$filesystem->exists($view) ? 'file' : 'make'}($view, $data, $mergeData)->render();
    }
 
    /**
     * @param string $file
     * @param array  $data
     * @param array  $mergeData
     * @return string
     */
    public function compiledPath($file, $data = [], $mergeData = [])
    {
        $rendered = $this->file($file, $data, $mergeData);
        /** @var EngineInterface $engine */
        $engine = $rendered->getEngine();
 
        if (!($engine instanceof CompilerEngine)) {
            // Using PhpEngine, so just return the file
            return $file;
        }
 
        $compiler = $engine->getCompiler();
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/app/helpers.php
function config($key = null, $default = null)
{
    if (is_null($key)) {
        return sage('config');
    }
    if (is_array($key)) {
        return sage('config')->set($key);
    }
 
    return sage('config')->get($key, $default);
}
 
/**
 * @param string $file
 * @param array $data
 * @return string
 */
function view($file, $data = [])
{
    return sage('blade')->render($file, $data);
}
 
/**
 * Retrieve path to a compiled blade view
 * @param $file
 * @param array $data
 * @return string
 */
function template_path($file, $data = [])
{
    return sage('blade')->compiledPath($file, $data);
}
 
/**
 * @param $asset
 * @return string
 */
function asset_path($asset)
{
    return sage('assets')->getUri($asset);
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
  2. array:4 [
      "model" => false
      "__blade" => array:1 [
        0 => {#7877}
      ]
      "__app" => array:2 [
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
      ]
      "__store" => array:3 [
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "model" => false
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
      ]
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/app/filters.php
/**
 * Render page using Blade
 */
add_filter('template_include', function ($template) {
    collect(['get_header', 'wp_head'])->each(function ($tag) {
        ob_start();
        do_action($tag);
        $output = ob_get_clean();
        remove_all_actions($tag);
        add_action($tag, function () use ($output) {
            echo $output;
        });
    });
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
        return apply_filters("sage/template/{$class}/data", $data, $template);
    }, []);
 
    
    if ($template) {
        echo view($template, $data);
        return get_stylesheet_directory().'/index.php';
    }
    return $template;
}, PHP_INT_MAX);
 
/**
 * Render comments.blade.php
 */
add_filter('comments_template', function ($comments_template) {
    $comments_template = str_replace(
        [get_stylesheet_directory(), get_template_directory()],
        '',
        $comments_template
    );
 
    $data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
        return apply_filters("sage/template/{$class}/data", $data, $comments_template);
    }, []);
  
    
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
  2. array:4 [
      "model" => false
      "__blade" => array:1 [
        0 => {#7877}
      ]
      "__app" => array:2 [
        "model" => false
        "__blade" => array:1 [
          0 => {#7877}
        ]
      ]
      "__store" => array:3 [
        "__blade" => array:1 [
          0 => {#7877}
        ]
        "model" => false
        "__app" => array:2 [
          "model" => false
          "__blade" => array:1 [
            0 => {#7877}
          ]
        ]
      ]
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/class-wp-hook.php
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
            $priority                                 = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 == $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
 * @return mixed The filtered value after all hooked functions are applied to it.
Arguments
  1. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
  2. array:1 [
      0 => "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    ]
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            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. "template_include"
    
  2. "/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-content/themes/Pracownia/resources/views/archive.blade.php"
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/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/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-includes/template-loader.php"
    
/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/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/ppserwer/ftp/webtom-pracowniaPozarzadowa/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2"
REQUEST_URI
"/tag/modelowa-wspolpraca/"
LC_ALL
"pl_PL"
LANG
"pl"
USER
"ppserwer"
HOME
"/home/ppserwer/ftp"
SCRIPT_URI
"https://pracowniapozarzadowa.pl/tag/modelowa-wspolpraca/"
REMOTE_ADDR
"3.239.4.127"
SERVER_ADDR
"85.128.249.220"
PATH_TRANSLATED
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/tag/modelowa-wspolpraca/"
REMOTE_PORT
"49074"
SCRIPT_FILENAME
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php"
SERVER_ADMIN
"webmaster@ppserwer.nazwa.pl"
CONTEXT_DOCUMENT_ROOT
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa"
SERVER_PORT
"443"
SERVER_NAME
"pracowniapozarzadowa.pl"
SERVER_SIGNATURE
""
PATH
"/bin:/usr/bin:/usr/local/bin:/home/conf/alternatives"
HTTP_ACCEPT_ENCODING
"br"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_CONNECTION
"close"
HTTP_HOST
"pracowniapozarzadowa.pl"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://pracowniapozarzadowa.pl/tag/modelowa-wspolpraca/"
REDIRECT_SCRIPT_URL
"/tag/modelowa-wspolpraca/"
SCRIPT_URL
"/tag/modelowa-wspolpraca/"
REDIRECT_SSL_SESSION_ID
"4d94a2377a5182b969578e3dad3515e068250a6596e8b609db65d8dc9b1d2e1a"
SSL_SESSION_ID
"4d94a2377a5182b969578e3dad3515e068250a6596e8b609db65d8dc9b1d2e1a"
REDIRECT_SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
REDIRECT_SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_A_KEY
"rsaEncryption"
REDIRECT_SSL_SERVER_V_END
"Feb  9 00:00:00 2023 GMT"
SSL_SERVER_V_END
"Feb  9 00:00:00 2023 GMT"
REDIRECT_SSL_SERVER_V_START
"Feb 11 08:15:39 2022 GMT"
SSL_SERVER_V_START
"Feb 11 08:15:39 2022 GMT"
REDIRECT_SSL_SERVER_M_SERIAL
"1D0FCA3A1960D036EC7DBAF0118D962B"
SSL_SERVER_M_SERIAL
"1D0FCA3A1960D036EC7DBAF0118D962B"
REDIRECT_SSL_SERVER_M_VERSION
"3"
SSL_SERVER_M_VERSION
"3"
REDIRECT_SSL_SERVER_I_DN_CN
"nazwaSSL"
SSL_SERVER_I_DN_CN
"nazwaSSL"
REDIRECT_SSL_SERVER_I_DN_OU
"http://nazwa.pl"
SSL_SERVER_I_DN_OU
"http://nazwa.pl"
REDIRECT_SSL_SERVER_I_DN_O
"nazwa.pl sp. z o.o."
SSL_SERVER_I_DN_O
"nazwa.pl sp. z o.o."
REDIRECT_SSL_SERVER_I_DN_C
"PL"
SSL_SERVER_I_DN_C
"PL"
REDIRECT_SSL_SERVER_I_DN
"/C=PL/O=nazwa.pl sp. z o.o./OU=http://nazwa.pl/CN=nazwaSSL"
SSL_SERVER_I_DN
"/C=PL/O=nazwa.pl sp. z o.o./OU=http://nazwa.pl/CN=nazwaSSL"
REDIRECT_SSL_SERVER_S_DN_CN
"*.nazwa.pl"
SSL_SERVER_S_DN_CN
"*.nazwa.pl"
REDIRECT_SSL_SERVER_S_DN
"/CN=*.nazwa.pl"
SSL_SERVER_S_DN
"/CN=*.nazwa.pl"
REDIRECT_SSL_CIPHER_VERIFY
"NONE"
SSL_CIPHER_VERIFY
"NONE"
REDIRECT_SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
REDIRECT_SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_USEKEYSIZE
"256"
REDIRECT_SSL_CIPHER_EXPORT
"false"
SSL_CIPHER_EXPORT
"false"
REDIRECT_SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
REDIRECT_SSL_PROTOCOL
"TLSv1.3"
SSL_PROTOCOL
"TLSv1.3"
REDIRECT_SSL_VERSION_LIBRARY
"OpenSSL/1.1.1f"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1f"
REDIRECT_SSL_VERSION_INTERFACE
"mod_ssl_fake/1.0"
SSL_VERSION_INTERFACE
"mod_ssl_fake/1.0"
REDIRECT_HTTPS
"on"
HTTPS
"on"
REDIRECT_UNIQUE_ID
"YvJYujX4IizeHZUZvAd1eAAAAAI"
UNIQUE_ID
"YvJYujX4IizeHZUZvAd1eAAAAAI"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1660049594,7967
REQUEST_TIME
1660049594
Key Value
LC_ALL
"pl_PL"
LANG
"pl"
USER
"ppserwer"
HOME
"/home/ppserwer/ftp"
SCRIPT_URI
"https://pracowniapozarzadowa.pl/tag/modelowa-wspolpraca/"
REMOTE_ADDR
"3.239.4.127"
SERVER_ADDR
"85.128.249.220"
PATH_TRANSLATED
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/tag/modelowa-wspolpraca/"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/tag/modelowa-wspolpraca/"
REMOTE_PORT
"49074"
SCRIPT_FILENAME
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa/index.php"
SERVER_ADMIN
"webmaster@ppserwer.nazwa.pl"
CONTEXT_DOCUMENT_ROOT
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/ppserwer/ftp/webtom-pracowniaPozarzadowa"
SERVER_PORT
"443"
SERVER_NAME
"pracowniapozarzadowa.pl"
SERVER_SOFTWARE
"Apache/2"
SERVER_SIGNATURE
""
PATH
"/bin:/usr/bin:/usr/local/bin:/home/conf/alternatives"
HTTP_ACCEPT_ENCODING
"br"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_CONNECTION
"close"
HTTP_HOST
"pracowniapozarzadowa.pl"
REDIRECT_STATUS
"200"
REDIRECT_HTTP_AUTHORIZATION
""
HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://pracowniapozarzadowa.pl/tag/modelowa-wspolpraca/"
REDIRECT_SCRIPT_URL
"/tag/modelowa-wspolpraca/"
SCRIPT_URL
"/tag/modelowa-wspolpraca/"
REDIRECT_SSL_SESSION_ID
"4d94a2377a5182b969578e3dad3515e068250a6596e8b609db65d8dc9b1d2e1a"
SSL_SESSION_ID
"4d94a2377a5182b969578e3dad3515e068250a6596e8b609db65d8dc9b1d2e1a"
REDIRECT_SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
REDIRECT_SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_A_KEY
"rsaEncryption"
REDIRECT_SSL_SERVER_V_END
"Feb  9 00:00:00 2023 GMT"
SSL_SERVER_V_END
"Feb  9 00:00:00 2023 GMT"
REDIRECT_SSL_SERVER_V_START
"Feb 11 08:15:39 2022 GMT"
SSL_SERVER_V_START
"Feb 11 08:15:39 2022 GMT"
REDIRECT_SSL_SERVER_M_SERIAL
"1D0FCA3A1960D036EC7DBAF0118D962B"
SSL_SERVER_M_SERIAL
"1D0FCA3A1960D036EC7DBAF0118D962B"
REDIRECT_SSL_SERVER_M_VERSION
"3"
SSL_SERVER_M_VERSION
"3"
REDIRECT_SSL_SERVER_I_DN_CN
"nazwaSSL"
SSL_SERVER_I_DN_CN
"nazwaSSL"
REDIRECT_SSL_SERVER_I_DN_OU
"http://nazwa.pl"
SSL_SERVER_I_DN_OU
"http://nazwa.pl"
REDIRECT_SSL_SERVER_I_DN_O
"nazwa.pl sp. z o.o."
SSL_SERVER_I_DN_O
"nazwa.pl sp. z o.o."
REDIRECT_SSL_SERVER_I_DN_C
"PL"
SSL_SERVER_I_DN_C
"PL"
REDIRECT_SSL_SERVER_I_DN
"/C=PL/O=nazwa.pl sp. z o.o./OU=http://nazwa.pl/CN=nazwaSSL"
SSL_SERVER_I_DN
"/C=PL/O=nazwa.pl sp. z o.o./OU=http://nazwa.pl/CN=nazwaSSL"
REDIRECT_SSL_SERVER_S_DN_CN
"*.nazwa.pl"
SSL_SERVER_S_DN_CN
"*.nazwa.pl"
REDIRECT_SSL_SERVER_S_DN
"/CN=*.nazwa.pl"
SSL_SERVER_S_DN
"/CN=*.nazwa.pl"
REDIRECT_SSL_CIPHER_VERIFY
"NONE"
SSL_CIPHER_VERIFY
"NONE"
REDIRECT_SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
REDIRECT_SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_USEKEYSIZE
"256"
REDIRECT_SSL_CIPHER_EXPORT
"false"
SSL_CIPHER_EXPORT
"false"
REDIRECT_SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
SSL_CIPHER
"TLS_AES_256_GCM_SHA384"
REDIRECT_SSL_PROTOCOL
"TLSv1.3"
SSL_PROTOCOL
"TLSv1.3"
REDIRECT_SSL_VERSION_LIBRARY
"OpenSSL/1.1.1f"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1f"
REDIRECT_SSL_VERSION_INTERFACE
"mod_ssl_fake/1.0"
SSL_VERSION_INTERFACE
"mod_ssl_fake/1.0"
REDIRECT_HTTPS
"on"
HTTPS
"on"
REDIRECT_UNIQUE_ID
"YvJYujX4IizeHZUZvAd1eAAAAAI"
UNIQUE_ID
"YvJYujX4IizeHZUZvAd1eAAAAAI"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1660049594,7967
REQUEST_TIME
1660049594
0. Whoops\Handler\PrettyPageHandler