Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/wahlkampfstandonline/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/wahlkampfstandonline/vendor/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/wahlkampfstandonline/vendor/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/wahlkampfstandonline/vendor/pimple/pimple/src/Pimple/Container.php on line 143
Crikey! There was an error...
Grav \ Framework \ Session \ Exceptions \ SessionException (500)
Failed to start session: session_start(): Session cannot be started after headers have already been sent Grav\Framework\Session\Exceptions\SessionException thrown with message "Failed to start session: session_start(): Session cannot be started after headers have already been sent" Stacktrace: #7 Grav\Framework\Session\Exceptions\SessionException in /home/www/wahlkampfstandonline/system/src/Grav/Framework/Session/Session.php:247 #6 Grav\Framework\Session\Session:start in /home/www/wahlkampfstandonline/system/src/Grav/Common/Session.php:47 #5 Grav\Common\Session:init in /home/www/wahlkampfstandonline/system/src/Grav/Common/Processors/InitializeProcessor.php:451 #4 Grav\Common\Processors\InitializeProcessor:initializeSession in /home/www/wahlkampfstandonline/system/src/Grav/Common/Processors/InitializeProcessor.php:109 #3 Grav\Common\Processors\InitializeProcessor:process in /home/www/wahlkampfstandonline/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/www/wahlkampfstandonline/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/www/wahlkampfstandonline/system/src/Grav/Common/Grav.php:295 #0 Grav\Common\Grav:process in /home/www/wahlkampfstandonline/index.php:58
Stack frames (8)
7
Grav\Framework\Session\Exceptions\SessionException
/system/src/Grav/Framework/Session/Session.php247
6
Grav\Framework\Session\Session start
/system/src/Grav/Common/Session.php47
5
Grav\Common\Session init
/system/src/Grav/Common/Processors/InitializeProcessor.php451
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.php295
0
Grav\Common\Grav process
/index.php58
/home/www/wahlkampfstandonline/system/src/Grav/Framework/Session/Session.php
                // Start session with new session id.
                $useStrictMode = $options['use_strict_mode'] ?? 0;
                if ($useStrictMode) {
                    ini_set('session.use_strict_mode', '0');
                }
                session_id($newId);
                if ($useStrictMode) {
                    ini_set('session.use_strict_mode', '1');
                }
 
                $success = @session_start($options);
                if (!$success) {
                    $last = error_get_last();
                    $error = $last ? $last['message'] : 'Unknown error';
 
                    throw new RuntimeException($error);
                }
            }
        } catch (Exception $e) {
            throw new SessionException('Failed to start session: ' . $e->getMessage(), 500);
        }
 
        $this->started = true;
        $this->onSessionStart();
 
        $user = $this->__get('user');
        if ($user && (!$user instanceof UserInterface || (method_exists($user, 'isValid') && !$user->isValid()))) {
            $this->invalidate();
 
            throw new SessionException('Invalid User object, session destroyed.', 500);
        }
 
        // Extend the lifetime of the session.
        if ($sessionExists) {
            $this->setCookie();
        }
 
        return $this;
    }
 
Arguments
  1. "Failed to start session: session_start(): Session cannot be started after headers have already been sent"
    
/home/www/wahlkampfstandonline/system/src/Grav/Common/Session.php
     * @deprecated 1.5 Use ->getInstance() method instead.
     */
    public static function instance()
    {
        user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.5, use ->getInstance() method instead', E_USER_DEPRECATED);
 
        return static::getInstance();
    }
 
    /**
     * Initialize session.
     *
     * Code in this function has been moved into SessionServiceProvider class.
     *
     * @return void
     */
    public function init()
    {
        if ($this->autoStart && !$this->isStarted()) {
            $this->start();
 
            $this->autoStart = false;
        }
    }
 
    /**
     * @param bool $auto
     * @return $this
     */
    public function setAutoStart($auto)
    {
        $this->autoStart = (bool)$auto;
 
        return $this;
    }
 
    /**
     * Returns attributes.
     *
     * @return array Attributes
/home/www/wahlkampfstandonline/system/src/Grav/Common/Processors/InitializeProcessor.php
 
        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');
        }
    }
}
 
/home/www/wahlkampfstandonline/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.
        $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 {#90}
    
/home/www/wahlkampfstandonline/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 {#61}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#83}
    
/home/www/wahlkampfstandonline/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 {#61}
    
/home/www/wahlkampfstandonline/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 {#61}
    
/home/www/wahlkampfstandonline/index.php
if (!is_file($autoload)) {
    die('Please run: <i>bin/grav install</i>');
}
 
// Register the auto-loader.
$loader = require $autoload;
 
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 $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
}
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
UNIQUE_ID
"Zh69kk1OZNmBzN_81B1rtwAAAAI"
HTTPS
"on"
SSL_SERVER_S_DN_CN
"cloud.sbamueller.com"
SSL_SERVER_I_DN_C
"US"
SSL_SERVER_I_DN_O
"Let's Encrypt"
SSL_SERVER_I_DN_CN
"R3"
SSL_SERVER_SAN_DNS_0
"cloud.sbamueller.com"
SSL_VERSION_INTERFACE
"mod_ssl/2.4.56"
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1w"
SSL_PROTOCOL
"TLSv1.2"
SSL_SECURE_RENEG
"true"
SSL_COMPRESS_METHOD
"NULL"
SSL_CIPHER
"DHE-RSA-AES256-GCM-SHA384"
SSL_CIPHER_EXPORT
"false"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
SSL_CLIENT_VERIFY
"NONE"
SSL_SERVER_M_VERSION
"3"
SSL_SERVER_M_SERIAL
"031159BD32A217406DD59B976FBF35D3D37D"
SSL_SERVER_V_START
"Feb 15 09:08:01 2024 GMT"
SSL_SERVER_V_END
"May 15 09:08:00 2024 GMT"
SSL_SERVER_S_DN
"CN=cloud.sbamueller.com"
SSL_SERVER_I_DN
"CN=R3,O=Let's Encrypt,C=US"
SSL_SERVER_A_KEY
"rsaEncryption"
SSL_SERVER_A_SIG
"sha256WithRSAEncryption"
SSL_SESSION_ID
"9a8e77b31c07472778ae751441acd0e50af86c14ad3c3fb11607e24884f96507"
SSL_SESSION_RESUMED
"Resumed"
HTTP_HOST
"cloud.sbamueller.com"
HTTP_X_FORWARDED_FOR
"3.230.143.213"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_IF_MODIFIED_SINCE
"Wed, 27 Sep 2023 15:55:13 GMT"
HTTP_ACCEPT_ENCODING
"br,gzip"
PATH
"/usr/local/bin:/usr/bin:/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"cloud.sbamueller.com"
SERVER_ADDR
"89.107.184.39"
SERVER_PORT
"443"
REMOTE_ADDR
"3.230.143.213"
DOCUMENT_ROOT
"/home/www"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/www"
SERVER_ADMIN
"webmaster@cloud.sbamueller.com"
SCRIPT_FILENAME
"/home/www/wahlkampfstandonline/index.php"
REMOTE_PORT
"33130"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/wahlkampfstandonline/"
SCRIPT_NAME
"/wahlkampfstandonline/index.php"
PHP_SELF
"/wahlkampfstandonline/index.php"
REQUEST_TIME_FLOAT
1713290642.1308
REQUEST_TIME
1713290642
argv
[]
argc
0
Key Value
PATH
"/usr/local/bin:/usr/bin:/bin"
LANG
"C"
PWD
"/home"
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler