RuntimeException
Failed to write cache file "/nas/content/live/riverbendresid/wp-content/cache/gantry5/rbr/twig/00/008a2419771470d1403bb52cf6695df092288368977fc0728e999237e36941f2.php". RuntimeException thrown with message "Failed to write cache file "/nas/content/live/riverbendresid/wp-content/cache/gantry5/rbr/twig/00/008a2419771470d1403bb52cf6695df092288368977fc0728e999237e36941f2.php"." Stacktrace: #9 RuntimeException in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/classes/Gantry/Component/Twig/TwigCacheFilesystem.php:78 #8 Gantry\Component\Twig\TwigCacheFilesystem:write in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Environment.php:487 #7 Twig\Environment:loadClass in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Environment.php:445 #6 Twig\Environment:loadTemplate in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Environment.php:423 #5 Twig\Environment:load in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/vendor/twig/twig/src/Environment.php:384 #4 Twig\Environment:render in /nas/content/live/riverbendresid/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:141 #3 Gantry\Framework\Theme:render in /nas/content/live/riverbendresid/wp-content/themes/uranium/page.php:36 #2 include in /nas/content/live/riverbendresid/wp-includes/template-loader.php:132 #1 require_once in /nas/content/live/riverbendresid/wp-blog-header.php:19 #0 require in /nas/content/live/riverbendresid/index.php:17
Stack frames (10)
9
RuntimeException
/classes/Gantry/Component/Twig/TwigCacheFilesystem.php78
8
Gantry\Component\Twig\TwigCacheFilesystem write
/vendor/twig/twig/src/Environment.php487
7
Twig\Environment loadClass
/vendor/twig/twig/src/Environment.php445
6
Twig\Environment loadTemplate
/vendor/twig/twig/src/Environment.php423
5
Twig\Environment load
/vendor/twig/twig/src/Environment.php384
4
Twig\Environment render
/classes/Gantry/Framework/Theme.php141
3
Gantry\Framework\Theme render
/nas/content/live/riverbendresid/wp-content/themes/uranium/page.php36
2
include
/nas/content/live/riverbendresid/wp-includes/template-loader.php132
1
require_once
/nas/content/live/riverbendresid/wp-blog-header.php19
0
require
/nas/content/live/riverbendresid/index.php17
                throw new \RuntimeException(sprintf('Unable to create the cache directory (%s).', $dir));
            }
        } elseif (!is_writable($dir)) {
            throw new \RuntimeException(sprintf('Unable to write in the cache directory (%s).', $dir));
        }
        $tmpFile = tempnam($dir, basename($key));
        if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $key)) {
            @chmod($key, 0666 & ~umask());
            if (self::FORCE_BYTECODE_INVALIDATION == ($this->options & self::FORCE_BYTECODE_INVALIDATION)) {
                // Compile cached file into bytecode cache
                if (function_exists('opcache_invalidate')) {
                    // Silence error in case if `opcache.restrict_api` directive is set.
                    @opcache_invalidate($key, true);
                } elseif (function_exists('apc_compile_file')) {
                    @apc_compile_file($key);
                }
            }
            return;
        }
        throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $key));
    }
    /**
     * {@inheritdoc}
     */
    public function getTimestamp($key)
    {
        if (!file_exists($key)) {
            return 0;
        }
        return (int) @filemtime($key);
    }
}
 
 
            if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
                $this->cache->load($key);
            }
 
            $source = null;
            if (!class_exists($cls, false)) {
                $loader = $this->getLoader();
                if (!$loader instanceof SourceContextLoaderInterface) {
                    $source = new Source($loader->getSource($name), $name);
                } 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();
    /**
     * Loads a template internal representation.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @param string $name  The template name
     * @param int    $index The index if it is an embedded template
     *
     * @return \Twig_TemplateInterface A template instance representing the given template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @internal
     */
    public function loadTemplate($name, $index = null)
    {
        return $this->loadClass($this->getTemplateClass($name), $name, $index);
    }
 
    /**
     * @internal
     */
    public function loadClass($cls, $name, $index = null)
    {
        $mainCls = $cls;
        if (null !== $index) {
            $cls .= '___'.$index;
        }
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if ($this->bcGetCacheFilename) {
                $key = $this->getCacheFilename($name);
            } else {
     *
     * @param string|TemplateWrapper|\Twig\Template $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @return TemplateWrapper
     */
    public function load($name)
    {
        if ($name instanceof TemplateWrapper) {
            return $name;
        }
 
        if ($name instanceof Template) {
            return new TemplateWrapper($this, $name);
        }
 
        return new TemplateWrapper($this, $this->loadTemplate($name));
    }
 
    /**
     * Loads a template internal representation.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @param string $name  The template name
     * @param int    $index The index if it is an embedded template
     *
     * @return \Twig_TemplateInterface A template instance representing the given template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @internal
     */
    public function loadTemplate($name, $index = null)
        @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) {
            \Gantry\Debugger::addMessage('Selecting outline (rules, matches, scores):', 'debug');
            \Gantry\Debugger::addMessage($assignments->getPage(), 'debug');
            \Gantry\Debugger::addMessage($assignments->matches(), 'debug');
            \Gantry\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'] = $theme->render('partials/page_head.html.twig', $context);

$post            = Timber::query_post();
$context['post'] = $post;

Timber::render(['page-' . $post->post_name . '.html.twig', 'page.html.twig'], $context);
 
     */
    $template   = apply_filters( 'template_include', $template );
    $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    $template   = $is_stringy ? realpath( (string) $template ) : null;
    if (
        is_string( $template ) &&
        ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
        is_file( $template ) &&
        is_readable( $template )
    ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $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 nginx
REQUEST_URI /
USER fpm200067
HOME /home/fpm200067
WPENGINE_ACCOUNT riverbendresid
WPENGINE_PHPSESSIONS on
WPENGINE_DB_SESSIONS off
REDIRECT_STATUS 200
HTTPS on
HTTP_X_WPE_SSL 1
HTTP_X_WPE_EDGE AN
HTTP_X_WPENGINE_PHP_VERSION 7.4
HTTP_X_WORDPRESS_TYPE DEFAULT
HTTP_X_FORWARDED_HOST riverbendresidence.com
DOCUMENT_ROOT /nas/content/live/riverbendresid
PATH_INFO
REQUEST_SCHEME http
HTTP_CF_CONNECTING_IP 18.193.252.127, 18.193.252.127, 18.193.252.127
HTTP_CF_VISITOR {\"scheme\":\"https\"}
SERVER_NAME riverbendresidence.com
REMOTE_ADDR 18.193.252.127
SERVER_ADDR 127.0.0.1
HTTP_REFERER https://riverbendresidence.com/
HTTP_CF_IPCOUNTRY DE
HTTP_X_WPE_LOCAL_SSL 1
HTTP_USER_AGENT Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
HTTP_X_FORWARDED_PROTO https
SCRIPT_FILENAME /nas/content/live/riverbendresid/index.php
GATEWAY_INTERFACE CGI/1.1
HTTP_X_WPE_REQUEST_ID 6a413e4d44424c3b16e3751d64f38cee
HTTP_VIA 1.1 pod-404710 (Varnish/8.0)
HTTP_X_WPE_INSTALL_NAME riverbendresid
PHP_ADMIN_VALUE newrelic.browser_monitoring.auto_instrument=off; newrelic.enabled=off; newrelic.license=; sendmail_path=/bin/sendmail-wrapper.sh 5b7ea12d5efa8de29e9e6505a5de420da8ba2ef3 /usr/sbin/sendmail -t -i; syslog.ident=phperr-riverbendresid; newrelic.appname=riverbendresid;
DOCUMENT_URI /index.php
CONTENT_LENGTH 0
HTTP_RAWHOST riverbendresidence.com
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8
SCRIPT_NAME /index.php
CONTENT_TYPE
HTTP_WPE_READONLY on
PHP_VALUE upload_max_filesize=50M; post_max_size=100M;
SERVER_PROTOCOL HTTP/1.1
PATH_TRANSLATED /nas/content/live/riverbendresid/index.php
QUERY_STRING
IS_WPE 1
REMOTE_PORT
HTTP_X_REAL_IP_REMOTE 104.23.245.131
HTTP_ACCEPT_ENCODING gzip
HTTP_CDN_LOOP cloudflare; loops=1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CF_RAY a0aa707f58bd18da-ATL
HTTP_X_UA_ORIGINAL Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
HTTP_X_CACHE_GROUP normal
SERVER_PORT 80
HTTP_HOST riverbendresidence.com
HTTP_X_EFPC_ENABLED true
HTTP_X_IS_BOT 1
SYSLOG_IDENT phperr-riverbendresid
REQUEST_METHOD GET
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1781283916.83
REQUEST_TIME 1781283916
Key Value
USER fpm200067
HOME /home/fpm200067
WPENGINE_ACCOUNT riverbendresid
WPENGINE_PHPSESSIONS on
WPENGINE_DB_SESSIONS off
REDIRECT_STATUS 200
HTTPS on
HTTP_X_WPE_SSL 1
HTTP_X_WPE_EDGE AN
HTTP_X_WPENGINE_PHP_VERSION 7.4
HTTP_X_WORDPRESS_TYPE DEFAULT
HTTP_X_FORWARDED_HOST riverbendresidence.com
DOCUMENT_ROOT /nas/content/live/riverbendresid
PATH_INFO
REQUEST_SCHEME http
HTTP_CF_CONNECTING_IP 18.193.252.127, 18.193.252.127, 18.193.252.127
HTTP_CF_VISITOR {"scheme":"https"}
SERVER_NAME riverbendresidence.com
REMOTE_ADDR 18.193.252.127
SERVER_ADDR 127.0.0.1
HTTP_REFERER https://riverbendresidence.com/
HTTP_CF_IPCOUNTRY DE
HTTP_X_WPE_LOCAL_SSL 1
HTTP_USER_AGENT Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
HTTP_X_FORWARDED_PROTO https
SCRIPT_FILENAME /nas/content/live/riverbendresid/index.php
GATEWAY_INTERFACE CGI/1.1
HTTP_X_WPE_REQUEST_ID 6a413e4d44424c3b16e3751d64f38cee
HTTP_VIA 1.1 pod-404710 (Varnish/8.0)
HTTP_X_WPE_INSTALL_NAME riverbendresid
PHP_ADMIN_VALUE newrelic.browser_monitoring.auto_instrument=off; newrelic.enabled=off; newrelic.license=; sendmail_path=/bin/sendmail-wrapper.sh 5b7ea12d5efa8de29e9e6505a5de420da8ba2ef3 /usr/sbin/sendmail -t -i; syslog.ident=phperr-riverbendresid; newrelic.appname=riverbendresid;
DOCUMENT_URI /index.php
CONTENT_LENGTH 0
HTTP_RAWHOST riverbendresidence.com
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8
SCRIPT_NAME /index.php
CONTENT_TYPE
HTTP_WPE_READONLY on
PHP_VALUE upload_max_filesize=50M; post_max_size=100M;
SERVER_PROTOCOL HTTP/1.1
PATH_TRANSLATED /nas/content/live/riverbendresid/index.php
QUERY_STRING
IS_WPE 1
REMOTE_PORT
SERVER_SOFTWARE nginx
HTTP_X_REAL_IP_REMOTE 104.23.245.131
HTTP_ACCEPT_ENCODING gzip
HTTP_CDN_LOOP cloudflare; loops=1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CF_RAY a0aa707f58bd18da-ATL
HTTP_X_UA_ORIGINAL Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
HTTP_X_CACHE_GROUP normal
SERVER_PORT 80
HTTP_HOST riverbendresidence.com
HTTP_X_EFPC_ENABLED true
HTTP_X_IS_BOT 1
SYSLOG_IDENT phperr-riverbendresid
REQUEST_URI /
REQUEST_METHOD GET
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1781283916.83
REQUEST_TIME 1781283916
0. Whoops\Handler\PrettyPageHandler