ParseError
syntax error, unexpected end of file, expecting ']' ParseError thrown with message "syntax error, unexpected end of file, expecting ']'" Stacktrace: #17 ParseError in /home/vrfunro/public_html/wp-content/cache/gantry5/rt_manticore/compiled/yaml/d1681d0ed734c948814f06f1e1cd7024.yaml.php:145 #16 RocketTheme\Toolbox\File\PhpFile:decode in /home/vrfunro/public_html/wp-content/plugins/gantry5/vendor/rockettheme/toolbox/File/src/AbstractFile.php:308 #15 RocketTheme\Toolbox\File\AbstractFile:content in /home/vrfunro/public_html/wp-content/plugins/gantry5/vendor/rockettheme/toolbox/File/src/File.php:26 #14 RocketTheme\Toolbox\File\File:content in /home/vrfunro/public_html/wp-content/plugins/gantry5/vendor/rockettheme/toolbox/File/src/PhpFile.php:32 #13 RocketTheme\Toolbox\File\PhpFile:content in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/File/CompiledFile.php:84 #12 Gantry\Component\File\CompiledYamlFile:content in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Config/CompiledConfig.php:106 #11 Gantry\Component\Config\CompiledConfig:loadFile in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Config/CompiledBase.php:161 #10 Gantry\Component\Config\CompiledBase:loadFiles in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Config/CompiledBase.php:97 #9 Gantry\Component\Config\CompiledBase:load in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Config/CompiledConfig.php:72 #8 Gantry\Component\Config\CompiledConfig:load in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php:136 #7 Gantry\Framework\Services\ConfigServiceProvider:load in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:168 #6 Gantry\Framework\Theme:setLayout in /home/vrfunro/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:167 #5 Gantry\Framework\Theme:set_template_layout in /home/vrfunro/public_html/wp-includes/class-wp-hook.php:292 #4 WP_Hook:apply_filters in /home/vrfunro/public_html/wp-includes/class-wp-hook.php:316 #3 WP_Hook:do_action in /home/vrfunro/public_html/wp-includes/plugin.php:484 #2 do_action in /home/vrfunro/public_html/wp-includes/template-loader.php:13 #1 require_once in /home/vrfunro/public_html/wp-blog-header.php:19 #0 require in /home/vrfunro/public_html/index.php:17
Stack frames (18)
17
ParseError
/home/vrfunro/public_html/wp-content/cache/gantry5/rt_manticore/compiled/yaml/d1681d0ed734c948814f06f1e1cd7024.yaml.php145
16
RocketTheme\Toolbox\File\PhpFile decode
/vendor/rockettheme/toolbox/File/src/AbstractFile.php308
15
RocketTheme\Toolbox\File\AbstractFile content
/vendor/rockettheme/toolbox/File/src/File.php26
14
RocketTheme\Toolbox\File\File content
/vendor/rockettheme/toolbox/File/src/PhpFile.php32
13
RocketTheme\Toolbox\File\PhpFile content
/src/classes/Gantry/Component/File/CompiledFile.php84
12
Gantry\Component\File\CompiledYamlFile content
/src/classes/Gantry/Component/Config/CompiledConfig.php106
11
Gantry\Component\Config\CompiledConfig loadFile
/src/classes/Gantry/Component/Config/CompiledBase.php161
10
Gantry\Component\Config\CompiledBase loadFiles
/src/classes/Gantry/Component/Config/CompiledBase.php97
9
Gantry\Component\Config\CompiledBase load
/src/classes/Gantry/Component/Config/CompiledConfig.php72
8
Gantry\Component\Config\CompiledConfig load
/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php136
7
Gantry\Framework\Services\ConfigServiceProvider load
/src/classes/Gantry/Component/Theme/ThemeTrait.php168
6
Gantry\Framework\Theme setLayout
/src/classes/Gantry/Framework/Theme.php167
5
Gantry\Framework\Theme set_template_layout
/home/vrfunro/public_html/wp-includes/class-wp-hook.php292
4
WP_Hook apply_filters
/home/vrfunro/public_html/wp-includes/class-wp-hook.php316
3
WP_Hook do_action
/home/vrfunro/public_html/wp-includes/plugin.php484
2
do_action
/home/vrfunro/public_html/wp-includes/template-loader.php13
1
require_once
/home/vrfunro/public_html/wp-blog-header.php19
0
require
/home/vrfunro/public_html/index.php17
                        1 => 'block',
                        2 => 'children'
                    ]
                ]
            ],
            'feature' => [
                'type' => 'section',
                'inherit' => [
                    'outline' => 'default',
                    'include' => [
                        0 => 'attributes',
                        1 => 'block',
                        2 => 'children'
                    ]
                ]
            ],
            'showcase' => [
                'type' => 'section',
                'inherit' => [
  
 
    /**
     * Get/set parsed file contents.
     *
     * @param string|array|null $var
     * @return string|array
     * @throws RuntimeException
     */
    public function content($var = null)
    {
        if ($var !== null) {
            $this->content = $this->check($var);
 
            // Update RAW, too.
            $this->raw = $this->encode($this->content);
 
        } elseif ($this->content === null) {
            // Decode RAW file.
            try {
                $this->content = $this->decode($this->raw());
            } catch (Exception $e) {
                throw new RuntimeException(sprintf('Failed to read %s: %s', $this->filename, $e->getMessage()), 500, $e);
            }
        }
 
        return $this->content;
    }
 
    /**
     * Save file.
     *
     * @param  mixed  $data  Optional data to be saved, usually array.
     * @return void
     * @throws RuntimeException
     */
    public function save($data = null)
    {
        if (null === $this->filename) {
            throw new RuntimeException('Failed to save file: no filename');
        }
/**
 * Implements Universal File Reader.
 *
 * @package RocketTheme\Toolbox\File
 * @author RocketTheme
 * @license MIT
 */
class File extends AbstractFile
{
    /**
     * Get/set parsed file contents.
     *
     * @param string|null $var
     * @return string
     * @throws RuntimeException
     */
    public function content($var = null)
    {
        /** @var string $content */
        $content = parent::content($var);
 
        return $content;
    }
}
 
 * @package RocketTheme\Toolbox\File
 * @author RocketTheme
 * @license MIT
 */
class PhpFile extends File
{
    /** @var string */
    protected $extension = '.php';
 
    /** @var static[] */
    static protected $instances = [];
 
    /**
     * @param array|null $var
     * @return array
     */
    public function content($var = null)
    {
        /** @var array $content */
        $content = parent::content($var);
 
        return $content;
    }
 
    /**
     * Saves PHP file and invalidates opcache.
     *
     * @param  mixed  $data  Optional data to be saved, usually array.
     * @return void
     * @throws RuntimeException
     */
    public function save($data = null)
    {
        parent::save($data);
 
        // Invalidate configuration file from the opcache.
        if (null !== $this->filename && function_exists('opcache_invalidate')) {
            @opcache_invalidate($this->filename, true);
        }
    }
    {
        if (!$this->cachePath) {
            throw new \BadMethodCallException("Cache path not defined for compiled file ({$this->filename})!");
        }
 
        try {
            // If nothing has been loaded, attempt to get pre-compiled version of the file first.
            if ($var === null && $this->raw === null && $this->content === null) {
                $modified = $this->modified();
 
                if (!$modified || !$this->caching) {
                    return $this->decode($this->raw());
                }
 
                $key = md5($this->filename);
                $file = PhpFile::instance($this->cachePath . "/{$key}{$this->extension}.php");
 
                $class = get_class($this);
 
                $cache = $file->exists() ? $file->content() : null;
 
                // Load real file if cache isn't up to date (or is invalid).
                if (!isset($cache['@class'])
                    || $cache['@class'] !== $class
                    || $cache['modified'] !== $modified
                    || $cache['filename'] !== $this->filename
                ) {
                    // Attempt to lock the file for writing.
                    try {
                        $file->lock(false);
                    } catch (\Exception $e) {
                        // Another process has locked the file; we will check this in a bit.
                    }
 
                    // Decode RAW file into compiled array.
                    $data = $this->decode($this->raw());
                    $cache = [
                        '@class' => $class,
                        'filename' => $this->filename,
                        'modified' => $modified,
        $this->object = new Config($data, $this->callable);
    }
 
    /**
     * Finalize configuration object.
     */
    protected function finalizeObject()
    {
    }
 
    /**
     * Load single configuration file and append it to the correct position.
     *
     * @param  string  $name  Name of the position.
     * @param  string  $filename  File to be loaded.
     */
    protected function loadFile($name, $filename)
    {
        $file = CompiledYamlFile::instance($filename);
        $this->object->join($name, $file->content(), '/');
        $file->free();
    }
}
 
     *
     * @param  string  $name  Name of the position.
     * @param  string  $filename  File to be loaded.
     */
    abstract protected function loadFile($name, $filename);
 
    /**
     * Load and join all configuration files.
     *
     * @return bool
     * @internal
     */
    protected function loadFiles()
    {
        $this->createObject();
 
        $list = array_reverse($this->files);
        foreach ($list as $files) {
            foreach ($files as $name => $item) {
                $this->loadFile($name, $this->path . $item['file']);
            }
        }
 
        $this->finalizeObject();
 
        return true;
    }
 
    /**
     * Load compiled file.
     *
     * @param  string  $filename
     * @return bool
     * @internal
     */
    protected function loadCompiledFile($filename)
    {
        $gantry = Gantry::instance();
 
        /** @var Config $global */
    /**
     * Function gets called when cached configuration is saved.
     */
    public function modified()
    {
    }
 
    /**
     * Load the configuration.
     *
     * @return mixed
     */
    public function load()
    {
        if ($this->object) {
            return $this->object;
        }
 
        $filename = $this->createFilename();
        if (!$this->loadCompiledFile($filename) && $this->loadFiles()) {
            $this->saveCompiledFile($filename);
        }
 
        return $this->object;
    }
 
    /**
     * Returns checksum from the configuration files.
     *
     * You can set $this->checksum = false to disable this check.
     *
     * @return bool|string
     */
    public function checksum()
    {
        if (!isset($this->checksum)) {
            $this->checksum = md5(json_encode($this->files) . $this->version);
        }
 
        return $this->checksum;
     *
     * @param callable $blueprints
     * @return $this
     */
    public function setBlueprints(callable $blueprints)
    {
        $this->callable = $blueprints;
 
        return $this;
    }
 
    /**
     * @param bool $withDefaults
     * @return mixed
     */
    public function load($withDefaults = false)
    {
        $this->withDefaults = $withDefaults;
 
        return parent::load();
    }
 
    /**
     * Create configuration object.
     *
     * @param  array  $data
     */
    protected function createObject(array $data = [])
    {
        if ($this->withDefaults && empty($data) && is_callable($this->callable)) {
            $blueprints = $this->callable;
            $data = $blueprints()->getDefaults();
        }
 
        $this->object = new Config($data, $this->callable);
    }
 
    /**
     * Finalize configuration object.
     */
        $paths = [[]];
        foreach ($uris as $uri) {
            $paths[] = $locator->findResources($uri);
        }
        $paths = array_merge(...$paths);
 
        // Locate all configuration files to be compiled.
        $files = (new ConfigFileFinder)->locateFiles($paths);
 
        $cache = $locator->findResource('gantry-cache://theme/compiled/config', true, true);
        if (is_bool($cache)) {
            throw new \RuntimeException('Who just removed Gantry 5 cache folder? Try reloading the page if it fixes the issue');
        }
 
        $compiled = new CompiledConfig($cache, $files, GANTRY5_ROOT);
        $compiled->setBlueprints(static function() use ($container) {
            return $container['blueprints'];
        });
 
        $config = $compiled->load($withDefaults);
 
        // Set atom inheritance.
        $atoms = $config->get('page.head.atoms');
        if (is_array($atoms)) {
            $config->set('page.head.atoms', (new Atoms($atoms))->init()->toArray());
        }
 
        return $config;
    }
}
 
        if ($force) {
            unset($gantry['configuration']);
        }
 
        // Set default name only if configuration has not been set before.
        if ($name === null && !isset($gantry['configuration'])) {
            $name = 'default';
        }
 
        $outline = isset($gantry['configuration']) ? $gantry['configuration'] : null;
 
        // Set configuration if given.
        if ($name && $name !== $outline) {
            if (\GANTRY_DEBUGGER) {
                Debugger::addMessage("Using Gantry outline {$name}");
            }
 
            $gantry['configuration'] = $name;
            unset($gantry['config']);
            $gantry['config'] = ConfigServiceProvider::load($gantry, $name);
        }
 
        return $this;
    }
 
    /**
     * Get current preset.
     *
     * @param  bool $forced     If true, return only forced preset or null.
     * @return string|null $preset
     */
    public function preset($forced = false)
    {
        $presets = $this->presets()->toArray();
 
        $preset = $this->preset;
 
        if (!$preset && !$forced) {
            /** @var Config $config */
            $config = static::gantry()['config'];
 
        // Include Gantry specific things to the context.
        $context = array_replace($timberContext, $context);
 
        return $this->renderer()->render($file, $context);
    }
 
    public function set_template_layout()
    {
        $assignments = new Assignments();
        $selected = $assignments->select();
 
        if (\GANTRY_DEBUGGER) {
            Debugger::addMessage('Selecting outline (rules, matches, scores):', 'debug');
            Debugger::addMessage($assignments->getPage(), 'debug');
            Debugger::addMessage($assignments->matches(), 'debug');
            Debugger::addMessage($assignments->scores(), 'debug');
        }
 
        $this->setLayout($selected);
    }
 
    public function widgets_init()
    {
        $gantry = Gantry::instance();
 
        /** @var Outlines $outlines */
        $outlines = $gantry['outlines'];
 
        // Positions are set inside layouts and we need to grab all of them as we do not yet know which layout will be
        // displayed. We also need to register all the positions for the admin.
        $positions = $outlines->positions();
 
        if (!$positions) {
            // No positions are set; display notification in admin.
            \add_action('load-widgets.php',
                function() {
                    \add_action('admin_notices', function() {
                        echo '<div class="error"><p>' . \__('No widget blocks have been defined. Please add some in Gantry 5 Layout Manger or read <a target="_blank" rel="noopener" href="http://docs.gantry.org/gantry5/particles/position">documentation</a> on how to create widget blocks.', 'gantry5') . '</p></div>';
                    });
 
        $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.
        } 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.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
 
    if ( ! isset( $wp_filter[ $tag ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    if ( empty( $arg ) ) {
        $arg[] = '';
    } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
        // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
        $arg[0] = $arg[0][0];
    }
 
    $wp_filter[ $tag ]->do_action( $arg );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global int[] $wp_actions Stores the number of times each action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action( $tag ) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) ) {
        return 0;
    }
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * @package WordPress
 */
if ( wp_using_themes() ) {
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
}
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    exit;
}
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) {
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
} elseif ( is_favicon() ) {
    /**
<?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';
 
}
 
<?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:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /two-sidebars/
CONTEXT_DOCUMENT_ROOT /home/vrfunro/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/vrfunro/public_html
GATEWAY_INTERFACE CGI/1.1
HTTPS on
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_AUTHORIZATION
HTTP_HOST vrfun.ro
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_PROTO https
HTTP_X_HTTPS 1
HTTP_X_REAL_IP 34.228.52.21
HTTP_X_SCHEME https
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://vrfun.ro/two-sidebars/
REDIRECT_SCRIPT_URL /two-sidebars/
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZXGcpaAlniv7bAsneVPQDQAAAEU
REDIRECT_URL /two-sidebars/
REMOTE_ADDR 34.228.52.21
REMOTE_PORT 57658
REQUEST_METHOD GET
REQUEST_SCHEME https
SCRIPT_FILENAME /home/vrfunro/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://vrfun.ro/two-sidebars/
SCRIPT_URL /two-sidebars/
SERVER_ADDR 185.146.87.183
SERVER_ADMIN webmaster@vrfun.ro
SERVER_NAME vrfun.ro
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
TZ Europe/Bucharest
UNIQUE_ID ZXGcpaAlniv7bAsneVPQDQAAAEU
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1701944485.6987
REQUEST_TIME 1701944485
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler