ParseError
syntax error, unexpected ''templates/rt_versla/p' (T_ENCAPSED_AND_WHITESPACE) ParseError thrown with message "syntax error, unexpected ''templates/rt_versla/p' (T_ENCAPSED_AND_WHITESPACE)" Stacktrace: #31 ParseError in /home/nbiyhhwa/public_html/cache/gantry5/rt_versla/compiled/blueprints/51e36b6dabd623f3b8127e45bad9add7.php:97 #30 Gantry\Component\Config\CompiledBase:loadCompiledFile in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Config/CompiledBase.php:97 #29 Gantry\Component\Config\CompiledBase:load in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php:98 #28 Gantry\Framework\Services\ConfigServiceProvider:blueprints in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php:44 #27 Gantry\Framework\Services\ConfigServiceProvider:Gantry\Framework\Services\{closure} in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/pimple/pimple/src/Pimple/Container.php:122 #26 Pimple\Container:offsetGet in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php:134 #25 Gantry\Framework\Services\ConfigServiceProvider:Gantry\Framework\Services\{closure} in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Config/Config.php:239 #24 Gantry\Component\Config\Config:blueprint in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Config/Config.php:143 #23 Gantry\Component\Config\Config:getJoined in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:762 #22 Gantry\Framework\Theme:getContent in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:416 #21 Gantry\Framework\Theme:loadAtoms in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:700 #20 Twig\Template:getAttribute in /home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/29/2963d7f68a47d79b2c2399a3a11062371c77214b938879b456aa338da0dfc222.php:45 #19 __TwigTemplate_76f8160950f0f18ae473384c25ed60ad51cc7cb5d13dcfad94526987fa2cb32b:doDisplay in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #18 Twig\Template:displayWithErrorHandling in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #17 Twig\Template:display in /home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/ae/aeb9c3f106ec097fe7a72262b17a0e46029f75268a3f138c0e7fca9d75e1495d.php:35 #16 __TwigTemplate_f369829a87a873ccde65a014e4fabb1fb02d5c8296bdd47ce14a09a1ffaafebc:doDisplay in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #15 Twig\Template:displayWithErrorHandling in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #14 Twig\Template:display in /home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/5e/5e44fa477fe3b370a4914542f3942e8968789abc6ffc1ce4f7c2d2746d70eb98.php:35 #13 __TwigTemplate_c88f5f9b38a68411ea944012eabdf2b1a37b71afe41d9b3079d66f02d0cf5b56:doDisplay in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:453 #12 Twig\Template:displayWithErrorHandling in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:420 #11 Twig\Template:display in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Template.php:432 #10 Twig\Template:render in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #9 Twig\TemplateWrapper:render in /home/nbiyhhwa/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Environment.php:384 #8 Twig\Environment:render in /home/nbiyhhwa/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php:176 #7 Gantry\Component\Theme\AbstractTheme:render in /home/nbiyhhwa/public_html/templates/rt_versla/index.php:30 #6 require in /home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php:678 #5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php:740 #4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php:555 #3 Joomla\CMS\Document\HtmlDocument:parse in /home/nbiyhhwa/public_html/libraries/src/Application/CMSApplication.php:1098 #2 Joomla\CMS\Application\CMSApplication:render in /home/nbiyhhwa/public_html/libraries/src/Application/SiteApplication.php:778 #1 Joomla\CMS\Application\SiteApplication:render in /home/nbiyhhwa/public_html/libraries/src/Application/CMSApplication.php:231 #0 Joomla\CMS\Application\CMSApplication:execute in /home/nbiyhhwa/public_html/index.php:49
Stack frames (32)
31
ParseError
/home/nbiyhhwa/public_html/cache/gantry5/rt_versla/compiled/blueprints/51e36b6dabd623f3b8127e45bad9add7.php97
30
Gantry\Component\Config\CompiledBase loadCompiledFile
/src/classes/Gantry/Component/Config/CompiledBase.php97
29
Gantry\Component\Config\CompiledBase load
/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php98
28
Gantry\Framework\Services\ConfigServiceProvider blueprints
/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php44
27
Gantry\Framework\Services\ConfigServiceProvider Gantry\Framework\Services\{closure}
/compat/vendor/pimple/pimple/src/Pimple/Container.php122
26
Pimple\Container offsetGet
/src/classes/Gantry/Framework/Services/ConfigServiceProvider.php134
25
Gantry\Framework\Services\ConfigServiceProvider Gantry\Framework\Services\{closure}
/src/classes/Gantry/Component/Config/Config.php239
24
Gantry\Component\Config\Config blueprint
/src/classes/Gantry/Component/Config/Config.php143
23
Gantry\Component\Config\Config getJoined
/src/classes/Gantry/Component/Theme/ThemeTrait.php762
22
Gantry\Framework\Theme getContent
/src/classes/Gantry/Component/Theme/ThemeTrait.php416
21
Gantry\Framework\Theme loadAtoms
/compat/vendor/twig/twig/src/Template.php700
20
Twig\Template getAttribute
/home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/29/2963d7f68a47d79b2c2399a3a11062371c77214b938879b456aa338da0dfc222.php45
19
__TwigTemplate_76f8160950f0f18ae473384c25ed60ad51cc7cb5d13dcfad94526987fa2cb32b doDisplay
/compat/vendor/twig/twig/src/Template.php453
18
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
17
Twig\Template display
/home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/ae/aeb9c3f106ec097fe7a72262b17a0e46029f75268a3f138c0e7fca9d75e1495d.php35
16
__TwigTemplate_f369829a87a873ccde65a014e4fabb1fb02d5c8296bdd47ce14a09a1ffaafebc doDisplay
/compat/vendor/twig/twig/src/Template.php453
15
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
14
Twig\Template display
/home/nbiyhhwa/public_html/cache/gantry5/rt_versla/twig/5e/5e44fa477fe3b370a4914542f3942e8968789abc6ffc1ce4f7c2d2746d70eb98.php35
13
__TwigTemplate_c88f5f9b38a68411ea944012eabdf2b1a37b71afe41d9b3079d66f02d0cf5b56 doDisplay
/compat/vendor/twig/twig/src/Template.php453
12
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
11
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
10
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
9
Twig\TemplateWrapper render
/compat/vendor/twig/twig/src/Environment.php384
8
Twig\Environment render
/src/classes/Gantry/Component/Theme/AbstractTheme.php176
7
Gantry\Component\Theme\AbstractTheme render
/home/nbiyhhwa/public_html/templates/rt_versla/index.php30
6
require
/home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php678
5
Joomla\CMS\Document\HtmlDocument _loadTemplate
/home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php740
4
Joomla\CMS\Document\HtmlDocument _fetchTemplate
/home/nbiyhhwa/public_html/libraries/src/Document/HtmlDocument.php555
3
Joomla\CMS\Document\HtmlDocument parse
/home/nbiyhhwa/public_html/libraries/src/Application/CMSApplication.php1098
2
Joomla\CMS\Application\CMSApplication render
/home/nbiyhhwa/public_html/libraries/src/Application/SiteApplication.php778
1
Joomla\CMS\Application\SiteApplication render
/home/nbiyhhwa/public_html/libraries/src/Application/CMSApplication.php231
0
Joomla\CMS\Application\CMSApplication execute
/home/nbiyhhwa/public_html/index.php49
                'modified' => 1636001212
            ],
            'particles/shoppingcart' => [
                'file' => 'templates/rt_versla/particles/shoppingcart.yaml',
                'modified' => 1636001212
            ],
            'particles/simplecontent' => [
                'file' => 'templates/rt_versla/particles/simplecontent.yaml',
                'modified' => 1636001212
            ],
            'particles/simplecounter' => [
                'file' => 'templates/rt_versla/particles/simplecounter.yaml',
                'modified' => 1636001212
            ],
            'particles/simplemenu' => [
                'file' => 'templates/rt_versla/particles/simplemenu.yaml',
                'modified' => 1636001212
            ],
            'particles/simpleweather' => [
                'file' => 'templates/rt_versla/p
    /**
     * 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;
     */
    public static function blueprints(Container $container)
    {
        /** @var UniformResourceLocator $locator */
        $locator = $container['locator'];
 
        $cache = $locator->findResource('gantry-cache://theme/compiled/blueprints', 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');
        }
 
        $files = [];
        $paths = $locator->findResources('gantry-particles://');
        $files += (new ConfigFileFinder)->setBase('particles')->locateFiles($paths);
        $paths = $locator->findResources('gantry-blueprints://');
        $files += (new ConfigFileFinder)->locateFiles($paths);
 
        $config = new CompiledBlueprints($cache, $files, GANTRY5_ROOT);
 
        return $config->load();
    }
 
    /**
     * @param Container $container
     * @param string $name
     * @param bool $combine
     * @param bool $withDefaults
     * @return mixed
     */
    public static function load(Container $container, $name = 'default', $combine = true, $withDefaults = true)
    {
        /** @var UniformResourceLocator $locator */
        $locator = $container['locator'];
 
        $combine = $combine && $name !== 'default';
 
        // Merge current configuration with the default.
        $uris = $combine ? ["gantry-config://{$name}", 'gantry-config://default'] : ["gantry-config://{$name}"];
 
        $paths = [[]];
use Pimple\ServiceProviderInterface;
use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
 
/**
 * Class ConfigServiceProvider
 * @package Gantry\Framework\Services
 */
class ConfigServiceProvider implements ServiceProviderInterface
{
    /**
     * @param Container $gantry
     */
    public function register(Container $gantry)
    {
        $gantry['blueprints'] = static function(Gantry $gantry) {
            if (\GANTRY_DEBUGGER) {
                Debugger::startTimer('blueprints', 'Loading blueprints');
            }
 
            $blueprints = static::blueprints($gantry);
 
            if (\GANTRY_DEBUGGER) {
                Debugger::stopTimer('blueprints');
            }
 
            return $blueprints;
        };
 
        $gantry['config'] = static function(Gantry $gantry) {
            // Make sure configuration has been set.
            if (!isset($gantry['configuration'])) {
                throw new \LogicException('Gantry: Please set current configuration before using $gantry["config"]', 500);
            }
 
            if (\GANTRY_DEBUGGER) {
                Debugger::startTimer('config', 'Loading configuration');
            }
 
            // Get the current configuration and lock the value from modification.
            $outline = $gantry->lock('configuration');
    {
        if (!isset($this->keys[$id])) {
            throw new UnknownIdentifierException($id);
        }
 
        if (
            isset($this->raw[$id])
            || !\is_object($this->values[$id])
            || isset($this->protected[$this->values[$id]])
            || !\method_exists($this->values[$id], '__invoke')
        ) {
            return $this->values[$id];
        }
 
        if (isset($this->factories[$this->values[$id]])) {
            return $this->values[$id]($this);
        }
 
        $raw = $this->values[$id];
        $val = $this->values[$id] = $raw($this);
        $this->raw[$id] = $raw;
 
        $this->frozen[$id] = true;
 
        return $val;
    }
 
    /**
     * Checks if a parameter or an object is set.
     *
     * @param string $id The unique identifier for the parameter or object
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    public function offsetExists($id)
    {
        return isset($this->keys[$id]);
    }
 
        // Merge current configuration with the default.
        $uris = $combine ? ["gantry-config://{$name}", 'gantry-config://default'] : ["gantry-config://{$name}"];
 
        $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());
        }
 
        // Set FA default in Joomla
        if (class_exists(Version::class)) {
            $config->def('page.fontawesome.default_version', Version::MAJOR_VERSION < 4 ? 'fa4' : 'fa5css');
        } else {
            $config->def('page.fontawesome.default_version', 'fa4');
        }
 
        return $config;
    }
}
            }
        }
 
        return $list;
    }
 
    /**
     * Return blueprint.
     *
     * @return BlueprintSchema|BlueprintForm
     * @since 5.4.7
     */
    public function blueprint()
    {
        if (!$this->blueprint) {
            $this->blueprint = new BlueprintSchema;
        } elseif (is_callable($this->blueprint)) {
            // Lazy load blueprints.
            $blueprint = $this->blueprint;
            $this->blueprint = $blueprint();
        }
        return $this->blueprint;
    }
 
    /**
     * Return blueprints.
     *
     * @return BlueprintSchema
     * @deprecated 5.4.7
     */
    public function blueprints()
    {
        return $this->blueprint();
    }
 
    /**
     * Count items in nested array.
     *
     * @param string $path
     * @param string $separator
    {
        if (is_object($value)) {
            $value = (array) $value;
        } elseif (!is_array($value)) {
            throw new \RuntimeException("Value is not array in '{$name}': " . print_r($value, true));
        }
 
        $old = $this->get($name, null, $separator);
 
        if ($old === null) {
            // No value set; no need to join data.
            return $value;
        }
 
        if (!is_array($old)) {
            throw new \RuntimeException("Value is not array in '{$name}': " . print_r($value, true));
        }
 
        // Return joined data.
        return $this->blueprint()->mergeData($old, $value, $name, $separator);
    }
 
    /**
     * Merge two configurations together.
     *
     * @param array $data
     * @return $this
     */
    public function merge(array $data)
    {
        $this->items = $this->blueprint()->mergeData($this->items, $data);
 
        return $this;
    }
 
    /**
     * Set default values to the configuration if variables were not set.
     *
     * @param array $data
     * @return $this
        }
 
        $gantry = static::gantry();
 
        /** @var Config $global */
        $global = $gantry['global'];
 
        /** @var Config $config */
        $config = $gantry['config'];
 
        $production = (bool) $global->get('production');
        $subtype = $item->subtype;
        $enabled = $config->get("particles.{$subtype}.enabled", 1);
 
        if (!$enabled) {
            return new HtmlBlock;
        }
 
        $attributes = isset($item->attributes) ? $item->attributes : [];
        $particle = $config->getJoined("particles.{$subtype}", $attributes);
 
        $cached = false;
        $cacheKey = [];
 
        // Enable particle caching only in production mode.
        if ($production && isset($particle['caching'])) {
            $caching = $particle['caching'] + ['type' => 'dynamic'];
 
            switch ($caching['type']) {
                case 'static':
                    $cached = true;
                    break;
                case 'config_matches':
                    if (isset($particle['caching']['values'])) {
                        $values = (array) $particle['caching']['values'];
                        $compare = array_intersect_key($particle, $values);
                        $cached = ($values === $compare);
                    }
                    break;
                case 'menu':
            }
 
            $gantry = static::gantry();
 
            /** @var Config $config */
            $config = $gantry['config'];
 
            /** @var Document $document */
            $document = $gantry['document'];
 
            $atoms = (array) $config->get('page.head.atoms');
 
            foreach ($atoms as $data) {
                $atom = [
                    'type' => 'atom',
                    'subtype' => $data['type'],
                ] + $data;
 
                try {
                    $block = $this->getContent($atom);
                    $document->addBlock($block);
 
                } catch (\Exception $e) {
                    if ($gantry->debug()) {
                        throw new \RuntimeException("Rendering Atom '{$atom['subtype']}' failed on error: {$e->getMessage()}", 500, $e);
                    }
                }
            }
 
            $assets = (array) $config->get('page.assets');
 
            if ($assets) {
                $atom = [
                    'id' => 'page-assets',
                    'title' => 'Page Assets',
                    'type' => 'atom',
                    'subtype' => 'assets',
                    'attributes' => $assets + ['enabled' => 1]
                ];
 
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return;
            }
 
            throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), -1, $this->getSourceContext());
        }
 
        if ($isDefinedTest) {
            return true;
        }
 
        if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
            $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
        }
 
        // Some objects throw exceptions when they have __call, and the method we try
        // to call is not supported. If ignoreStrictCheck is true, we should return null.
        try {
            if (!$arguments) {
                $ret = $object->$method();
            } else {
                $ret = \call_user_func_array([$object, $method], $arguments);
            }
        } catch (\BadMethodCallException $e) {
            if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
                return;
            }
            throw $e;
        }
 
        // @deprecated in 1.28
        if ($object instanceof \Twig_TemplateInterface) {
            $self = $object->getTemplateName() === $this->getTemplateName();
            $message = sprintf('Calling "%s" on template "%s" from template "%s" is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', $item, $object->getTemplateName(), $this->getTemplateName());
            if ('renderBlock' === $method || 'displayBlock' === $method) {
                $message .= sprintf(' Use block("%s"%s) instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('hasBlock' === $method) {
                $message .= sprintf(' Use "block("%s"%s) is defined" instead).', $arguments[0], $self ? '' : ', template');
            } elseif ('render' === $method || 'display' === $method) {
                $message .= sprintf(' Use include("%s") instead).', $object->getTemplateName());
            'page_layout' => [$this, 'block_page_layout'],
            'page_top' => [$this, 'block_page_top'],
            'page_bottom' => [$this, 'block_page_bottom'],
            'body_top' => [$this, 'block_body_top'],
            'body_bottom' => [$this, 'block_body_bottom'],
            'page_head' => [$this, 'block_page_head'],
            'page_footer' => [$this, 'block_page_footer'],
            'page' => [$this, 'block_page'],
            'page_body' => [$this, 'block_page_body'],
        ];
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "debugger", []), "startTimer", [0 => "render", 1 => "Rendering page"], "method");
        // line 2
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "setLayout", [], "method");
        // line 3
        $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "loadAtoms", [], "method");
        // line 4
        $context["segments"] = $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "segments", [], "method");
        // line 6
        ob_start(function () { return ''; });
        // line 7
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "theme", []), "hasContent", [], "method")) {
            // line 8
            echo "        ";
            $this->displayBlock('content', $context, $blocks);
            // line 10
            echo "    ";
        }
        $context["content"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 13
        $context["offcanvas"] = null;
        // line 14
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["segments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["segment"]) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'page_footer' => [$this, 'block_page_footer'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page.html.twig", "partials/page.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_page_footer($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        $this->displayParentBlock("page_footer", $context, $blocks);
        echo "
    <jdoc:include type=\"modules\" name=\"debug\" />
";
    }
 
    public function getTemplateName()
    {
        return "partials/page.html.twig";
    }
 
    public function isTraitable()
    {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);
 
        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "partials/page.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("partials/page.html.twig", "index.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_content($context, array $blocks = [])
    {
        // line 4
        echo "    ";
        echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "displayContent", [0 => ($context["content"] ?? null)], "method");
        echo "
";
    }
 
    public function getTemplateName()
    {
        return "index.html.twig";
    }
 
    public function isTraitable()
    {
        return false;
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
            $this->doDisplay($context, $blocks);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->getSourceContext());
            }
 
            // this is mostly useful for \Twig\Error\LoaderError exceptions
            // see \Twig\Error\LoaderError
            if (-1 === $e->getTemplateLine()) {
                $e->guess();
            }
 
            throw $e;
        } catch (\Exception $e) {
            $e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
            $e->guess();
 
            throw $e;
        }
    }
 
    {
        return $this;
    }
 
    /**
     * Returns all blocks.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @return array An array of blocks
     */
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
    public function getBlocks()
    {
        return $this->blocks;
    }
 
    public function display(array $context, array $blocks = [])
    {
        $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
    }
 
    public function render(array $context)
    {
        $level = ob_get_level();
        if ($this->env->isDebug()) {
            ob_start();
        } else {
            ob_start(function () { return ''; });
        }
        try {
            $this->display($context);
        } catch (\Exception $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $level) {
                ob_end_clean();
            }
 
            throw $e;
        }
 
        return ob_get_clean();
    }
 
    protected function displayWithErrorHandling(array $context, array $blocks = [])
    {
        try {
     * @internal
     */
    public function __construct(Environment $env, Template $template)
    {
        $this->env = $env;
        $this->template = $template;
    }
 
    /**
     * Renders the template.
     *
     * @param array $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     */
    public function render($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Displays the template.
     *
     * @param array $context An array of parameters to pass to the template
     */
    public function display($context = [])
    {
        // using func_get_args() allows to not expose the blocks argument
        // as it should only be used by internal code
        $this->template->display($context, \func_num_args() > 1 ? func_get_arg(1) : []);
    }
 
    /**
     * Checks if a block is defined.
     *
     * @param string $name    The block name
     * @param array  $context An array of parameters to pass to the template
     *
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), \E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = [])
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function display($name, array $context = [])
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
 
            $this->renderer = $this->extendTwig($twig, $loader);
        }
 
        return $this->renderer;
    }
 
    /**
     * Render a template file by using given context.
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $this->renderer()->render($file, $context);
    }
 
    /**
     * Compile and render twig string.
     *
     * @param string $string
     * @param array $context
     * @return string
     */
    public function compile($string, array $context = [])
    {
        $renderer = $this->renderer();
        $template = $renderer->createTemplate($string);
 
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $template->render($context);
    }
 
 
defined('_JEXEC') or die;
 
use Gantry\Framework\Theme;
 
// Bootstrap Gantry framework or fail gracefully (inside included file).
$className = __DIR__ . '/custom/includes/gantry.php';
if (!is_file($className)) {
    $className = __DIR__ . '/includes/gantry.php';
}
$gantry = include $className;
 
/** @var Theme $theme */
$theme = $gantry['theme'];
 
// All the custom twig variables can be defined in here:
$context = array();
 
// Render the page.
echo $theme->render('index.html.twig', $context);
 
     * @param   string  $directory  The name of the template
     * @param   string  $filename   The actual filename
     *
     * @return  string  The contents of the template
     *
     * @since   1.7.0
     */
    protected function _loadTemplate($directory, $filename)
    {
        $contents = '';
 
        // Check to see if we have a valid template file
        if (file_exists($directory . '/' . $filename))
        {
            // Store the file path
            $this->_file = $directory . '/' . $filename;
 
            // Get the file content
            ob_start();
            require $directory . '/' . $filename;
            $contents = ob_get_contents();
            ob_end_clean();
        }
 
        // Try to find a favicon by checking the template and root folder
        $icon = '/favicon.ico';
 
        foreach (array($directory, JPATH_BASE) as $dir)
        {
            if (file_exists($dir . $icon))
            {
                $path = str_replace(JPATH_BASE, '', $dir);
                $path = str_replace('\\', '/', $path);
                $this->addFavicon(Uri::base(true) . $path . $icon);
                break;
            }
        }
 
        return $contents;
    }
 
        if (!file_exists($directory . '/' . $template . '/' . $file))
        {
            $file = 'index.php';
        }
 
        // Load the language file for the template
        $lang = \JFactory::getLanguage();
 
        // 1.5 or core then 1.6
        $lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
        || $lang->load('tpl_' . $template, $directory . '/' . $template, null, false, true);
 
        // Assign the variables
        $this->template = $template;
        $this->baseurl = Uri::base(true);
        $this->params = isset($params['params']) ? $params['params'] : new Registry;
 
        // Load
        $this->_template = $this->_loadTemplate($directory . '/' . $template, $file);
 
        return $this;
    }
 
    /**
     * Parse a document template
     *
     * @return  HtmlDocument  instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    protected function _parseTemplate()
    {
        $matches = array();
 
        if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
        {
            $template_tags_first = array();
            $template_tags_last = array();
 
            $options['title'] = (isset($args[3])) ? $args[3] : null;
        }
 
        parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
 
        return $this;
    }
 
    /**
     * Parses the template and populates the buffer
     *
     * @param   array  $params  Parameters for fetching the template
     *
     * @return  HtmlDocument instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    public function parse($params = array())
    {
        return $this->_fetchTemplate($params)->_parseTemplate();
    }
 
    /**
     * Outputs the template to the browser.
     *
     * @param   boolean  $caching  If true, cache the output
     * @param   array    $params   Associative array of attributes
     *
     * @return  string The rendered data
     *
     * @since   1.7.0
     */
    public function render($caching = false, $params = array())
    {
        $this->_caching = $caching;
 
        if (empty($this->_template))
        {
            $this->parse($params);
        }
     */
    protected function render()
    {
        // Setup the document options.
        $this->docOptions['template'] = $this->get('theme');
        $this->docOptions['file']     = $this->get('themeFile', 'index.php');
        $this->docOptions['params']   = $this->get('themeParams');
 
        if ($this->get('themes.base'))
        {
            $this->docOptions['directory'] = $this->get('themes.base');
        }
        // Fall back to constants.
        else
        {
            $this->docOptions['directory'] = defined('JPATH_THEMES') ? JPATH_THEMES : (defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
        }
 
        // Parse the document.
        $this->document->parse($this->docOptions);
 
        // Trigger the onBeforeRender event.
        \JPluginHelper::importPlugin('system');
        $this->triggerEvent('onBeforeRender');
 
        $caching = false;
 
        if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !\JFactory::getUser()->get('id'))
        {
            $caching = true;
        }
 
        // Render the document.
        $data = $this->document->render($caching, $this->docOptions);
 
        // Set the application output data.
        $this->setBody($data);
 
        // Trigger the onAfterRender event.
        $this->triggerEvent('onAfterRender');
                    $this->setUserState('users.login.form.data', array('return' => \JUri::getInstance()->toString()));
                    $this->set('themeFile', 'offline.php');
                    $this->setHeader('Status', '503 Service Temporarily Unavailable', 'true');
                }
 
                if (!is_dir(JPATH_THEMES . '/' . $template->template) && !$this->get('offline'))
                {
                    $this->set('themeFile', 'component.php');
                }
 
                // Ensure themeFile is set by now
                if ($this->get('themeFile') == '')
                {
                    $this->set('themeFile', $file . '.php');
                }
 
                break;
        }
 
        parent::render();
    }
 
    /**
     * Route the application.
     *
     * Routing is the process of examining the request environment to determine which
     * component should receive the request. The component optional parameters
     * are then set in the request object to be processed when the application is being
     * dispatched.
     *
     * @return  void
     *
     * @since   3.2
     */
    protected function route()
    {
        // Execute the parent method
        parent::route();
 
        $Itemid = $this->input->getInt('Itemid', null);
        // Unset invalid system variables
        foreach ($invalidInputVariables as $systemVariable)
        {
            $input->set($systemVariable, null);
        }
 
        // Abort when there are invalid variables
        if ($invalidInputVariables)
        {
            throw new \RuntimeException('Invalid input, aborting application.');
        }
 
        // Perform application routines.
        $this->doExecute();
 
        // If we have an application document object, render it.
        if ($this->document instanceof \JDocument)
        {
            // Render the application output.
            $this->render();
        }
 
        // If gzip compression is enabled in configuration and the server is compliant, compress the output.
        if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
        {
            $this->compress();
 
            // Trigger the onAfterCompress event.
            $this->triggerEvent('onAfterCompress');
        }
 
        // Send the application response.
        $this->respond();
 
        // Trigger the onAfterRespond event.
        $this->triggerEvent('onAfterRespond');
    }
 
    /**
     * Check if the user is required to reset their password.
{
    include_once __DIR__ . '/defines.php';
}
 
if (!defined('_JDEFINES'))
{
    define('JPATH_BASE', __DIR__);
    require_once JPATH_BASE . '/includes/defines.php';
}
 
require_once JPATH_BASE . '/includes/framework.php';
 
// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 

Environment & details:

empty
empty
empty
empty
Key Value
__koowa Array ( [__metadata] => Array ( [timer] => Array ( [start] => 1760436798 [last] => 1760436798 [now] => 1760436798 ) ) [__attribute] => Array ( [user] => Array ( [id] => 0 [email] => [name] => [username] => [password] => [salt] => [groups] => Array ( [0] => 1 [1] => 9 ) [roles] => Array ( [0] => 1 [1] => 1 [2] => 5 ) [authentic] => [enabled] => 1 [expired] => 1 [attributes] => Array ( [com://site/docman] => Array ( [view] => Array ( [list] => Array ( [html] => Array ( [table] => Array ( [com://admin/docman] => Array ( [model] => Array ( [categories] => Array ( [browse] => Array ( [263] => Array ( [group_id] => [max_level] => [exclude_unpublished_subcategories] => [search] => [finder] => [folder] => [group] => ) ) [render] => Array ( [263] => Array ( [group_id] => [max_level] => [exclude_unpublished_subcategories] => [search] => [finder] => [folder] => [group] => ) ) ) ) ) ) ) ) ) ) ) ) ) [__message] => Array ( ) )
Key Value
CONTEXT_DOCUMENT_ROOT /home/nbiyhhwa/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/nbiyhhwa/public_html
GATEWAY_INTERFACE CGI/1.1
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 20092-766-3
HTTP2 on
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_AUTHORIZATION
HTTP_HOST www.smshepparton.catholic.edu.au
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_HTTPS 1
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 20092-766-3
REDIRECT_HTTP2 on
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://www.smshepparton.catholic.edu.au/downloads/oshc
REDIRECT_SCRIPT_URL /downloads/oshc
REDIRECT_SSL_TLS_SNI www.smshepparton.catholic.edu.au
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID aO4iPWelgJCC5_Q_c1W0ywABUhc
REDIRECT_URL /downloads/oshc
REMOTE_ADDR 216.73.216.10
REMOTE_PORT 64283
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /downloads/oshc
SCRIPT_FILENAME /home/nbiyhhwa/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.smshepparton.catholic.edu.au/downloads/oshc
SCRIPT_URL /downloads/oshc
SERVER_ADDR 27.50.80.18
SERVER_ADMIN webmaster@smshepparton.catholic.edu.au
SERVER_NAME www.smshepparton.catholic.edu.au
SERVER_PORT 443
SERVER_PROTOCOL HTTP/2.0
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.smshepparton.catholic.edu.au
TZ Australia/Melbourne
UNIQUE_ID aO4iPWelgJCC5_Q_c1W0ywABUhc
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1760436797.7788
REQUEST_TIME 1760436797
Key Value
CONTEXT_DOCUMENT_ROOT /home/nbiyhhwa/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/nbiyhhwa/public_html
GATEWAY_INTERFACE CGI/1.1
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 20092-766-3
HTTP2 on
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_AUTHORIZATION
HTTP_HOST www.smshepparton.catholic.edu.au
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_HTTPS 1
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 20092-766-3
REDIRECT_HTTP2 on
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://www.smshepparton.catholic.edu.au/downloads/oshc
REDIRECT_SCRIPT_URL /downloads/oshc
REDIRECT_SSL_TLS_SNI www.smshepparton.catholic.edu.au
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID aO4iPWelgJCC5_Q_c1W0ywABUhc
REDIRECT_URL /downloads/oshc
REMOTE_ADDR 216.73.216.10
REMOTE_PORT 64283
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /downloads/oshc
SCRIPT_FILENAME /home/nbiyhhwa/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.smshepparton.catholic.edu.au/downloads/oshc
SCRIPT_URL /downloads/oshc
SERVER_ADDR 27.50.80.18
SERVER_ADMIN webmaster@smshepparton.catholic.edu.au
SERVER_NAME www.smshepparton.catholic.edu.au
SERVER_PORT 443
SERVER_PROTOCOL HTTP/2.0
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.smshepparton.catholic.edu.au
TZ Australia/Melbourne
UNIQUE_ID aO4iPWelgJCC5_Q_c1W0ywABUhc
0. Whoops\Handler\PrettyPageHandler