Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Rendering Atom 'aos' failed on error: Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php").
Previous exceptions
  • Rendering Atom 'aos' failed on error: Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php (500)
  • Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php (0)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Rendering Atom 'aos' failed on error: Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php")." Stacktrace: #20 Twig\Error\RuntimeError in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/engines/nucleus/templates/page_head.html.twig:2 #19 RuntimeException in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:421 #18 RuntimeException in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/vendor/rockettheme/toolbox/File/src/AbstractFile.php:374 #17 RocketTheme\Toolbox\File\AbstractFile:save in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/vendor/rockettheme/toolbox/File/src/PhpFile.php:46 #16 RocketTheme\Toolbox\File\PhpFile:save in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:834 #15 Gantry\Framework\Theme:getContent in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/ThemeTrait.php:416 #14 Gantry\Framework\Theme:loadAtoms in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:700 #13 Twig\Template:getAttribute in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:497 #12 __TwigTemplate_7c73a361208dcc468e3fd22617e871f6d67f40ef75674bfd1f7293ae0bb85b2d:doDisplay in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #11 Twig\Template:displayWithErrorHandling in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #10 Twig\Template:display in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:497 #9 __TwigTemplate_e2d1b3edcc04764fe514084b63652773a384c571b6fb7be362d7db8db05f4e60:doDisplay in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #8 Twig\Template:displayWithErrorHandling in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #7 Twig\Template:display in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #6 Twig\Template:render in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #5 Twig\TemplateWrapper:render in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:384 #4 Twig\Environment:render in /home/swnlqyrj/public_html/ineglect.org/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:153 #3 Gantry\Framework\Theme:render in /home/swnlqyrj/public_html/ineglect.org/wp-content/themes/g5_myriad/page.php:34 #2 include in /home/swnlqyrj/public_html/ineglect.org/wp-includes/template-loader.php:106 #1 require_once in /home/swnlqyrj/public_html/ineglect.org/wp-blog-header.php:19 #0 require in /home/swnlqyrj/public_html/ineglect.org/index.php:17
Stack frames (21)
20
Twig\Error\RuntimeError
/engines/nucleus/templates/page_head.html.twig2
19
RuntimeException
/src/classes/Gantry/Component/Theme/ThemeTrait.php421
18
RuntimeException
/vendor/rockettheme/toolbox/File/src/AbstractFile.php374
17
RocketTheme\Toolbox\File\AbstractFile save
/vendor/rockettheme/toolbox/File/src/PhpFile.php46
16
RocketTheme\Toolbox\File\PhpFile save
/src/classes/Gantry/Component/Theme/ThemeTrait.php834
15
Gantry\Framework\Theme getContent
/src/classes/Gantry/Component/Theme/ThemeTrait.php416
14
Gantry\Framework\Theme loadAtoms
/compat/vendor/twig/twig/src/Template.php700
13
Twig\Template getAttribute
/compat/vendor/twig/twig/src/Environment.php497
12
__TwigTemplate_7c73a361208dcc468e3fd22617e871f6d67f40ef75674bfd1f7293ae0bb85b2d doDisplay
/compat/vendor/twig/twig/src/Template.php453
11
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
10
Twig\Template display
/compat/vendor/twig/twig/src/Environment.php497
9
__TwigTemplate_e2d1b3edcc04764fe514084b63652773a384c571b6fb7be362d7db8db05f4e60 doDisplay
/compat/vendor/twig/twig/src/Template.php453
8
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
7
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
6
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
5
Twig\TemplateWrapper render
/compat/vendor/twig/twig/src/Environment.php384
4
Twig\Environment render
/src/classes/Gantry/Framework/Theme.php153
3
Gantry\Framework\Theme render
/home/swnlqyrj/public_html/ineglect.org/wp-content/themes/g5_myriad/page.php34
2
include
/home/swnlqyrj/public_html/ineglect.org/wp-includes/template-loader.php106
1
require_once
/home/swnlqyrj/public_html/ineglect.org/wp-blog-header.php19
0
require
/home/swnlqyrj/public_html/ineglect.org/index.php17
{%- do gantry.debugger.assets() -%}
{%- do gantry.theme.loadAtoms() -%}
 
{% set faEnabled = gantry.config.page.fontawesome.enable|default(1) %}
{% set faVersion = gantry.config.page.fontawesome.version ?? gantry.config.page.fontawesome.default_version ?? 'fa4' %}
 
{% assets with { priority: 10 } %}
    {% block head_stylesheets -%}
        <link rel="stylesheet" href="gantry-engine://css-compiled/nucleus.css" type="text/css"/>
        {% for scss in gantry.theme.configuration.css.persistent|default(gantry.theme.configuration.css.files) %}
        <link rel="stylesheet" href="{{ scss }}.scss" type="text/css"/>
        {%- endfor %}
    {% endblock -%}
 
    {% block head_scripts -%}
        {% if faEnabled %}
            {% if faVersion == 'manual' or gantry.config.page.fontawesome.html_js_import|trim %}
                {{ gantry.config.page.fontawesome.html_js_import|html|raw -}}
            {% elseif faVersion == 'fa5js' %}
                <script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-all.min.js') }}"></script>
                {% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
                    <script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-shim.min.js') }}"></script>
                {% endif %}
            {% endif %}
        {% endif %}
    {% endblock -%}
 
    {% block head_platform %}{% endblock %}
 
    {% block head_overrides -%}
        {% if faEnabled %}
            {% if faVersion == 'manual' or gantry.config.page.fontawesome.html_css_import|trim %}
                {{ gantry.config.page.fontawesome.html_css_import|html|raw -}}
            {% elseif faVersion == 'fa4' %}
                <link rel="stylesheet" href="gantry-assets://css/font-awesome.min.css" type="text/css"/>
            {% elseif faVersion == 'fa5css' %}
                <link rel="stylesheet" href="gantry-assets://css/font-awesome6-all.min.css" type="text/css">
                {% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
 
                {% endif %}
            $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]
                ];
 
                try {
                    $block = $this->getContent($atom);
                    $document->addBlock($block);
 
                } catch (\Exception $e) {
Exception message: Rendering Atom 'aos' failed on error: Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php
                if (@ftruncate($this->handle, 0) === false || @fwrite($this->handle, $this->raw()) === false) {
                    // Writing file failed, throw an error.
                    $tmp = false;
                }
            } else {
                // Create file with a temporary name and rename it to make the save action atomic.
                $tmp = $this->tempname($filename);
                if (file_put_contents($tmp, $this->raw()) === false) {
                    $tmp = false;
                } elseif (@rename($tmp, $filename) === false) {
                    @unlink($tmp);
                    $tmp = false;
                }
            }
        } catch (Exception $e) {
            $tmp = false;
        }
 
        if ($tmp === false) {
            throw new RuntimeException('Failed to save file ' . $filename);
        }
 
        // Touch the directory as well, thus marking it modified.
        @touch($dir);
    }
 
    /**
     * Rename file in the filesystem if it exists.
     *
     * @param string $filename
     * @return bool
     */
    public function rename($filename)
    {
        if (null !== $this->filename && $this->exists() && !@rename($this->filename, $filename)) {
            return false;
        }
 
        unset(static::$instances[$this->filename]);
        static::$instances[$filename] = $this;
Exception message: Failed to save file /home/swnlqyrj/public_html/ineglect.org/wp-content/cache/gantry5/g5_myriad/html/383acb5d6594cb7de6bc9dbe83e64db0.php
     * @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);
        }
    }
 
    /**
     * Check contents and make sure it is in correct format.
     *
     * @param mixed $var
     * @return array
     * @throws RuntimeException
     */
    protected function check($var)
    {
        if (!(is_array($var) || is_object($var))) {
            throw new RuntimeException('Provided data is not an array');
        }
 
                }
            }
        }
 
        // Create new document context for assets.
        $context = $this->getContext(['segment' => $item, 'enabled' => 1, 'particle' => $particle] + $options);
 
        /** @var Document $document */
        $document = $gantry['document'];
        $document::push();
        $html = trim($this->render("@nucleus/content/{$item->type}.html.twig", $context));
        $content = $document::pop()->setContent($html);
 
        if (isset($file)) {
            // Save HTML and assets into the cache.
            if (\GANTRY_DEBUGGER) {
                Debugger::addMessage(sprintf('Caching %s %s', $item->type, $item->id), 'debug');
            }
 
            $file->save($content->toArray());
        }
 
        return $content;
    }
}
 
            }
 
            $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());
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
            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) {
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new RuntimeError(sprintf('Failed to load Twig template "%s", index "%s": cache might be corrupted.', $name, $index), -1, $source);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        }
 
        return $this->loadedTemplates[$cls] = new $cls($this);
    }
 
    /**
     * Creates a template from source.
     *
     * This method should not be used as a generic way to load templates.
     *
            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.
     *
 
    /**
     * @see AbstractTheme::render()
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        static $timberContext;
 
        if (!isset($timberContext)) {
            $timberContext = Timber::get_context();
        }
 
        // 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();
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * To generate specific templates for your pages you can use:
 * /mytheme/views/page-mypage.html.twig
 * (which will still route through this PHP file)
 * OR
 * /mytheme/page-mypage.php
 * (in which case you'll want to duplicate this file and save to the above path)
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $gantry->isCompatible('5.1.5') ? $theme->render('partials/page_head.html.twig', $context) : null;
 
$post            = Timber::query_post();
$context['post'] = $post;
 
Timber::render(['page-' . $post->post_name . '.html.twig', 'page.html.twig'], $context);
 
            }
 
            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;
}
 
<?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 /2011-golf-scramble/
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
CONTENT_LENGTH 0
HTTP_HOST www.ineglect.org
HTTP_REFERER https://www.ineglect.org/2011-golf-scramble
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID aFpxEnquCE0aZmirL2bKrwABixc
REDIRECT_SCRIPT_URL /2011-golf-scramble/
REDIRECT_SCRIPT_URI https://www.ineglect.org/2011-golf-scramble/
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.ineglect.org
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 7
REDIRECT_H2_STREAM_TAG 3505138-78-7
REDIRECT_STATUS 200
UNIQUE_ID aFpxEnquCE0aZmirL2bKrwABixc
SCRIPT_URL /2011-golf-scramble/
SCRIPT_URI https://www.ineglect.org/2011-golf-scramble/
HTTP_AUTHORIZATION
HTTPS on
SSL_TLS_SNI www.ineglect.org
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 7
H2_STREAM_TAG 3505138-78-7
SERVER_SIGNATURE
SERVER_NAME www.ineglect.org
SERVER_ADDR 23.254.133.121
SERVER_PORT 443
REMOTE_ADDR 216.73.217.4
DOCUMENT_ROOT /home/swnlqyrj/public_html/ineglect.org
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/swnlqyrj/public_html/ineglect.org
SERVER_ADMIN webmaster@ineglect.org.ineglect.us
SCRIPT_FILENAME /home/swnlqyrj/public_html/ineglect.org/index.php
REMOTE_PORT 14423
REDIRECT_URL /2011-golf-scramble/
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1750757650.6519
REQUEST_TIME 1750757650
argv Array ( )
argc 0
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler