Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Array to string conversion").
Previous exceptions
  • Array to string conversion (2)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Array to string conversion")." Stacktrace: #22 Twig\Error\RuntimeError in /home/chasethe/public_html/wp-content/themes/jl_bruno/custom/views/single-venue.html.twig:184 #21 Whoops\Exception\ErrorException in /home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php:374 #20 Gantry\Component\Whoops\SystemFacade:handleError in /home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php:374 #19 __TwigTemplate_11d228085dcfc88f092a0f744ccc7767496facd413f1d688d48dcdd66a781691:block_content in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:214 #18 Twig\Template:displayBlock in /home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/79/798a58e98a468b0144d6e0de8f51a3e6d7f857864ccd853c18ffdc097b596c8f.php:57 #17 __TwigTemplate_48fe29dc392ccaacec229eccc71d2b314c6c4013da0e0564d97c8aba249708ce:doDisplay in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #16 Twig\Template:displayWithErrorHandling in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #15 Twig\Template:display in /home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/ae/ae44b2c071f68f261e9e88fbbd4af49945eea03520cca4573293a99bef54b34a.php:36 #14 __TwigTemplate_2d4fd5f0a4e74d7f1507dc0c3f1287bbd97dd47209828b2a3e95d9d306ca7e76:doDisplay in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #13 Twig\Template:displayWithErrorHandling in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #12 Twig\Template:display in /home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php:40 #11 __TwigTemplate_11d228085dcfc88f092a0f744ccc7767496facd413f1d688d48dcdd66a781691:doDisplay in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #10 Twig\Template:displayWithErrorHandling in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #9 Twig\Template:display in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #8 Twig\Template:render in /home/chasethe/public_html/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #7 Twig\TemplateWrapper:render in /home/chasethe/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Loader.php:79 #6 Timber\Loader:render in /home/chasethe/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:334 #5 Timber\Timber:compile in /home/chasethe/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:383 #4 Timber\Timber:fetch in /home/chasethe/public_html/wp-content/plugins/gantry5/vendor/timber/timber/lib/Timber.php:410 #3 Timber\Timber:render in /home/chasethe/public_html/wp-content/themes/jl_bruno/single.php:35 #2 include in /home/chasethe/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/chasethe/public_html/wp-blog-header.php:19 #0 require in /home/chasethe/public_html/index.php:17
Stack frames (23)
22
Twig\Error\RuntimeError
/home/chasethe/public_html/wp-content/themes/jl_bruno/custom/views/single-venue.html.twig184
21
Whoops\Exception\ErrorException
/home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php374
20
Gantry\Component\Whoops\SystemFacade handleError
/home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php374
19
__TwigTemplate_11d228085dcfc88f092a0f744ccc7767496facd413f1d688d48dcdd66a781691 block_content
/compat/vendor/twig/twig/src/Template.php214
18
Twig\Template displayBlock
/home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/79/798a58e98a468b0144d6e0de8f51a3e6d7f857864ccd853c18ffdc097b596c8f.php57
17
__TwigTemplate_48fe29dc392ccaacec229eccc71d2b314c6c4013da0e0564d97c8aba249708ce doDisplay
/compat/vendor/twig/twig/src/Template.php453
16
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
15
Twig\Template display
/home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/ae/ae44b2c071f68f261e9e88fbbd4af49945eea03520cca4573293a99bef54b34a.php36
14
__TwigTemplate_2d4fd5f0a4e74d7f1507dc0c3f1287bbd97dd47209828b2a3e95d9d306ca7e76 doDisplay
/compat/vendor/twig/twig/src/Template.php453
13
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
12
Twig\Template display
/home/chasethe/public_html/wp-content/cache/gantry5/jl_bruno/twig/90/901079ae9465803b902a9a2484e97dfbb2b3a2cd4e1823519d23ecc307914cf5.php40
11
__TwigTemplate_11d228085dcfc88f092a0f744ccc7767496facd413f1d688d48dcdd66a781691 doDisplay
/compat/vendor/twig/twig/src/Template.php453
10
Twig\Template displayWithErrorHandling
/compat/vendor/twig/twig/src/Template.php420
9
Twig\Template display
/compat/vendor/twig/twig/src/Template.php432
8
Twig\Template render
/compat/vendor/twig/twig/src/TemplateWrapper.php47
7
Twig\TemplateWrapper render
/vendor/timber/timber/lib/Loader.php79
6
Timber\Loader render
/vendor/timber/timber/lib/Timber.php334
5
Timber\Timber compile
/vendor/timber/timber/lib/Timber.php383
4
Timber\Timber fetch
/vendor/timber/timber/lib/Timber.php410
3
Timber\Timber render
/home/chasethe/public_html/wp-content/themes/jl_bruno/single.php35
2
include
/home/chasethe/public_html/wp-includes/template-loader.php106
1
require_once
/home/chasethe/public_html/wp-blog-header.php19
0
require
/home/chasethe/public_html/index.php17
                                                                                
                                                                                $location = get_field('address');
                                                                                
                                                                                if( !empty($location) ):
                                                                                ?>
                                                                                <div class="acf-map">
                                                                                    <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
                                                                                </div>
                                                                                <?php endif; ?> #}
                    {# <?php 
                                                                                $location = get_field('location');
                                                                                if( $location ): ?>
                                                                                    <div class="acf-map" data-zoom="16">
                                                                                        <div class="marker" data-lat="<?php echo esc_attr($location['lat']); ?>" data-lng="<?php echo esc_attr($location['lng']); ?>"></div>
                                                                                    </div>
                                                                                <?php endif; ?> #}
 
 
                    <?php 
                    $location = {{ post.meta('location') }};
                    if( !empty($location) ): ?>
                        <div class="acf-map" data-zoom="16"> <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div>
                    </div>
 
                    <?php endif; ?>
                    
 
                    
 
                    {% if post.meta('child-person') %}
                        <div class="my-list">
                            <div class="list-title">Child / Person Relationship</div>
                            <div class="music-piece g-grid">
                                {% for item in post.meta('child-person') %}
                                    <a class="size-33" href="{{ item.link }}" target="_self">{{ item.post_type }}<br/>
                                        {% if item.thumbnail.src %}<img src="{{ item.thumbnail.src }}" alt="{{ item.title }}"/><br/>
                                        {% endif %}
                                        <b>{{ item.title }}</b>
                                    </a>
                                    {# Do something with item #}
        // line 135
        echo "\t\t\t\t\t<div id=\"myModal\" class=\"modal\">
\t\t\t\t\t\t<span class=\"close\">&times;</span>
\t\t\t\t\t\t<img class=\"modal-content\" id=\"img01\">
\t\t\t\t\t\t<div id=\"caption\"></div>
\t\t\t\t\t</div>
\t\t\t\t\t";
        // line 145
        echo "\t\t\t\t\t";
        // line 164
        echo "\t\t\t\t\t";
        // line 174
        echo "\t\t\t\t\t";
        // line 181
        echo "
 
\t\t\t\t\t<?php 
                    \$location = ";
        // line 184
        echo $this->getAttribute(($context["post"] ?? null), "meta", [0 => "location"], "method");
        echo ";
                    if( !empty(\$location) ): ?>
\t\t\t\t\t\t<div class=\"acf-map\" data-zoom=\"16\"> <div class=\"marker\" data-lat=\"<?php echo \$location['lat']; ?>\" data-lng=\"<?php echo \$location['lng']; ?>\"></div>
\t\t\t\t\t</div>
 
\t\t\t\t\t<?php endif; ?>
                    
 
                    
 
\t\t\t\t\t";
        // line 194
        if ($this->getAttribute(($context["post"] ?? null), "meta", [0 => "child-person"], "method")) {
            // line 195
            echo "\t\t\t\t\t\t<div class=\"my-list\">
\t\t\t\t\t\t\t<div class=\"list-title\">Child / Person Relationship</div>
\t\t\t\t\t\t\t<div class=\"music-piece g-grid\">
\t\t\t\t\t\t\t\t";
            // line 198
            $context['_parent'] = $context;
Exception message: Array to string conversion
        // line 135
        echo "\t\t\t\t\t<div id=\"myModal\" class=\"modal\">
\t\t\t\t\t\t<span class=\"close\">&times;</span>
\t\t\t\t\t\t<img class=\"modal-content\" id=\"img01\">
\t\t\t\t\t\t<div id=\"caption\"></div>
\t\t\t\t\t</div>
\t\t\t\t\t";
        // line 145
        echo "\t\t\t\t\t";
        // line 164
        echo "\t\t\t\t\t";
        // line 174
        echo "\t\t\t\t\t";
        // line 181
        echo "
 
\t\t\t\t\t<?php 
                    \$location = ";
        // line 184
        echo $this->getAttribute(($context["post"] ?? null), "meta", [0 => "location"], "method");
        echo ";
                    if( !empty(\$location) ): ?>
\t\t\t\t\t\t<div class=\"acf-map\" data-zoom=\"16\"> <div class=\"marker\" data-lat=\"<?php echo \$location['lat']; ?>\" data-lng=\"<?php echo \$location['lng']; ?>\"></div>
\t\t\t\t\t</div>
 
\t\t\t\t\t<?php endif; ?>
                    
 
                    
 
\t\t\t\t\t";
        // line 194
        if ($this->getAttribute(($context["post"] ?? null), "meta", [0 => "child-person"], "method")) {
            // line 195
            echo "\t\t\t\t\t\t<div class=\"my-list\">
\t\t\t\t\t\t\t<div class=\"list-title\">Child / Person Relationship</div>
\t\t\t\t\t\t\t<div class=\"music-piece g-grid\">
\t\t\t\t\t\t\t\t";
            // line 198
            $context['_parent'] = $context;
 
        if ($useBlocks && isset($blocks[$name])) {
            $template = $blocks[$name][0];
            $block = $blocks[$name][1];
        } elseif (isset($this->blocks[$name])) {
            $template = $this->blocks[$name][0];
            $block = $this->blocks[$name][1];
        } else {
            $template = null;
            $block = null;
        }
 
        // avoid RCEs when sandbox is enabled
        if (null !== $template && !$template instanceof self) {
            throw new \LogicException('A block must be a method on a \Twig\Template instance.');
        }
 
        if (null !== $template) {
            try {
                $template->$block($context, $blocks);
            } catch (Error $e) {
                if (!$e->getSourceContext()) {
                    $e->setSourceContext($template->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, $template->getSourceContext(), $e);
                $e->guess();
 
                throw $e;
            }
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, array_merge($this->blocks, $blocks), false);
    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 5
        $context["theme_js"] = (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", [], "any", false, true), "page", [], "any", false, true), "assets", [], "any", false, true), "theme_js", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", [], "any", false, true), "page", [], "any", false, true), "assets", [], "any", false, true), "theme_js", []), 1)) : (1));
        // 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"]) {
            // line 15
            echo "    ";
            if (($this->getAttribute($context["segment"], "type", []) == "offcanvas")) {
                // line 16
                $context["offcanvas"] = $context["segment"];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['segment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
            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_head' => [$this, 'block_page_head'],
            '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_head($context, array $blocks = [])
    {
        // line 4
        if (($context["page_head"] ?? null)) {
            // line 5
            echo "        ";
            echo ($context["page_head"] ?? null);
            echo "
    ";
        } else {
            // line 7
            echo "        ";
            $this->displayParentBlock("page_head", $context, $blocks);
            echo "
    ";
        }
    }
            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) {
        $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 = [])
    {
        // line 2
        $context["twigTemplate"] = "single.html.twig";
        // line 3
        $context["scope"] = "single";
        // line 1
        $this->parent = $this->loadTemplate("partials/page.html.twig", "single-venue.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 6
    public function block_content($context, array $blocks = [])
    {
        // line 7
        echo "
 
 
\t<div class=\"platform-content\">
\t\t<div class=\"content-wrapper\">
\t\t\t<section class=\"entry\">
\t\t\t\t<h2>";
        // line 13
        echo $this->getAttribute(($context["post"] ?? null), "title", []);
        echo "</h2>
\t\t\t\t<div class=\"post-block\">
 
\t\t\t\t\t<div class=\"perfroming-image\">
 
            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
     *
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $template = $twig->load($file);
            $output = $template->render($data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        } else {
            if ( is_array($filenames) ) {
                $filenames = implode(", ", $filenames);
            }
            Helper::error_log( 'Error loading your template files: '.$filenames.'. Make sure one of these files exists.' );
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
use Timber\Timber;
 
/*
 * The Template for displaying all single posts
 */
 
$gantry = Gantry::instance();
 
/** @var Theme $theme */
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post            = Timber::query_post();
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->title();
 
Timber::render(['single-' . $post->ID . '.html.twig', 'single-' . $post->post_type . '.html.twig', 'single.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 /venue/csu-large-group-rehearsal-theater/
USER chasethe
HOME /home/chasethe
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /venue/csu-large-group-rehearsal-theater/
REMOTE_PORT 33533
SCRIPT_FILENAME /home/chasethe/public_html/index.php
SERVER_ADMIN webmaster@chasethemusic.org
CONTEXT_DOCUMENT_ROOT /home/chasethe/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/chasethe/public_html
REMOTE_ADDR 3.141.46.4
SERVER_PORT 443
SERVER_ADDR 192.250.226.64
SERVER_NAME chasethemusic.org
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_HOST chasethemusic.org
HTTP_REFERER https://chasethemusic.org/venue/csu-large-group-rehearsal-theater
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
proxy-nokeepalive 1
SSL_TLS_SNI chasethemusic.org
HTTPS on
SCRIPT_URI https://chasethemusic.org/venue/csu-large-group-rehearsal-theater/
SCRIPT_URL /venue/csu-large-group-rehearsal-theater/
UNIQUE_ID aAbRYXk4PntYZ6TcBRl8bQAAAAI
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI chasethemusic.org
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://chasethemusic.org/venue/csu-large-group-rehearsal-theater/
REDIRECT_SCRIPT_URL /venue/csu-large-group-rehearsal-theater/
REDIRECT_UNIQUE_ID aAbRYXk4PntYZ6TcBRl8bQAAAAI
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1745277281.0047
REQUEST_TIME 1745277281
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler