Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/larkir1/greatcontroversy.org/system/defines.php on line 71
Crikey! There was an error...
Error
Undefined constant "PHP_SESSION_ACTIVE" Error thrown with message "Undefined constant "PHP_SESSION_ACTIVE"" Stacktrace: #9 Error in /home/larkir1/greatcontroversy.org/system/src/Grav/Framework/Session/Session.php:456 #8 Grav\Framework\Session\Session:isSessionStarted in /home/larkir1/greatcontroversy.org/system/src/Grav/Framework/Session/Session.php:68 #7 Grav\Framework\Session\Session:__construct in /home/larkir1/greatcontroversy.org/system/src/Grav/Common/Service/SessionServiceProvider.php:108 #6 Grav\Common\Service\SessionServiceProvider:Grav\Common\Service\{closure} in /home/larkir1/greatcontroversy.org/vendor/pimple/pimple/src/Pimple/Container.php:122 #5 Pimple\Container:offsetGet in /home/larkir1/greatcontroversy.org/system/src/Grav/Common/Processors/InitializeProcessor.php:446 #4 Grav\Common\Processors\InitializeProcessor:initializeSession in /home/larkir1/greatcontroversy.org/system/src/Grav/Common/Processors/InitializeProcessor.php:109 #3 Grav\Common\Processors\InitializeProcessor:process in /home/larkir1/greatcontroversy.org/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/larkir1/greatcontroversy.org/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/larkir1/greatcontroversy.org/system/src/Grav/Common/Grav.php:307 #0 Grav\Common\Grav:process in /home/larkir1/greatcontroversy.org/index.php:47
Stack frames (10)
9
Error
/system/src/Grav/Framework/Session/Session.php456
8
Grav\Framework\Session\Session isSessionStarted
/system/src/Grav/Framework/Session/Session.php68
7
Grav\Framework\Session\Session __construct
/system/src/Grav/Common/Service/SessionServiceProvider.php108
6
Grav\Common\Service\SessionServiceProvider Grav\Common\Service\{closure}
/vendor/pimple/pimple/src/Pimple/Container.php122
5
Pimple\Container offsetGet
/system/src/Grav/Common/Processors/InitializeProcessor.php446
4
Grav\Common\Processors\InitializeProcessor initializeSession
/system/src/Grav/Common/Processors/InitializeProcessor.php109
3
Grav\Common\Processors\InitializeProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
2
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
1
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Grav.php307
0
Grav\Common\Grav process
/index.php47
/home/larkir1/greatcontroversy.org/system/src/Grav/Framework/Session/Session.php
        $_SESSION[$name] = $value;
    }
 
    /**
     * @inheritdoc
     */
    #[\ReturnTypeWillChange]
    public function __unset($name)
    {
        unset($_SESSION[$name]);
    }
 
    /**
     * http://php.net/manual/en/function.session-status.php#113468
     * Check if session is started nicely.
     * @return bool
     */
    protected function isSessionStarted()
    {
        return \PHP_SAPI !== 'cli' ? \PHP_SESSION_ACTIVE === session_status() : false;
    }
 
    protected function onSessionStart(): void
    {
    }
 
    /**
     * Store something in cookie temporarily.
     *
     * @param int|null $lifetime
     * @return array
     */
    public function getCookieOptions(int $lifetime = null): array
    {
        $params = session_get_cookie_params();
 
        return [
            'expires'  => time() + ($lifetime ?? $params['lifetime']),
            'path'     => $params['path'],
            'domain'   => $params['domain'],
Arguments
  1. "Undefined constant "PHP_SESSION_ACTIVE""
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Framework/Session/Session.php
    /**
     * Session constructor.
     *
     * @param array $options
     */
    public function __construct(array $options = [])
    {
        // Session is a singleton.
        if (\PHP_SAPI === 'cli') {
            self::$instance = $this;
 
            return;
        }
 
        if (null !== self::$instance) {
            throw new RuntimeException('Session has already been initialized.', 500);
        }
 
        // Destroy any existing sessions started with session.auto_start
        if ($this->isSessionStarted()) {
            session_unset();
            session_destroy();
        }
 
        // Set default options.
        $options += [
            'cache_limiter' => 'nocache',
            'use_trans_sid' => 0,
            'use_cookies' => 1,
            'lazy_write' => 1,
            'use_strict_mode' => 1
        ];
 
        $this->setOptions($options);
 
        session_register_shutdown();
 
        self::$instance = $this;
    }
 
/home/larkir1/greatcontroversy.org/system/src/Grav/Common/Service/SessionServiceProvider.php
            $session_uniqueness = $config->get('system.session.uniqueness', 'path') === 'path' ?  substr(md5(GRAV_ROOT), 0, 7) :  md5($config->get('security.salt'));
 
            $session_name = $session_prefix . '-' . $session_uniqueness;
 
            if ($is_admin && $config->get('system.session.split', true)) {
                $session_name .= '-admin';
            }
 
            // Define session service.
            $options = [
                'name' => $session_name,
                'cookie_lifetime' => $cookie_lifetime,
                'cookie_path' => $cookie_path,
                'cookie_domain' => $cookie_domain,
                'cookie_secure' => $cookie_secure,
                'cookie_httponly' => $cookie_httponly,
                'cookie_samesite' => $cookie_samesite
            ] + (array) $config->get('system.session.options');
 
            $session = new Session($options);
            $session->setAutoStart($enabled);
 
            return $session;
        };
 
        // Define session message service.
        $container['messages'] = function ($c) {
            if (!isset($c['session']) || !$c['session']->isStarted()) {
                /** @var Debugger $debugger */
                $debugger = $c['debugger'];
                $debugger->addMessage('Inactive session: session messages may disappear', 'warming');
 
                return new Messages();
            }
 
            /** @var Session $session */
            $session = $c['session'];
 
            if (!$session->messages instanceof Messages) {
                $session->messages = new Messages();
Arguments
  1. array:7 [
      "name" => "grav-site-2fdb7cf"
      "cookie_lifetime" => 1800
      "cookie_path" => "/"
      "cookie_domain" => "www.greatcontroversy.org"
      "cookie_secure" => true
      "cookie_httponly" => true
      "cookie_samesite" => "Lax"
    ]
    
/home/larkir1/greatcontroversy.org/vendor/pimple/pimple/src/Pimple/Container.php
    {
        if (!isset($this->keys[$id])) {
            throw new UnknownIdentifierException($id);
        }
 
        if (
            isset($this->raw[$id])
            || !\is_object($this->values[$id])
            || isset($this->protected[$this->values[$id]])
            || !\method_exists($this->values[$id], '__invoke')
        ) {
            return $this->values[$id];
        }
 
        if (isset($this->factories[$this->values[$id]])) {
            return $this->values[$id]($this);
        }
 
        $raw = $this->values[$id];
        $val = $this->values[$id] = $raw($this);
        $this->raw[$id] = $raw;
 
        $this->frozen[$id] = true;
 
        return $val;
    }
 
    /**
     * Checks if a parameter or an object is set.
     *
     * @param string $id The unique identifier for the parameter or object
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    public function offsetExists($id)
    {
        return isset($this->keys[$id]);
    }
 
Arguments
  1. Grav\Common\Grav {#3}
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Common/Processors/InitializeProcessor.php
 
        if ($path !== $root && $path !== $root . '/' && Utils::endsWith($path, '/')) {
            // Use permanent redirect for SEO reasons.
            return $this->container->getRedirectResponse((string)$uri->withPath(rtrim($path, '/')), $code);
        }
 
        return null;
    }
 
    /**
     * @param Config $config
     */
    protected function initializeSession(Config $config): void
    {
        // FIXME: Initialize session should happen later after plugins have been loaded. This is a workaround to fix session issues in AWS.
        if (isset($this->container['session']) && $config->get('system.session.initialize', true)) {
            $this->startTimer('_init_session', 'Start Session');
 
            /** @var Session $session */
            $session = $this->container['session'];
 
            try {
                $session->init();
            } catch (SessionException $e) {
                $session->init();
                $message = 'Session corruption detected, restarting session...';
                $this->addMessage($message);
                $this->container['messages']->add($message, 'error');
            }
 
            $this->stopTimer('_init_session');
        }
    }
}
 
Arguments
  1. "session"
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Common/Processors/InitializeProcessor.php
        }
 
        // Initialize output buffering.
        $this->initializeOutputBuffering($config);
 
        // Set timezone, locale.
        $this->initializeLocale($config);
 
        // Load plugins.
        $this->initializePlugins();
 
        // Load pages.
        $this->initializePages($config);
 
        // Load accounts (decides class to be used).
        // TODO: remove in 2.0.
        $this->container['accounts'];
 
        // Initialize session (used by URI, see issue #3269).
        $this->initializeSession($config);
 
        // Initialize URI (uses session, see issue #3269).
        $this->initializeUri($config);
 
        // Grav may return redirect response right away.
        $redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
        if ($redirectCode) {
            $response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
            if ($response) {
                $this->stopTimer('_init');
 
                return $response;
            }
        }
 
        $this->stopTimer('_init');
 
        // Wrap call to next handler so that debugger can profile it.
        /** @var Response $response */
        $response = $debugger->profile(static function () use ($handler, $request) {
Arguments
  1. Grav\Common\Config\Config {#88}
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    private $handler;
 
    /** @var ContainerInterface|null */
    private $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#85}
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/larkir1/greatcontroversy.org/system/src/Grav/Common/Grav.php
                },
                'pagesProcessor' => function () {
                    return new PagesProcessor($this);
                },
                'debuggerAssetsProcessor' => function () {
                    return new DebuggerAssetsProcessor($this);
                },
                'renderProcessor' => function () {
                    return new RenderProcessor($this);
                },
            ]
        );
 
        $default = static function () {
            return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-store, max-age=0'], 'Not Found');
        };
 
        $collection = new RequestHandler($this->middleware, $default, $container);
 
        $response = $collection->handle($this['request']);
        $body = $response->getBody();
 
        /** @var Messages $messages */
        $messages = $this['messages'];
 
        // Prevent caching if session messages were displayed in the page.
        $noCache = $messages->isCleared();
        if ($noCache) {
            $response = $response->withHeader('Cache-Control', 'no-store, max-age=0');
        }
 
        // Handle ETag and If-None-Match headers.
        if ($response->getHeaderLine('ETag') === '1') {
            $etag = md5($body);
            $response = $response->withHeader('ETag', '"' . $etag . '"');
 
            $search = trim($this['request']->getHeaderLine('If-None-Match'), '"');
            if ($noCache === false && $search === $etag) {
                $response = $response->withStatus(304);
                $body = '';
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/larkir1/greatcontroversy.org/index.php
 
// Register the auto-loader.
$loader = require $autoload;
 
// Set timezone to default, falls back to system if php.ini not set
date_default_timezone_set(@date_default_timezone_get());
 
// Set internal encoding.
@ini_set('default_charset', 'UTF-8');
mb_internal_encoding('UTF-8');
 
use Grav\Common\Grav;
use RocketTheme\Toolbox\Event\Event;
 
// Get the Grav instance
$grav = Grav::instance(array('loader' => $loader));
 
// Process the page
try {
    $grav->process();
} catch (\Error|\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
}
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/featured_one/2021/jeremiah22_8-10"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/2.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/featured_one/2021/jeremiah22_8-10"
REMOTE_PORT
"8268"
SCRIPT_FILENAME
"/home/larkir1/greatcontroversy.org/index.php"
SERVER_ADMIN
"webmaster@greatcontroversy.org"
CONTEXT_DOCUMENT_ROOT
"/home/larkir1/greatcontroversy.org"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/larkir1/greatcontroversy.org"
REMOTE_ADDR
"3.142.166.23"
SERVER_PORT
"443"
SERVER_ADDR
"173.236.137.224"
SERVER_NAME
"www.greatcontroversy.org"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_HOST
"www.greatcontroversy.org"
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
"*/*"
SSL_TLS_SNI
"www.greatcontroversy.org"
HTTPS
"on"
H2_STREAM_TAG
"2255272-2262-1"
H2_STREAM_ID
"1"
H2_PUSHED_ON
""
H2_PUSHED
""
H2_PUSH
"off"
H2PUSH
"off"
HTTP2
"on"
account_id
"2318586"
DH_USER
"larkir1"
ds_id_35552265
""
dsid
"35552265"
SCRIPT_URI
"https://www.greatcontroversy.org/featured_one/2021/jeremiah22_8-10"
SCRIPT_URL
"/featured_one/2021/jeremiah22_8-10"
QS_ConnectionId
"1746461309584315962255272"
UNIQUE_ID
"aBjifQqijiY8fkg7HFPO1AB1wtw"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"www.greatcontroversy.org"
REDIRECT_HTTPS
"on"
REDIRECT_H2_STREAM_TAG
"2255272-2262-1"
REDIRECT_H2_STREAM_ID
"1"
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSH
"off"
REDIRECT_H2PUSH
"off"
REDIRECT_HTTP2
"on"
REDIRECT_account_id
"2318586"
REDIRECT_DH_USER
"larkir1"
REDIRECT_ds_id_35552265
""
REDIRECT_dsid
"35552265"
REDIRECT_SCRIPT_URI
"https://www.greatcontroversy.org/featured_one/2021/jeremiah22_8-10"
REDIRECT_SCRIPT_URL
"/featured_one/2021/jeremiah22_8-10"
REDIRECT_QS_ConnectionId
"1746461309584315962255272"
REDIRECT_UNIQUE_ID
"aBjifQqijiY8fkg7HFPO1AB1wtw"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1746461309.826
REQUEST_TIME
1746461309
argv
[]
argc
0
Key Value
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/featured_one/2021/jeremiah22_8-10"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/2.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/featured_one/2021/jeremiah22_8-10"
REMOTE_PORT
"8268"
SCRIPT_FILENAME
"/home/larkir1/greatcontroversy.org/index.php"
SERVER_ADMIN
"webmaster@greatcontroversy.org"
CONTEXT_DOCUMENT_ROOT
"/home/larkir1/greatcontroversy.org"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/larkir1/greatcontroversy.org"
REMOTE_ADDR
"3.142.166.23"
SERVER_PORT
"443"
SERVER_ADDR
"173.236.137.224"
SERVER_NAME
"www.greatcontroversy.org"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_HOST
"www.greatcontroversy.org"
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
"*/*"
SSL_TLS_SNI
"www.greatcontroversy.org"
HTTPS
"on"
H2_STREAM_TAG
"2255272-2262-1"
H2_STREAM_ID
"1"
H2_PUSHED_ON
""
H2_PUSHED
""
H2_PUSH
"off"
H2PUSH
"off"
HTTP2
"on"
account_id
"2318586"
DH_USER
"larkir1"
ds_id_35552265
""
dsid
"35552265"
SCRIPT_URI
"https://www.greatcontroversy.org/featured_one/2021/jeremiah22_8-10"
SCRIPT_URL
"/featured_one/2021/jeremiah22_8-10"
QS_ConnectionId
"1746461309584315962255272"
UNIQUE_ID
"aBjifQqijiY8fkg7HFPO1AB1wtw"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"www.greatcontroversy.org"
REDIRECT_HTTPS
"on"
REDIRECT_H2_STREAM_TAG
"2255272-2262-1"
REDIRECT_H2_STREAM_ID
"1"
REDIRECT_H2_PUSHED_ON
""
REDIRECT_H2_PUSHED
""
REDIRECT_H2_PUSH
"off"
REDIRECT_H2PUSH
"off"
REDIRECT_HTTP2
"on"
REDIRECT_account_id
"2318586"
REDIRECT_DH_USER
"larkir1"
REDIRECT_ds_id_35552265
""
REDIRECT_dsid
"35552265"
REDIRECT_SCRIPT_URI
"https://www.greatcontroversy.org/featured_one/2021/jeremiah22_8-10"
REDIRECT_SCRIPT_URL
"/featured_one/2021/jeremiah22_8-10"
REDIRECT_QS_ConnectionId
"1746461309584315962255272"
REDIRECT_UNIQUE_ID
"aBjifQqijiY8fkg7HFPO1AB1wtw"
FCGI_ROLE
"RESPONDER"
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler