Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: gilchrist Whoops\Exception\ErrorException thrown with message "Undefined index: gilchrist" Stacktrace: #8 Whoops\Exception\ErrorException in C:\xampp-public\htdocs\site\templates\blog_post.php:75 #7 Whoops\Run:handleError in C:\xampp-public\htdocs\site\templates\blog_post.php:75 #6 require in C:\xampp-public\htdocs\kirby\vendor\getkirby\toolkit\lib\tpl.php:22 #5 Tpl:load in C:\xampp-public\htdocs\kirby\kirby\component\template.php:103 #4 Kirby\Component\Template:render in C:\xampp-public\htdocs\kirby\kirby.php:681 #3 Kirby:template in C:\xampp-public\htdocs\kirby\kirby.php:669 #2 Kirby:render in C:\xampp-public\htdocs\kirby\kirby\component\response.php:29 #1 Kirby\Component\Response:make in C:\xampp-public\htdocs\kirby\kirby.php:751 #0 Kirby:launch in C:\xampp-public\htdocs\index.php:16
Stack frames (9)
8
Whoops
\
Exception
\
ErrorException
C:\xampp-public\htdocs\site\templates\blog_post.php
75
7
Whoops
\
Run
handleError
C:\xampp-public\htdocs\site\templates\blog_post.php
75
6
require
…\vendor\getkirby\toolkit\lib\tpl.php
22
5
Tpl
load
…\kirby\component\template.php
103
4
Kirby
\
Component
\
Template
render
…\kirby.php
681
3
Kirby
template
…\kirby.php
669
2
Kirby
render
…\kirby\component\response.php
29
1
Kirby
\
Component
\
Response
make
…\kirby.php
751
0
Kirby
launch
C:\xampp-public\htdocs\index.php
16
C:\xampp-public\htdocs\site\templates\blog_post.php
                        <h2 class="post-title"><?php echo $page->title() ?></h2>
                    </header>
                    <article class="post-content">
                        <span class="post-meta meta-data">
                            <span><i class="fa fa-calendar"></i> Posted on
                                <?php
                                if (strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN') {
                                    echo strftime('%B %#d, %Y', $page->date());
                                } else {
                                    echo strftime('%B %e, %Y', $page->date());
                                }
                                ?>
                            </span>
                            <span><i class="fa fa-archive"></i> Categories:
                                <?php $categories = explode(",", $page->categories());?>
                                <?php foreach($categories as $category): ?>
                                    <a href="<?php echo url('news-&-media/blog/category:' . $category)?>"><?php echo $cnames[trim((string)$category)]; ?></a>
                                <?php endforeach ?>
                            </span>
                            <span><i class="fa fa-user"></i> Author: <a href="<?php echo url('news-&-media/blog/author:' . $page->author())?>"><?php echo $authors[(string)$page->author()] ?></a></span>
                        </span>
                        <?php if($page->images()->count() <> 0): ?>
                                    <img src="<?php echo $page->images()->first()->url() ?>" alt="" class="img-thumbnail">
                                    <div class="spacer-20"></div>
                                <?php else: ?>
                                    <div align="center"><?php echo kirbytext($page->embed_image())?></div>
                                <?php endif ?>
                        <?php echo kirbytext($page->text())?>
                        
 
                        <div class="post-meta"> <i class="fa fa-tags"></i>
                            <?php $tags = explode(",", $page->tags());?>
                            <?php foreach($tags as $tag): ?>
                                <a href="<?php echo url('blog/tag:' . trim($tag))?>"><?php echo $tag ?></a>
                            <?php endforeach ?>
                        </div>
                        <?php snippet('disqus', array('disqus_shortname' => 'wpcpgh', 'disqus_developer' => true )) ?>
                    </article>
                </div>
                
C:\xampp-public\htdocs\site\templates\blog_post.php
                        <h2 class="post-title"><?php echo $page->title() ?></h2>
                    </header>
                    <article class="post-content">
                        <span class="post-meta meta-data">
                            <span><i class="fa fa-calendar"></i> Posted on
                                <?php
                                if (strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN') {
                                    echo strftime('%B %#d, %Y', $page->date());
                                } else {
                                    echo strftime('%B %e, %Y', $page->date());
                                }
                                ?>
                            </span>
                            <span><i class="fa fa-archive"></i> Categories:
                                <?php $categories = explode(",", $page->categories());?>
                                <?php foreach($categories as $category): ?>
                                    <a href="<?php echo url('news-&-media/blog/category:' . $category)?>"><?php echo $cnames[trim((string)$category)]; ?></a>
                                <?php endforeach ?>
                            </span>
                            <span><i class="fa fa-user"></i> Author: <a href="<?php echo url('news-&-media/blog/author:' . $page->author())?>"><?php echo $authors[(string)$page->author()] ?></a></span>
                        </span>
                        <?php if($page->images()->count() <> 0): ?>
                                    <img src="<?php echo $page->images()->first()->url() ?>" alt="" class="img-thumbnail">
                                    <div class="spacer-20"></div>
                                <?php else: ?>
                                    <div align="center"><?php echo kirbytext($page->embed_image())?></div>
                                <?php endif ?>
                        <?php echo kirbytext($page->text())?>
                        
 
                        <div class="post-meta"> <i class="fa fa-tags"></i>
                            <?php $tags = explode(",", $page->tags());?>
                            <?php foreach($tags as $tag): ?>
                                <a href="<?php echo url('blog/tag:' . trim($tag))?>"><?php echo $tag ?></a>
                            <?php endforeach ?>
                        </div>
                        <?php snippet('disqus', array('disqus_shortname' => 'wpcpgh', 'disqus_developer' => true )) ?>
                    </article>
                </div>
                
C:\xampp-public\htdocs\kirby\vendor\getkirby\toolkit\lib\tpl.php
/**
 * Tpl
 *
 * Super simple template engine
 *
 * @package   Kirby Toolkit
 * @author    Bastian Allgeier <[email protected]>
 * @link      http://getkirby.com
 * @copyright Bastian Allgeier
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */
class Tpl extends Silo {
 
  public static $data = array();
 
  public static function load($_file, $_data = array(), $_return = true) {
    if(!file_exists($_file)) return false;
    ob_start();
    extract(array_merge(static::$data, (array)$_data));
    require($_file);
    $_content = ob_get_contents();
    ob_end_clean();
    if($_return) return $_content;
    echo $_content;
  }
 
}
C:\xampp-public\htdocs\kirby\kirby\component\template.php
    if($template instanceof Page) {
      $page = $template;
      $file = $page->templateFile();
      $data = $this->data($page, $data);
    } else {
      $file = $template;
      $data = $this->data(null, $data);
    }
 
    // check for an existing template
    if(!file_exists($file)) {
      throw new Exception('The template could not be found');
    }
 
    // merge and register the template data globally
    $tplData = tpl::$data;
    tpl::$data = array_merge(tpl::$data, $data);
 
    // load the template
    $result = tpl::load($file, null, $return);
 
    // reset the template data
    tpl::$data = $tplData;
 
    return $result;
 
  }
 
}
 
C:\xampp-public\htdocs\kirby\kirby.php
      }
 
      return $template;
 
    }
 
    // return a fresh template
    return $this->template($page, $data);
 
  }
 
  /**
   * Template configuration
   *
   * @param Page $page
   * @param array $data
   * @return string
   */
  public function template(Page $page, $data = array()) {
    return $this->component('template')->render($page, $data);
  }
 
  public function request() {
    if(!is_null($this->request)) return $this->request;
    return $this->request = new Request($this);
  }
 
  public function router() {
    return $this->router;
  }
 
  public function route() {
    return $this->route;
  }
 
  /**
   * Starts the router, renders the page and returns the response
   *
   * @return mixed
   */
C:\xampp-public\htdocs\kirby\kirby.php
        }
 
      }
 
      // try to fetch the template from cache
      $template = $this->cache()->get($cacheId);
 
      // fetch fresh content if the cache is empty
      if(empty($template)) {
        $template = $this->template($page, $data);
        // store the result for the next round
        $this->cache()->set($cacheId, $template);
      }
 
      return $template;
 
    }
 
    // return a fresh template
    return $this->template($page, $data);
 
  }
 
  /**
   * Template configuration
   *
   * @param Page $page
   * @param array $data
   * @return string
   */
  public function template(Page $page, $data = array()) {
    return $this->component('template')->render($page, $data);
  }
 
  public function request() {
    if(!is_null($this->request)) return $this->request;
    return $this->request = new Request($this);
  }
 
  public function router() {
C:\xampp-public\htdocs\kirby\kirby\component\response.php
 * @link      http://getkirby.com
 * @copyright Bastian Allgeier
 * @license   http://getkirby.com/license
 */
class Response extends \Kirby\Component {
 
  /**
   * Builds and return the response by various input
   * 
   * @param mixed $response
   * @return mixed
   */
  public function make($response) {
 
    if(is_string($response)) {
      return $this->kirby->render(page($response));
    } else if(is_array($response)) {
      return $this->kirby->render(page($response[0]), $response[1]);
    } else if(is_a($response, 'Page')) {
      return $this->kirby->render($response);      
    } else if(is_a($response, 'Response')) {
      return $response;
    } else {
      return null;
    }
 
  }
 
}
C:\xampp-public\htdocs\kirby\kirby.php
    // check for a valid route
    if(is_null($this->route)) {
      header::status('500');
      header::type('json');
      die(json_encode(array(
        'status'  => 'error',
        'message' => 'Invalid route or request method'
      )));
    }
 
    // call the router action with all arguments from the pattern
    $response = call($this->route->action(), $this->route->arguments());
 
    // load all language variables
    // this can only be loaded once the router action has been called
    // otherwise the current language is not yet available
    $this->localize();
 
    // build the response
    $this->response = $this->component('response')->make($response);
 
    // store the current language in the session
    if(
        $this->option('language.detect') &&
        $this->site()->multilang() &&
        $this->site()->language()
      ) {
      s::set('kirby_language', $this->site()->language()->code());
    }
 
    return $this->response;
 
  }
 
  /**
   * Register a new hook
   *
   * @param string/array $hook The name of the hook
   * @param closure $callback
   */
C:\xampp-public\htdocs\index.php
<?php
 
define('DS', DIRECTORY_SEPARATOR);
 
// load kirby
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
 
// check for a custom site.php
if(file_exists(__DIR__ . DS . 'site.php')) {
  require(__DIR__ . DS . 'site.php');
} else {
  $kirby = kirby();
}
 
// render
echo $kirby->launch();

Environment & details:

Key Value
Kirby Toolkit v2.5.14
Kirby CMS v2.5.14
empty
empty
empty
empty
empty
Key Value
REDIRECT_MIBDIRS /xampp/php/extras/mibs
REDIRECT_MYSQL_HOME \xampp\mysql\bin
REDIRECT_OPENSSL_CONF /xampp/apache/bin/openssl.cnf
REDIRECT_PHP_PEAR_SYSCONF_DIR \xampp\php
REDIRECT_PHPRC \xampp\php
REDIRECT_TMP \xampp\tmp
REDIRECT_STATUS 200
MIBDIRS /xampp/php/extras/mibs
MYSQL_HOME \xampp\mysql\bin
OPENSSL_CONF /xampp/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR \xampp\php
PHPRC \xampp\php
TMP \xampp\tmp
HTTP_HOST www.westminster-church.org
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip, br
HTTP_X_FORWARDED_FOR 44.200.23.133
HTTP_CF_RAY 86b7b46e5c2b87a9-IAD
HTTP_X_FORWARDED_PROTO https
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_CF_CONNECTING_IP 44.200.23.133
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\idmu\common;c:\Follett\2012\SQLExpress (x86)\Data\110\Tools\Binn\;c:\Follett\2012\2012\SQLExpress\Data\110\Tools\Binn\;c:\Follett\2012\2012\SQLExpress\Data\110\DTS\Binn\;c:\Follett\2012\SQLExpress (x86)\Data\110\Tools\Binn\ManagementStudio\;c:\Follett\2012\SQLExpress (x86)\Data\110\DTS\Binn\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;
SystemRoot C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
SERVER_SIGNATURE <address>Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33 Server at www.westminster-church.org Port 80</address>
SERVER_SOFTWARE Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.33
SERVER_NAME www.westminster-church.org
SERVER_ADDR 192.168.7.38
SERVER_PORT 80
REMOTE_ADDR 162.158.79.176
DOCUMENT_ROOT C:/xampp-public/htdocs
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT C:/xampp-public/htdocs
SERVER_ADMIN postmaster@localhost
SCRIPT_FILENAME C:/xampp-public/htdocs/index.php
REMOTE_PORT 55508
REDIRECT_URL /news-&-media/blog/whom-shall-i-fear
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /news-&-media/blog/whom-shall-i-fear
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711629795.4546
REQUEST_TIME 1711629795
empty
0. Whoops\Handler\PrettyPageHandler