"session_write_close(): Write failed: No space left on device (28)"
}
$logging = !empty($config['log']);
$whoops = null;
$factory = function () use (&$whoops, $verbosity, $logging, $jsonRequest) {
return $whoops ??= $this->createWhoops($verbosity, $logging, $jsonRequest);
};
set_exception_handler(static function ($exception) use ($factory) {
$factory()->handleException($exception);
});
set_error_handler(static function ($level, $message, $file = '', $line = 0) use ($factory) {
if (!($level & error_reporting())) {
// Mirrors Whoops\Run::handleError(): leave silenced errors to PHP.
return false;
}
return $factory()->handleError($level, $message, $file, $line);
});
register_shutdown_function(static function () use ($factory) {
$error = error_get_last();
if ($error === null) {
return;
}
// Same fatal set Whoops handles at shutdown (Misc::isLevelFatal), minus the
// core warnings/errors Grav's SystemFacade has always ignored there.
if ($error['type'] & (E_ERROR | E_PARSE | E_COMPILE_ERROR | E_COMPILE_WARNING)) {
$whoops = $factory();
// An exception thrown in a shutdown handler will not propagate to the
// exception handler, so render it directly like Whoops::handleShutdown does.
$whoops->allowQuit(false);
$whoops->handleException(new ErrorException($error['message'], $error['type'], $error['type'], $error['file'], $error['line']));
}
});
// Re-register deprecation handler.
2
"session_write_close(): Write failed: No space left on device (28)"
"Unknown"
0
*/
public function setErrorHandler()
{
$this->errorHandler = set_error_handler(
$this->deprecatedErrorHandler(...)
);
}
/**
* @param int $errno
* @param string $errstr
* @param string $errfile
* @param int $errline
* @return bool
*/
public function deprecatedErrorHandler($errno, $errstr, $errfile, $errline)
{
if ($errno !== E_USER_DEPRECATED && $errno !== E_DEPRECATED) {
if ($this->errorHandler) {
return call_user_func($this->errorHandler, $errno, $errstr, $errfile, $errline);
}
return true;
}
if (!$this->enabled) {
return true;
}
// Figure out error scope from the error.
$scope = 'unknown';
if (stripos($errstr, 'grav') !== false) {
$scope = 'grav';
} elseif (str_contains($errfile, '/twig/')) {
$scope = 'twig';
// TODO: remove when upgrading to Twig 2+
if (str_contains($errstr, '#[\ReturnTypeWillChange]') || str_contains($errstr, 'Passing null to parameter')) {
return true;
}
} elseif (stripos($errfile, '/yaml/') !== false) {
2
"session_write_close(): Write failed: No space left on device (28)"
"Unknown"
0
2
"session_write_close(): Write failed: No space left on device (28)"
"Unknown"
0
| Key | Value |
| redirect_after_login | "/"
|
| user | Grav\Common\User\User {#518} |
| messages | Grav\Framework\Session\Messages {#161} |
| Key | Value |
| LSPHP_ENABLE_USER_INI | "on"
|
| PATH | "/usr/local/bin:/usr/bin:/bin"
|
| TEMP | "/tmp"
|
| TMP | "/tmp"
|
| TMPDIR | "/tmp"
|
| PWD | "/"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| CONTENT_LENGTH | "0"
|
| HTTP_HOST | "3wiseguys.secondpulsar.net"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| UNIQUE_ID | "auWxLbJDJY7YuNMJaAhULQABwQE"
|
| QS_ConnectionId | "179343799789238745352708"
|
| HTTPS | "on"
|
| SSL_TLS_SNI | "3wiseguys.secondpulsar.net"
|
| HTTP2 | "on"
|
| H2PUSH | "off"
|
| H2_PUSH | "off"
|
| H2_PUSHED | "" |
| H2_PUSHED_ON | "" |
| H2_STREAM_ID | "3"
|
| H2_STREAM_TAG | "352708-208-3"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache"
|
| SERVER_NAME | "3wiseguys.secondpulsar.net"
|
| SERVER_ADDR | "10.54.170.187"
|
| SERVER_PORT | "443"
|
| REMOTE_ADDR | "216.73.216.33"
|
| DOCUMENT_ROOT | "/home4/transbot9/3wiseguysewaste.com"
|
| REQUEST_SCHEME | "https"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home4/transbot9/3wiseguysewaste.com"
|
| SERVER_ADMIN | "webmaster@3wiseguys.secondpulsar.net"
|
| SCRIPT_FILENAME | "/home4/transbot9/3wiseguysewaste.com/index.php"
|
| REMOTE_PORT | "11179"
|
| SERVER_PROTOCOL | "HTTP/2.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "" |
| REQUEST_URI | "/"
|
| SCRIPT_NAME | "/index.php"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1793437997.8952
|
| REQUEST_TIME | 1793437997
|
| argv | [] |
| argc | 0
|