Illuminate \ View \ ViewException (E_ERROR)
count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php) (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php)
Previous exceptions
  • count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php) (0)
  • count(): Argument #1 ($value) must be of type Countable|array, string given (0)
Illuminate\View\ViewException thrown with message "count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php) (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php)" Stacktrace: #23 Illuminate\View\ViewException in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php:7 #22 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/PhpEngine.php:60 #21 Illuminate\View\ViewException in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php:7 #20 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/PhpEngine.php:60 #19 TypeError in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php:7 #18 require in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/filesystem/Filesystem.php:109 #17 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/filesystem/Filesystem.php:110 #16 Illuminate\Filesystem\Filesystem:getRequire in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/PhpEngine.php:58 #15 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/CompilerEngine.php:70 #14 Illuminate\View\Engines\CompilerEngine:get in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:195 #13 Illuminate\View\View:getContents in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:178 #12 Illuminate\View\View:renderContents in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:147 #11 Illuminate\View\View:render in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/c00a73ac96005e857af1b6d6fa9c1191dc01595d.php:45 #10 require in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/filesystem/Filesystem.php:109 #9 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/filesystem/Filesystem.php:110 #8 Illuminate\Filesystem\Filesystem:getRequire in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/PhpEngine.php:58 #7 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/Engines/CompilerEngine.php:70 #6 Illuminate\View\Engines\CompilerEngine:get in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:195 #5 Illuminate\View\View:getContents in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:178 #4 Illuminate\View\View:renderContents in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php:147 #3 Illuminate\View\View:render in /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/index.php:1 #2 include in /home/forge/www.dalarnasciencepark.se/web/wp/wp-includes/template-loader.php:106 #1 require_once in /home/forge/www.dalarnasciencepark.se/web/wp/wp-blog-header.php:19 #0 require in /home/forge/www.dalarnasciencepark.se/web/index.php:11
23
Illuminate\View\ViewException
/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php7
22
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
21
Illuminate\View\ViewException
/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php7
20
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php60
19
TypeError
/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php7
18
require
/vendor/illuminate/filesystem/Filesystem.php109
17
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/illuminate/filesystem/Filesystem.php110
16
Illuminate\Filesystem\Filesystem getRequire
/vendor/illuminate/view/Engines/PhpEngine.php58
15
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php70
14
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php195
13
Illuminate\View\View getContents
/vendor/illuminate/view/View.php178
12
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php147
11
Illuminate\View\View render
/storage/framework/views/c00a73ac96005e857af1b6d6fa9c1191dc01595d.php45
10
require
/vendor/illuminate/filesystem/Filesystem.php109
9
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/illuminate/filesystem/Filesystem.php110
8
Illuminate\Filesystem\Filesystem getRequire
/vendor/illuminate/view/Engines/PhpEngine.php58
7
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/illuminate/view/Engines/CompilerEngine.php70
6
Illuminate\View\Engines\CompilerEngine get
/vendor/illuminate/view/View.php195
5
Illuminate\View\View getContents
/vendor/illuminate/view/View.php178
4
Illuminate\View\View renderContents
/vendor/illuminate/view/View.php147
3
Illuminate\View\View render
/index.php1
2
include
/home/forge/www.dalarnasciencepark.se/web/wp/wp-includes/template-loader.php106
1
require_once
/home/forge/www.dalarnasciencepark.se/web/wp/wp-blog-header.php19
0
require
/home/forge/www.dalarnasciencepark.se/web/index.php11
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php
<?php $i = 0;?>
<?php if(get_field('relationship')): ?>
    <!-- partials/page-footer.blade.php -->
    <?php
    $counter = 0;
    $relationships = get_field('relationship');
    $count = count($relationships);
    ?>
    <div class="bottom-box-container">
        <?php $__currentLoopData = $relationships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php ($item = $item['items']); ?>
            <?php if(! $item) continue; ?>
            <?php if($i == 0): ?>
                <div class="row">
            <?php endif; ?>
            <?php if($item->post_type == 'personel'): ?>
                <?php echo $__env->make('partials.contact-card', ['meta_key' => $key], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php else: ?>
                <div class="col-md-6 bottom-box">
                    <div class="standard type-<?php echo e($i); ?>">
                        <p class="title">
                            <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo e($item->post_title); ?></a>
                        </p>
                        <p class="ingress">
                            <?php echo e(App\get_custom_excerpt($item->ID, 'small')); ?>
 
                        </p>
                        <p class="read-more">
                            <?php if($item->post_type == 'organisation'): ?>
                                <a href="<?php echo e(get_field('link', $item->ID)['url']); ?>"
                                   target="_blank"><?php echo e(get_field('link', $item['ID'])['title']); ?></a>
 
                            <?php else: ?>
                                <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo __('Read more', 'popcorn'); ?></a>
                            <?php endif; ?>
                        </p>
                        <?php if($item->post_type == "organisation"): ?>
                            <div class="organisation-image">
                                <?php if(get_the_post_thumbnail_url($item->ID)): ?>
                                    <img src="<?php echo e(get_the_post_thumbnail_url($item->ID, 'full')); ?>" alt="<?php echo e(the_title_attribute()); ?>">
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php) (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php)"
    
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php
<?php $i = 0;?>
<?php if(get_field('relationship')): ?>
    <!-- partials/page-footer.blade.php -->
    <?php
    $counter = 0;
    $relationships = get_field('relationship');
    $count = count($relationships);
    ?>
    <div class="bottom-box-container">
        <?php $__currentLoopData = $relationships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php ($item = $item['items']); ?>
            <?php if(! $item) continue; ?>
            <?php if($i == 0): ?>
                <div class="row">
            <?php endif; ?>
            <?php if($item->post_type == 'personel'): ?>
                <?php echo $__env->make('partials.contact-card', ['meta_key' => $key], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php else: ?>
                <div class="col-md-6 bottom-box">
                    <div class="standard type-<?php echo e($i); ?>">
                        <p class="title">
                            <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo e($item->post_title); ?></a>
                        </p>
                        <p class="ingress">
                            <?php echo e(App\get_custom_excerpt($item->ID, 'small')); ?>
 
                        </p>
                        <p class="read-more">
                            <?php if($item->post_type == 'organisation'): ?>
                                <a href="<?php echo e(get_field('link', $item->ID)['url']); ?>"
                                   target="_blank"><?php echo e(get_field('link', $item['ID'])['title']); ?></a>
 
                            <?php else: ?>
                                <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo __('Read more', 'popcorn'); ?></a>
                            <?php endif; ?>
                        </p>
                        <?php if($item->post_type == "organisation"): ?>
                            <div class="organisation-image">
                                <?php if(get_the_post_thumbnail_url($item->ID)): ?>
                                    <img src="<?php echo e(get_the_post_thumbnail_url($item->ID, 'full')); ?>" alt="<?php echo e(the_title_attribute()); ?>">
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php)"
    
Exception message: count(): Argument #1 ($value) must be of type Countable|array, string given (View: /home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/resources/views/partials/page-footer.blade.php)
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/877cf12e426bd531e6c5c7401b7e5599770a8845.php
<?php $i = 0;?>
<?php if(get_field('relationship')): ?>
    <!-- partials/page-footer.blade.php -->
    <?php
    $counter = 0;
    $relationships = get_field('relationship');
    $count = count($relationships);
    ?>
    <div class="bottom-box-container">
        <?php $__currentLoopData = $relationships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php ($item = $item['items']); ?>
            <?php if(! $item) continue; ?>
            <?php if($i == 0): ?>
                <div class="row">
            <?php endif; ?>
            <?php if($item->post_type == 'personel'): ?>
                <?php echo $__env->make('partials.contact-card', ['meta_key' => $key], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php else: ?>
                <div class="col-md-6 bottom-box">
                    <div class="standard type-<?php echo e($i); ?>">
                        <p class="title">
                            <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo e($item->post_title); ?></a>
                        </p>
                        <p class="ingress">
                            <?php echo e(App\get_custom_excerpt($item->ID, 'small')); ?>
 
                        </p>
                        <p class="read-more">
                            <?php if($item->post_type == 'organisation'): ?>
                                <a href="<?php echo e(get_field('link', $item->ID)['url']); ?>"
                                   target="_blank"><?php echo e(get_field('link', $item['ID'])['title']); ?></a>
 
                            <?php else: ?>
                                <a href="<?php echo e(get_the_permalink($item->ID)); ?>"><?php echo __('Read more', 'popcorn'); ?></a>
                            <?php endif; ?>
                        </p>
                        <?php if($item->post_type == "organisation"): ?>
                            <div class="organisation-image">
                                <?php if(get_the_post_thumbnail_url($item->ID)): ?>
                                    <img src="<?php echo e(get_the_post_thumbnail_url($item->ID, 'full')); ?>" alt="<?php echo e(the_title_attribute()); ?>">
Arguments
  1. "count(): Argument #1 ($value) must be of type Countable|array, string given"
    
Exception message: count(): Argument #1 ($value) must be of type Countable|array, string given
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php
    {
        if (value($boolean)) {
            return $this->fragments($fragments);
        }
 
        return $this->render();
    }
 
    /**
     * 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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/c00a73ac96005e857af1b6d6fa9c1191dc01595d.php
 
                <?php if(get_post_type() == 'post'): ?>
                    <?php echo $__env->make('partials.post-footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endif; ?>
            </article>
        </div>
        <div class="col-sm-6 chosen-image hidden-xs">
            <div class="article-image ie-fix-image-container">
                <?php if(get_the_post_thumbnail_url()): ?>
                    <img src="<?php echo e(get_the_post_thumbnail_url()); ?>" align="middle" alt="<?php echo e(the_title_attribute()); ?>">
                <?php endif; ?>
                <?php if(get_field('with_menu') == true): ?>
                    <?php echo $__env->make('partials.submenu', ['mobile' => false], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endif; ?>
            </div>
 
        </div>
    </div>
 
    <?php echo $__env->make('partials.page-footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  <?php endwhile; wp_reset_postdata(); $__env->popLoop(); $loop = $__env->getLastLoop(); endif; ?>
<?php $__env->stopSection(); ?>
 
<?php $__env->startSection('scripts'); ?>
    <script>
        var called = false;
        function checkOffset(called) {
            if (called) {
 
                if (jQuery('.bottom-box-container').length) {
                    $container = jQuery('.bottom-box-container');
                } else {
                    $container = jQuery('footer');
                }
                var extra = 0;
                if (jQuery('#wpadminbar').length) {
                    extra = 32;
                }
 
                if (jQuery('.chosen-image').offset().top + jQuery('.chosen-image').height()
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/storage/framework/views/c00a73ac96005e857af1b6d6fa9c1191dc01595d.php"
    
/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/vendor/illuminate/view/View.php
    {
        if (value($boolean)) {
            return $this->fragments($fragments);
        }
 
        return $this->render();
    }
 
    /**
     * 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/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/index.php
<?= view(app('horizon.view'), app('horizon.data'))->render();
 
/home/forge/www.dalarnasciencepark.se/web/wp/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/forge/www.dalarnasciencepark.se/web/app/themes/dalarna-theme/index.php"
    
/home/forge/www.dalarnasciencepark.se/web/wp/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/forge/www.dalarnasciencepark.se/web/wp/wp-includes/template-loader.php"
    
/home/forge/www.dalarnasciencepark.se/web/index.php
<?php
 
/**
 * WordPress View Bootstrapper
 */
 
declare(strict_types=1);
 
define('WP_USE_THEMES', true);
 
require __DIR__.'/wp/wp-blog-header.php';
 
Arguments
  1. "/home/forge/www.dalarnasciencepark.se/web/wp/wp-blog-header.php"
    

Environment & details:

Key Value
query_vars
array:3 [
  "page" => ""
  "name" => "food-entrepreneurs-in-china"
  "lang" => "en"
]
query_string
"name=food-entrepreneurs-in-china&lang=en"
request
"en/inlagg/food-entrepreneurs-in-china"
matched_rule
"(en)/inlagg/([^/]+)(?:/([0-9]+))?/?$"
matched_query
"lang=en&name=food-entrepreneurs-in-china&page="
did_permalink
true
Key Value
query
array:3 [
  "page" => ""
  "name" => "food-entrepreneurs-in-china"
  "lang" => "en"
]
query_vars
array:67 [
  "page" => 0
  "name" => "food-entrepreneurs-in-china"
  "lang" => "en"
  "error" => ""
  "m" => ""
  "p" => 0
  "post_parent" => ""
  "subpost" => ""
  "subpost_id" => ""
  "attachment" => ""
  "attachment_id" => 0
  "pagename" => ""
  "page_id" => 0
  "second" => ""
  "minute" => ""
  "hour" => ""
  "day" => 0
  "monthnum" => 0
  "year" => 0
  "w" => 0
  "category_name" => ""
  "tag" => ""
  "cat" => ""
  "tag_id" => ""
  "author" => ""
  "author_name" => ""
  "feed" => ""
  "tb" => ""
  "paged" => 0
  "meta_key" => ""
  "meta_value" => ""
  "preview" => ""
  "s" => ""
  "sentence" => ""
  "title" => ""
  "fields" => ""
  "menu_order" => ""
  "embed" => ""
  "category__in" => []
  "category__not_in" => []
  "category__and" => []
  "post__in" => []
  "post__not_in" => []
  "post_name__in" => []
  "tag__in" => []
  "tag__not_in" => []
  "tag__and" => []
  "tag_slug__in" => []
  "tag_slug__and" => []
  "post_parent__in" => []
  "post_parent__not_in" => []
  "author__in" => []
  "author__not_in" => []
  "search_columns" => []
  "ignore_sticky_posts" => false
  "suppress_filters" => false
  "cache_results" => true
  "update_post_term_cache" => true
  "update_menu_item_cache" => false
  "lazy_load_term_meta" => true
  "update_post_meta_cache" => true
  "post_type" => ""
  "posts_per_page" => 10
  "nopaging" => false
  "comments_per_page" => "50"
  "no_found_rows" => false
  "order" => "DESC"
]
meta_query
WP_Meta_Query {#2892}
queried_object
WP_Post {#3220}
queried_object_id
6073
request
"""
\n
\t\t\tSELECT   wp_posts.*\n
\t\t\tFROM wp_posts \n
\t\t\tWHERE 1=1  AND wp_posts.post_name = 'food-entrepreneurs-in-china' AND wp_posts.post_type = 'post'\n
\t\t\t\n
\t\t\tORDER BY wp_posts.post_date DESC\n
\t\t\t\n
\t\t
"""
post_count
1
in_the_loop
true
current_comment
-1
found_posts
1
is_single
true
is_singular
true
Key Value
ID
6073
post_author
"19"
post_date
"2019-06-24 08:51:23"
post_date_gmt
"2019-06-24 06:51:23"
post_content
"""
<strong>More than fifteen Swedish companies were in May in Shandong and Yanzhou and Shanghai, China. Food was the focus of both making contacts and selling and buying products. The companies have participated in a process to test imports, test their brand and so on.</strong>\r\n
\r\n
In March, seminaries were held out for exports to China in four different cities in Sweden, including Borlänge. The training was part of the project SIAL 2019, which is funded by the Swedish Growth Agency. Much like last year, much of the work was done with consultant Per Lindén from Shanghai.\r\n
\r\n
The trip to China to carry out the project was carried out for two weeks in May. At most, 42 people participated in the delegation from 11 regions in Sweden. The journey started in Shangdong Province with eleven companies from the food industry. There, the companies "pitched" their products to the participating Chinese companies to then conduct a "matchmaking" and a full 234 meetings were conducted over two days! The host organization organized several study visits to various Chinese food companies, including Alibaba's logistics hub.\r\n
\r\n
- The reception of Shandong Province has been extremely positive and the first agreement on cooperation has been signed between Dalarna Science Park and Shandong Yanzhou Industrial Park, Sture Ericsson CEO of Dalarna Science Park.\r\n
\r\n
The delegation then proceeded to Shanghai where the companies were trained and conducted visits to an online company. A Swedish product week at a supermarket in Shanghai was inaugurated where the companies have their products for sale and tasting to the Chinese consumers for a short time. Subsequently, the food fair followed SIAL 2019 for three days where participating companies presented their products. Finally, the “Nordic Hub” was visited where Swedish food products are presented in a “showroom”. There was also a "matchmaking" between Swedish and Chinese companies, all in all, 285 meetings!\r\n
\r\n
Dalarna Science Park together with two companies also visited the partner Shanghai Pudong Software Park where both company presentations and individual meetings were held. Shanghai Pudong Software Park also expressed a desire to visit Dalarna Science Park in early July.\r\n
\r\n
The focus of the Enterprise Europe Network is now to follow up meetings and contacts.
"""
post_title
"Food entrepreneures in China"
post_excerpt
""
post_status
"publish"
comment_status
"closed"
ping_status
"closed"
post_password
""
post_name
"food-entrepreneurs-in-china"
to_ping
""
pinged
""
post_modified
"2020-05-06 18:57:55"
post_modified_gmt
"2020-05-06 16:57:55"
post_content_filtered
""
post_parent
0
guid
"https://www.dalarnasciencepark.se/?p=6073"
menu_order
0
post_type
"post"
post_mime_type
""
comment_count
"0"
filter
"raw"
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"nginx/1.24.0"
REQUEST_URI
"/en/inlagg/food-entrepreneurs-in-china/"
USER
"forge"
HOME
"/home/forge"
HTTP_REFERER
"https://www.dalarnasciencepark.se/inlagg/food-entrepreneurs-in-china/"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"www.dalarnasciencepark.se"
REDIRECT_STATUS
"200"
HTTPS
"on"
SERVER_NAME
"www.dalarnasciencepark.se"
SERVER_PORT
"443"
SERVER_ADDR
"65.108.248.196"
REMOTE_PORT
"60204"
REMOTE_ADDR
"3.88.16.192"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/home/forge/www.dalarnasciencepark.se/web"
DOCUMENT_URI
"/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"/home/forge/www.dalarnasciencepark.se/web/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711667726.2965
REQUEST_TIME
1711667726
WP_ENV
"production"
WP_HOME
"https://www.dalarnasciencepark.se"
WP_SITEURL
"https://www.dalarnasciencepark.se/wp"
DB_NAME
"dalarnascience_wp"
DB_USER
"dalarnascience_wp"
DB_PASSWORD
"********************"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
Key Value
WP_ENV
"production"
WP_HOME
"https://www.dalarnasciencepark.se"
WP_SITEURL
"https://www.dalarnasciencepark.se/wp"
DB_NAME
"dalarnascience_wp"
DB_USER
"dalarnascience_wp"
DB_PASSWORD
"********************"
AUTH_KEY
"****************************************************************"
SECURE_AUTH_KEY
"****************************************************************"
LOGGED_IN_KEY
"****************************************************************"
NONCE_KEY
"****************************************************************"
AUTH_SALT
"****************************************************************"
SECURE_AUTH_SALT
"****************************************************************"
LOGGED_IN_SALT
"****************************************************************"
NONCE_SALT
"****************************************************************"
0. Whoops\Handler\PrettyPageHandler