Whoops \ Exception \ ErrorException (E_NOTICE)
session_start(): A session had already been started - ignoring Whoops\Exception\ErrorException thrown with message "session_start(): A session had already been started - ignoring" Stacktrace: #8 Whoops\Exception\ErrorException in C:\xampp-public\htdocs\site\templates\login.php:6 #7 session_start in C:\xampp-public\htdocs\site\templates\login.php:6 #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\login.php
6
7
session_start
C:\xampp-public\htdocs\site\templates\login.php
6
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\login.php
<?php
    // Version 01-04-2017    
    // Start output buffering and initialize a session.
    
ob_start();
session_start();
 
$u_actual = 'Lent23@WPC';
$pw_actual = 'WPC_Lent23';
 
        //echo $_POST['username'];
        //echo $_POST['password'];    
 
if (isset($_POST['submit'])) { // Check if the form has been submitted.
        
 
    if (empty($_POST['username'])) { // Validate the username.
        $u = FALSE;
        $message = 'You forgot to enter your username!<br />';
    } else {
        $u = $_POST['username'];
         
    }
    
    if (empty($_POST['password'])) { // Validate the password.
        $p = FALSE;
        $message .= 'You forgot to enter your password!<br />';
    } else {
        $p = $_POST['password'];
        
    }
    
    if ($u && $p) { // If everything's OK.
    
         
        if ($u == $u_actual && $p == $pw_actual) { // A match was made.
                
                // Start the session, register the values & redirect.
 
                $_SESSION['user_id'] = $u_actual;
C:\xampp-public\htdocs\site\templates\login.php
<?php
    // Version 01-04-2017    
    // Start output buffering and initialize a session.
    
ob_start();
session_start();
 
$u_actual = 'Lent23@WPC';
$pw_actual = 'WPC_Lent23';
 
        //echo $_POST['username'];
        //echo $_POST['password'];    
 
if (isset($_POST['submit'])) { // Check if the form has been submitted.
        
 
    if (empty($_POST['username'])) { // Validate the username.
        $u = FALSE;
        $message = 'You forgot to enter your username!<br />';
    } else {
        $u = $_POST['username'];
         
    }
    
    if (empty($_POST['password'])) { // Validate the password.
        $p = FALSE;
        $message .= 'You forgot to enter your password!<br />';
    } else {
        $p = $_POST['password'];
        
    }
    
    if ($u && $p) { // If everything's OK.
    
         
        if ($u == $u_actual && $p == $pw_actual) { // A match was made.
                
                // Start the session, register the values & redirect.
 
                $_SESSION['user_id'] = $u_actual;
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
Key Value
kirby_session_fingerprint 5dc1c7dfb8aa8a55224d5f6842b912c9e3d7f845
kirby_session_activity 1710837137
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
HTTP_X_FORWARDED_FOR 44.213.80.174
HTTP_CF_RAY 866c1c6a5b33081c-IAD
HTTP_X_FORWARDED_PROTO http
HTTP_CF_VISITOR {"scheme":"http"}
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_CF_CONNECTING_IP 44.213.80.174
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 172.70.38.128
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 12942
REDIRECT_URL /login
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /login
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710837136.9422
REQUEST_TIME 1710837136
empty
0. Whoops\Handler\PrettyPageHandler