ErrorException (E_ERROR)
Undefined variable: descriptionFirst (View: /home/gh420653/babybox.store/www/wp-content/themes/babybox/resources/views/single.blade.php)
Previous exceptions
  • Undefined variable: descriptionFirst (8)
ErrorException thrown with message "Undefined variable: descriptionFirst (View: /home/gh420653/babybox.store/www/wp-content/themes/babybox/resources/views/single.blade.php)" Stacktrace: #15 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/Engines/PhpEngine.php:45 #14 Whoops\Exception\ErrorException in /home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php:24 #13 Whoops\Run:handleError in /home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php:24 #12 include in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/Engines/PhpEngine.php:43 #11 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/Engines/CompilerEngine.php:59 #10 Illuminate\View\Engines\CompilerEngine:get in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/View.php:142 #9 Illuminate\View\View:getContents in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/View.php:125 #8 Illuminate\View\View:renderContents in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/illuminate/view/View.php:90 #7 Illuminate\View\View:render in /home/gh420653/babybox.store/www/wp-content/themes/babybox/vendor/roots/sage-lib/Template/Blade.php:58 #6 Roots\Sage\Template\Blade:render in /home/gh420653/babybox.store/www/wp-content/themes/babybox/app/helpers.php:55 #5 App\template in /home/gh420653/babybox.store/www/wp-content/themes/babybox/app/filters.php:63 #4 App\{closure} in /home/gh420653/babybox.store/www/wp-includes/class-wp-hook.php:292 #3 WP_Hook:apply_filters in /home/gh420653/babybox.store/www/wp-includes/plugin.php:212 #2 apply_filters in /home/gh420653/babybox.store/www/wp-includes/template-loader.php:104 #1 require_once in /home/gh420653/babybox.store/www/wp-blog-header.php:19 #0 require in /home/gh420653/babybox.store/www/index.php:17
Stack frames (16)
15
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/illuminate/view/Engines/PhpEngine.php45
14
Whoops\Exception\ErrorException
/home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php24
13
Whoops\Run handleError
/home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php24
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
App\template
/app/filters.php63
4
App\{closure}
/home/gh420653/babybox.store/www/wp-includes/class-wp-hook.php292
3
WP_Hook apply_filters
/home/gh420653/babybox.store/www/wp-includes/plugin.php212
2
apply_filters
/home/gh420653/babybox.store/www/wp-includes/template-loader.php104
1
require_once
/home/gh420653/babybox.store/www/wp-blog-header.php19
0
require
/home/gh420653/babybox.store/www/index.php17
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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();
/home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php
 
      <div class="article">
        <div class="article__subtitle">
          <?php the_content() ?>
        </div>
        <h1 class="article__title"><?php echo e(get_the_title()); ?></h1>
 
        <div class="article__time">
          <div class="article__time-time">
            <img src="<?php echo e($theme_path); ?>/assets/img/date.svg" alt="">
            <time class="updated" datetime="<?php echo e(get_post_time('c', true)); ?>"><?php echo e(get_the_date()); ?></time>
          </div>
          <div class="article__time-view">
            <img src="<?php echo e($theme_path); ?>/assets/img/eye.svg" alt="">
            <span><?php echo e($viewed); ?></span>
          </div>
        </div>
 
        <div class="article__firstContent">
          <?php echo $descriptionFirst; ?>
 
        </div>
 
        <?php if($slider): ?>
          <div class="article__slider">
            <div class="article__slider-wrap">
              <?php $__currentLoopData = $slider; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <img
                  src="<?php echo e($item->url); ?>"
                  alt="">
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        <?php endif; ?>
 
 
 
 
 
 
Exception message: Undefined variable: descriptionFirst
/home/gh420653/babybox.store/www/wp-content/uploads/cache/fdbf6500599b9c20ea6fe3b73fb72b30340f74b7.php
 
      <div class="article">
        <div class="article__subtitle">
          <?php the_content() ?>
        </div>
        <h1 class="article__title"><?php echo e(get_the_title()); ?></h1>
 
        <div class="article__time">
          <div class="article__time-time">
            <img src="<?php echo e($theme_path); ?>/assets/img/date.svg" alt="">
            <time class="updated" datetime="<?php echo e(get_post_time('c', true)); ?>"><?php echo e(get_the_date()); ?></time>
          </div>
          <div class="article__time-view">
            <img src="<?php echo e($theme_path); ?>/assets/img/eye.svg" alt="">
            <span><?php echo e($viewed); ?></span>
          </div>
        </div>
 
        <div class="article__firstContent">
          <?php echo $descriptionFirst; ?>
 
        </div>
 
        <?php if($slider): ?>
          <div class="article__slider">
            <div class="article__slider-wrap">
              <?php $__currentLoopData = $slider; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <img
                  src="<?php echo e($item->url); ?>"
                  alt="">
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
          </div>
        <?php endif; ?>
 
 
 
 
 
 
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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)
    {
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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);
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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;
    }
 
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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/gh420653/babybox.store/www/wp-content/themes/babybox/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/gh420653/babybox.store/www/wp-content/themes/babybox/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/gh420653/babybox.store/www/wp-content/themes/babybox/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 template($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);
/home/gh420653/babybox.store/www/wp-content/themes/babybox/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 template($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);
    }, []);
 
    $theme_template = locate_template(["views/{$comments_template}", $comments_template]);
/home/gh420653/babybox.store/www/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.
/home/gh420653/babybox.store/www/wp-includes/plugin.php
    if ( isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
        _wp_call_all_hook( $args );
    }
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    // Don't pass the tag name to WP_Hook.
    array_shift( $args );
 
    $filtered = $wp_filter[ $tag ]->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 `$tag` 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 $tag  The name of the filter hook.
 * @param array  $args The arguments supplied to the functions hooked to $tag.
 * @return mixed The filtered value after all hooked functions are applied to it.
/home/gh420653/babybox.store/www/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;
}
 
/home/gh420653/babybox.store/www/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';
 
}
 
/home/gh420653/babybox.store/www/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';
 

Environment & details:

Key Value
attachment_id 637
empty
empty
Key Value
babybox_wc_wishlist
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /?attachment_id=637
TMPDIR /home/gh420653/.system/tmp
PHPRC /home/gh420653/.system/php/www.babybox.store.ini
TEMP /home/gh420653/.system/tmp
PATH /usr/local/bin:/usr/bin:/bin
PWD /home/gh420653/babybox.store/www/
SHLVL 0
TMP /home/gh420653/.system/tmp
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_CONNECTION close
CONTENT_LENGTH 0
HTTP_HOST babybox.store
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_GEOIP_COUNTRY_CODE US
HTTP_SSL 1
HTTP_X_FORWARDED_PROTO https
UNIQUE_ID YMcjhZN5ZvjnsTCclMhujwAAAAw
DETECTED_CMS wordpress
HTTPS on
SCRIPT_URL /
SCRIPT_URI http://babybox.store/
vhost_id 1810600
account_id 420653
HTTP_AUTHORIZATION
SERVER_SIGNATURE
SERVER_NAME babybox.store
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 3.238.249.157
DOCUMENT_ROOT /home/gh420653/babybox.store/www/
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/gh420653/babybox.store/www/
SERVER_ADMIN wonderlyua@gmail.com
SCRIPT_FILENAME /home/gh420653/babybox.store/www/index.php
REMOTE_PORT 19958
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING attachment_id=637
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1623663493.4697
REQUEST_TIME 1623663493
empty
0. Whoops\Handler\PrettyPageHandler