( ! ) 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 /var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php on line 133 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 361064 | {main}( ) | .../index.php:0 |
2 | 0.0013 | 368408 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Common\\Grav' ) | .../index.php:50 |
3 | 0.0013 | 368408 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Common/Grav.php' ) | .../ClassLoader.php:346 |
4 | 0.0014 | 368680 | include( '/var/www/inquies/system/src/Grav/Common/Grav.php ) | .../ClassLoader.php:478 |
5 | 0.0014 | 368680 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Framework\\DI\\Container' ) | .../Grav.php:71 |
6 | 0.0014 | 368680 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Framework/DI/Container.php' ) | .../ClassLoader.php:346 |
7 | 0.0014 | 368944 | include( '/var/www/inquies/system/src/Grav/Framework/DI/Container.php ) | .../ClassLoader.php:478 |
8 | 0.0014 | 368944 | Composer\Autoload\ClassLoader->loadClass( $class = 'Pimple\\Container' ) | .../Container.php:16 |
9 | 0.0014 | 368944 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../pimple/pimple/src/Pimple/Container.php' ) | .../ClassLoader.php:346 |
10 | 0.0015 | 369584 | include( '/var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php ) | .../ClassLoader.php:478 |
( ! ) 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 /var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php on line 98 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 361064 | {main}( ) | .../index.php:0 |
2 | 0.0013 | 368408 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Common\\Grav' ) | .../index.php:50 |
3 | 0.0013 | 368408 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Common/Grav.php' ) | .../ClassLoader.php:346 |
4 | 0.0014 | 368680 | include( '/var/www/inquies/system/src/Grav/Common/Grav.php ) | .../ClassLoader.php:478 |
5 | 0.0014 | 368680 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Framework\\DI\\Container' ) | .../Grav.php:71 |
6 | 0.0014 | 368680 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Framework/DI/Container.php' ) | .../ClassLoader.php:346 |
7 | 0.0014 | 368944 | include( '/var/www/inquies/system/src/Grav/Framework/DI/Container.php ) | .../ClassLoader.php:478 |
8 | 0.0014 | 368944 | Composer\Autoload\ClassLoader->loadClass( $class = 'Pimple\\Container' ) | .../Container.php:16 |
9 | 0.0014 | 368944 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../pimple/pimple/src/Pimple/Container.php' ) | .../ClassLoader.php:346 |
10 | 0.0015 | 369584 | include( '/var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php ) | .../ClassLoader.php:478 |
( ! ) 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 /var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php on line 79 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 361064 | {main}( ) | .../index.php:0 |
2 | 0.0013 | 368408 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Common\\Grav' ) | .../index.php:50 |
3 | 0.0013 | 368408 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Common/Grav.php' ) | .../ClassLoader.php:346 |
4 | 0.0014 | 368680 | include( '/var/www/inquies/system/src/Grav/Common/Grav.php ) | .../ClassLoader.php:478 |
5 | 0.0014 | 368680 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Framework\\DI\\Container' ) | .../Grav.php:71 |
6 | 0.0014 | 368680 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Framework/DI/Container.php' ) | .../ClassLoader.php:346 |
7 | 0.0014 | 368944 | include( '/var/www/inquies/system/src/Grav/Framework/DI/Container.php ) | .../ClassLoader.php:478 |
8 | 0.0014 | 368944 | Composer\Autoload\ClassLoader->loadClass( $class = 'Pimple\\Container' ) | .../Container.php:16 |
9 | 0.0014 | 368944 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../pimple/pimple/src/Pimple/Container.php' ) | .../ClassLoader.php:346 |
10 | 0.0015 | 369584 | include( '/var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php ) | .../ClassLoader.php:478 |
( ! ) 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 /var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php on line 143 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 361064 | {main}( ) | .../index.php:0 |
2 | 0.0013 | 368408 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Common\\Grav' ) | .../index.php:50 |
3 | 0.0013 | 368408 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Common/Grav.php' ) | .../ClassLoader.php:346 |
4 | 0.0014 | 368680 | include( '/var/www/inquies/system/src/Grav/Common/Grav.php ) | .../ClassLoader.php:478 |
5 | 0.0014 | 368680 | Composer\Autoload\ClassLoader->loadClass( $class = 'Grav\\Framework\\DI\\Container' ) | .../Grav.php:71 |
6 | 0.0014 | 368680 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../../system/src/Grav/Framework/DI/Container.php' ) | .../ClassLoader.php:346 |
7 | 0.0014 | 368944 | include( '/var/www/inquies/system/src/Grav/Framework/DI/Container.php ) | .../ClassLoader.php:478 |
8 | 0.0014 | 368944 | Composer\Autoload\ClassLoader->loadClass( $class = 'Pimple\\Container' ) | .../Container.php:16 |
9 | 0.0014 | 368944 | Composer\Autoload\includeFile( $file = '/var/www/inquies/vendor/composer/../pimple/pimple/src/Pimple/Container.php' ) | .../ClassLoader.php:346 |
10 | 0.0015 | 369584 | include( '/var/www/inquies/vendor/pimple/pimple/src/Pimple/Container.php ) | .../ClassLoader.php:478 |
// 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; }
"Failed to start session: session_start(): Session cannot be started after headers have already been sent"
* @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
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'); } } }
} // 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) {
Grav\Common\Config\Config {#87}
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); } }
// 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); } }
Nyholm\Psr7\ServerRequest {#64}
}, '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 = '';
Nyholm\Psr7\ServerRequest {#64}
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; }
Key | Value |
HOSTNAME | "12ce58d24346"
|
PHP_INI_DIR | "/usr/local/etc/php"
|
SHLVL | "1"
|
HOME | "/home/min"
|
PHP_LDFLAGS | "-Wl,-O1 -pie"
|
PHP_CFLAGS | "-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
PHP_VERSION | "8.1.4"
|
GPG_KEYS | "528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"
|
PHP_CPPFLAGS | "-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
PHP_ASC_URL | "https://www.php.net/distributions/php-8.1.4.tar.xz.asc"
|
PHP_URL | "https://www.php.net/distributions/php-8.1.4.tar.xz"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
PHPIZE_DEPS | "autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c"
|
PWD | "/var/www/html"
|
PHP_SHA256 | "05a8c0ac30008154fb38a305560543fc172ba79fb957084a99b8d3b10d5bdb4b"
|
USER | "min"
|
HTTP_CF_CONNECTING_IP | "3.235.78.122"
|
HTTP_IF_MODIFIED_SINCE | "Fri, 27 May 2022 12:57:08 GMT"
|
HTTP_ACCEPT_LANGUAGE | "en-US,en;q=0.5"
|
HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
|
HTTP_USER_AGENT | "CCBot/2.0 (https://commoncrawl.org/faq/)"
|
HTTP_CF_VISITOR | "{"scheme":"https"}"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_CF_RAY | "72605a669ff8e0aa-IAD"
|
HTTP_X_FORWARDED_FOR | "3.235.78.122"
|
HTTP_ACCEPT_ENCODING | "gzip"
|
HTTP_CDN_LOOP | "cloudflare"
|
HTTP_CF_IPCOUNTRY | "US"
|
HTTP_HOST | "inquies.de"
|
SCRIPT_FILENAME | "/var/www/inquies//index.php"
|
REDIRECT_STATUS | "200"
|
SERVER_NAME | "inquies.de"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "172.27.0.7"
|
REMOTE_PORT | "22148"
|
REMOTE_ADDR | "162.158.79.81"
|
SERVER_SOFTWARE | "nginx/1.21.6"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
HTTPS | "on"
|
REQUEST_SCHEME | "https"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
DOCUMENT_ROOT | "/var/www/inquies"
|
DOCUMENT_URI | "/index.php"
|
REQUEST_URI | "/en"
|
SCRIPT_NAME | "/index.php"
|
CONTENT_LENGTH | "" |
CONTENT_TYPE | "" |
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1657026755.8921
|
REQUEST_TIME | 1657026755
|