Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("Failed to write cache file "/nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/67/67704ef50512ae0d74573f27196704b9f4e1577f8ba4474002787db18d4ebbcc.php".").
Previous exceptions
  • Failed to write cache file "/nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/67/67704ef50512ae0d74573f27196704b9f4e1577f8ba4474002787db18d4ebbcc.php". (0)
Twig\Error\RuntimeError thrown with message "An exception has been thrown during the rendering of a template ("Failed to write cache file "/nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/67/67704ef50512ae0d74573f27196704b9f4e1577f8ba4474002787db18d4ebbcc.php".")." Stacktrace: #19 Twig\Error\RuntimeError in /nas/content/live/gfguide/wp-content/plugins/gantry5/engines/nucleus/views/partials/page_head.html.twig:1 #18 RuntimeException in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Cache/FilesystemCache.php:80 #17 Twig\Cache\FilesystemCache:write in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:487 #16 Twig\Environment:loadClass in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:445 #15 Twig\Environment:loadTemplate in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:375 #14 Twig\Template:loadTemplate in /nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/f9/f9b00333b15ce8430e839646bc56c43684d497adb05f92b050c04d5721e1e058.php:37 #13 __TwigTemplate_66eb59c1f903e28e5516ec2fb688c3330ca37fd59b0ade18aa6c007213d59322:doDisplay in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:453 #12 Twig\Template:displayWithErrorHandling in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:420 #11 Twig\Template:display in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Template.php:432 #10 Twig\Template:render in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/TemplateWrapper.php:47 #9 Twig\TemplateWrapper:render in /nas/content/live/gfguide/wp-content/plugins/gantry5/compat/vendor/twig/twig/src/Environment.php:384 #8 Twig\Environment:render in /nas/content/live/gfguide/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:153 #7 Gantry\Framework\Theme:render in /nas/content/live/gfguide/wp-content/themes/g5_helium/header.php:25 #6 require_once in /nas/content/live/gfguide/wp-includes/template.php:810 #5 load_template in /nas/content/live/gfguide/wp-includes/template.php:745 #4 locate_template in /nas/content/live/gfguide/wp-includes/general-template.php:48 #3 get_header in /nas/content/live/gfguide/wp-content/plugins/blog-designer-pro/bdp_templates/single/single.php:14 #2 include in /nas/content/live/gfguide/wp-includes/template-loader.php:106 #1 require_once in /nas/content/live/gfguide/wp-blog-header.php:19 #0 require in /nas/content/live/gfguide/index.php:17
Stack frames (20)
19
Twig\Error\RuntimeError
/engines/nucleus/views/partials/page_head.html.twig1
18
RuntimeException
/compat/vendor/twig/twig/src/Cache/FilesystemCache.php80
17
Twig\Cache\FilesystemCache write
/compat/vendor/twig/twig/src/Environment.php487
16
Twig\Environment loadClass
/compat/vendor/twig/twig/src/Environment.php445
15
Twig\Environment loadTemplate
/compat/vendor/twig/twig/src/Template.php375
14
Twig\Template loadTemplate
/nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/f9/f9b00333b15ce8430e839646bc56c43684d497adb05f92b050c04d5721e1e058.php37
13
__TwigTemplate_66eb59c1f903e28e5516ec2fb688c3330ca37fd59b0ade18aa6c007213d59322 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/Framework/Theme.php153
7
Gantry\Framework\Theme render
/nas/content/live/gfguide/wp-content/themes/g5_helium/header.php25
6
require_once
/nas/content/live/gfguide/wp-includes/template.php810
5
load_template
/nas/content/live/gfguide/wp-includes/template.php745
4
locate_template
/nas/content/live/gfguide/wp-includes/general-template.php48
3
get_header
/nas/content/live/gfguide/wp-content/plugins/blog-designer-pro/bdp_templates/single/single.php14
2
include
/nas/content/live/gfguide/wp-includes/template-loader.php106
1
require_once
/nas/content/live/gfguide/wp-blog-header.php19
0
require
/nas/content/live/gfguide/index.php17
{% extends "@nucleus/page_head.html.twig" %}
 
{% block head_title -%}
    <meta http-equiv="Content-Type" content="text/html; charset={{ site.charset }}" />
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="{{ site.pingback_url }}" />
{%- endblock %}
 
{% block head_application -%}
    {{ wp_head|raw }}
{%- endblock %}
 
{% block head_platform -%}
    {{ parent() }}
    <link rel="stylesheet" href="{{ url('gantry-engine://css-compiled/wordpress.css') }}" type="text/css" />
    <link rel="stylesheet" href="{{ url('gantry-theme://style.css') }}" type="text/css" />
{%- endblock %}
 
{% block head -%}
    {{ parent() }}
{%- endblock %}
 
            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') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN)) {
                    @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));
    }
 
    public function getTimestamp($key)
    {
        if (!file_exists($key)) {
            return 0;
        }
 
        return (int) @filemtime($key);
    }
}
 
class_alias('Twig\Cache\FilesystemCache', 'Twig_Cache_Filesystem');
 
Exception message: Failed to write cache file "/nas/content/live/gfguide/wp-content/cache/gantry5/TMSC/twig/67/67704ef50512ae0d74573f27196704b9f4e1577f8ba4474002787db18d4ebbcc.php".
 
            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 {
    {
        try {
            if (\is_array($template)) {
                return $this->env->resolveTemplate($template);
            }
 
            if ($template instanceof self || $template instanceof TemplateWrapper) {
                return $template;
            }
 
            if ($template === $this->getTemplateName()) {
                $class = static::class;
                if (false !== $pos = strrpos($class, '___', -1)) {
                    $class = substr($class, 0, $pos);
                }
 
                return $this->env->loadClass($class, $template, $index);
            }
 
            return $this->env->loadTemplate($template, $index);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($templateName ? new Source('', $templateName) : $this->getSourceContext());
            }
 
            if ($e->getTemplateLine() > 0) {
                throw $e;
            }
 
            if (!$line) {
                $e->guess();
            } else {
                $e->setTemplateLine($line);
            }
 
            throw $e;
        }
    }
 
    /**
    {
        parent::__construct($env);
 
        $this->blocks = [
            'head_title' => [$this, 'block_head_title'],
            'head_application' => [$this, 'block_head_application'],
            'head_platform' => [$this, 'block_head_platform'],
            'head' => [$this, 'block_head'],
        ];
    }
 
    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/page_head.html.twig";
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/page_head.html.twig", "partials/page_head.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }
 
    // line 3
    public function block_head_title($context, array $blocks = [])
    {
        // line 4
        echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
        echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "charset", []), "html", null, true);
        echo "\" />
    <link rel=\"profile\" href=\"http://gmpg.org/xfn/11\" />
    <link rel=\"pingback\" href=\"";
        // line 6
        echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "pingback_url", []), "html", null, true);
        echo "\" />";
    }
 
    // line 9
    public function block_head_application($context, array $blocks = [])
    {
            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();
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */

defined('ABSPATH') or die;

use Timber\Timber;

/*
 * Third party plugins that hijack the theme will call wp_head() to get the header template.
 * We use this to start our output buffer and render into the views/page-plugin.html.twig template in footer.php
 */

$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);

$GLOBALS['timberContext'] = $context;

ob_start();
 
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
 
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
            $located = $wp_stylesheet_path . '/' . $template_name;
            break;
        } elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
            $located = $wp_template_path . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific header file to use. Null for the default header.
     * @param array       $args Additional arguments passed to the header template.
     */
    do_action( 'get_header', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialized footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string|null $name The name of the specialized footer. Default null.
 * @param array       $args Optional. Additional arguments passed to the footer template.
 *                          Default empty array.
<?php
/**
 * The template for displaying all single posts
 * This template can be overridden by copying it to yourtheme/bdp_templates/single/single.php.
 *
 * @link       https://www.solwininfotech.com/
 * @since      2.4
 *
 * @package    Blog_Designer_PRO
 * @subpackage Blog_Designer_PRO/admin
 * @author     Solwin Infotech <info@solwininfotech.com>
 */
 
get_header();
Bdp_Posts::set_post_views( get_the_ID() );
global $wpdb;
$bdp_settings              = Bdp_Template::get_single_template_setting_front_end();
$alter_class               = '';
$style                     = '';
$bdp_theme                 = apply_filters( 'bdp_filter_template', $bdp_settings['template_name'] );
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( 1 == $bdp_template_name_changed ) { //phpcs:ignore
    if ( 'classical' === $bdp_theme ) {
        $bdp_theme = 'nicy';
    } elseif ( 'lightbreeze' === $bdp_theme ) {
        $bdp_theme = 'sharpen';
    } elseif ( 'spektrum' === $bdp_theme ) {
        $bdp_theme = 'hub';
    }
} else {
    update_option( 'bdp_template_name_changed', 0 );
}
$main_container_class = ( isset( $bdp_settings['main_container_class'] ) && '' != $bdp_settings['main_container_class'] ) ? $bdp_settings['main_container_class'] : ''; //phpcs:ignore
$bdads_to_show_after = (isset($bdp_settings['bdads_to_show_after'])) ? $bdp_settings['bdads_to_show_after'] : 'main_content'; //phpcs:ignore
$bdp_display_related_post = isset( $bdp_settings['bdp_display_related_post'] ) ? $bdp_settings['bdp_display_related_post'] : 'bottom';
if ( has_post_thumbnail() && 'overlay_horizontal' === $bdp_theme ) {
        $url   = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
        $style = 'style="background-image:url(' . $url . ')"';
}
if ( 'overlay_horizontal' === $bdp_theme || 'cool_horizontal' === $bdp_theme ) {
            }
 
            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:

Key Value
replytocom 14984
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx
REQUEST_URI /2011/06/who-wants-to-be-history/?replytocom=14984
USER fpm200017
HOME /home/fpm200017
WPENGINE_ACCOUNT gfguide
WPENGINE_PHPSESSIONS on
WPENGINE_DB_SESSIONS off
WPENGINE_ALLOW_FLOCK off
WPENGINE_MAIL_HOOK on
HTTP_RAWHOST www.goodfuneralguide.co.uk
REMOTE_ADDR 216.73.216.167
REQUEST_SCHEME http
SERVER_ADDR 127.0.0.1
HTTP_X_WPE_INSTALL_NAME gfguide
HTTP_ACCEPT_ENCODING gzip
HTTP_X_CACHE_GROUP normal
HTTP_X_WORDPRESS_TYPE DEFAULT
SYSLOG_IDENT phperr-gfguide
SCRIPT_NAME /index.php
QUERY_STRING replytocom=14984
SERVER_PORT 80
HTTP_X_FORWARDED_HOST www.goodfuneralguide.co.uk
PATH_TRANSLATED /nas/content/live/gfguide/index.php
PATH_INFO
REQUEST_METHOD GET
HTTPS on
REMOTE_PORT
HTTP_ACCEPT */*
HTTP_X_WPENGINE_PHP_VERSION 8.4
DOCUMENT_URI /index.php
IS_WPE 1
HTTP_X_FORWARDED_PROTO https
GATEWAY_INTERFACE CGI/1.1
HTTP_X_REAL_IP_REMOTE 216.73.216.167
HTTP_X_WPE_SSL 1
HTTP_X_WPE_LOCAL_SSL 1
HTTP_VIA 1.1 pod-402161 (Varnish/7.7)
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /nas/content/live/gfguide
HTTP_HOST www.goodfuneralguide.co.uk
HTTP_X_WPE_REQUEST_ID 3713f1cf02b7937ad18db0a3045c60d7
HTTP_CF_CONNECTING_IP 216.73.216.167, 216.73.216.167
PHP_VALUE upload_max_filesize=50M; post_max_size=100M;
PHP_ADMIN_VALUE sendmail_path=/bin/sendmail-wrapper.sh 9c6b06b5c198384abe6191dea6663a37b89f8472 /usr/sbin/sendmail -t -i; syslog.ident=phperr-gfguide; newrelic.appname=gfguide; newrelic.browser_monitoring.auto_instrument=off; newrelic.enabled=off; newrelic.license=;
SCRIPT_FILENAME /nas/content/live/gfguide/index.php
CONTENT_TYPE
REDIRECT_STATUS 200
HTTP_X_IS_BOT 1
SERVER_NAME www.goodfuneralguide.co.uk
CONTENT_LENGTH 0
HTTP_WPE_READONLY on
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_UA_ORIGINAL Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1770860482.7
REQUEST_TIME 1770860482
Key Value
USER fpm200017
HOME /home/fpm200017
WPENGINE_ACCOUNT gfguide
WPENGINE_PHPSESSIONS on
WPENGINE_DB_SESSIONS off
WPENGINE_ALLOW_FLOCK off
WPENGINE_MAIL_HOOK on
HTTP_RAWHOST www.goodfuneralguide.co.uk
REMOTE_ADDR 216.73.216.167
REQUEST_SCHEME http
SERVER_ADDR 127.0.0.1
HTTP_X_WPE_INSTALL_NAME gfguide
HTTP_ACCEPT_ENCODING gzip
HTTP_X_CACHE_GROUP normal
HTTP_X_WORDPRESS_TYPE DEFAULT
SYSLOG_IDENT phperr-gfguide
SCRIPT_NAME /index.php
QUERY_STRING replytocom=14984
SERVER_PORT 80
HTTP_X_FORWARDED_HOST www.goodfuneralguide.co.uk
PATH_TRANSLATED /nas/content/live/gfguide/index.php
PATH_INFO
REQUEST_METHOD GET
HTTPS on
REMOTE_PORT
HTTP_ACCEPT */*
HTTP_X_WPENGINE_PHP_VERSION 8.4
DOCUMENT_URI /index.php
IS_WPE 1
SERVER_SOFTWARE nginx
HTTP_X_FORWARDED_PROTO https
GATEWAY_INTERFACE CGI/1.1
HTTP_X_REAL_IP_REMOTE 216.73.216.167
HTTP_X_WPE_SSL 1
HTTP_X_WPE_LOCAL_SSL 1
HTTP_VIA 1.1 pod-402161 (Varnish/7.7)
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /nas/content/live/gfguide
REQUEST_URI /2011/06/who-wants-to-be-history/?replytocom=14984
HTTP_HOST www.goodfuneralguide.co.uk
HTTP_X_WPE_REQUEST_ID 3713f1cf02b7937ad18db0a3045c60d7
HTTP_CF_CONNECTING_IP 216.73.216.167, 216.73.216.167
PHP_VALUE upload_max_filesize=50M; post_max_size=100M;
PHP_ADMIN_VALUE sendmail_path=/bin/sendmail-wrapper.sh 9c6b06b5c198384abe6191dea6663a37b89f8472 /usr/sbin/sendmail -t -i; syslog.ident=phperr-gfguide; newrelic.appname=gfguide; newrelic.browser_monitoring.auto_instrument=off; newrelic.enabled=off; newrelic.license=;
SCRIPT_FILENAME /nas/content/live/gfguide/index.php
CONTENT_TYPE
REDIRECT_STATUS 200
HTTP_X_IS_BOT 1
SERVER_NAME www.goodfuneralguide.co.uk
CONTENT_LENGTH 0
HTTP_WPE_READONLY on
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_UA_ORIGINAL Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1770860482.7
REQUEST_TIME 1770860482
0. Whoops\Handler\PrettyPageHandler