"session_write_close(): Write failed: No space left on device (28)"
*/
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 (strpos($errfile, '/twig/') !== false) {
$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) {
Key | Value |
redirect_after_login | "/"
|
user | Grav\Common\User\User {#378} |
messages | Grav\Framework\Session\Messages {#86} |
Key | Value |
TEMP | "/home/xammy/tmp"
|
TMPDIR | "/home/xammy/tmp"
|
TMP | "/home/xammy/tmp"
|
PATH | "/usr/local/bin:/usr/bin:/bin"
|
USER | "xammy"
|
HOME | "/home/xammy"
|
HTTP_CF_IPCOUNTRY | "US"
|
HTTP_CF_CONNECTING_IP | "3.147.80.2"
|
HTTP_CDN_LOOP | "cloudflare; loops=1"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_CF_VISITOR | "{"scheme":"https"}"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
|
HTTP_ACCEPT_ENCODING | "gzip, br"
|
HTTP_ACCEPT | "*/*"
|
HTTP_CF_RAY | "930e601a2a7eeae6-ORD"
|
HTTP_X_FORWARDED_FOR | "3.147.80.2"
|
HTTP_HOST | "sammy.id"
|
SCRIPT_FILENAME | "/home/xammy/web/sammy.id/public_html/index.php"
|
REDIRECT_STATUS | "200"
|
SERVER_NAME | "sammy.id"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "207.246.79.161"
|
REMOTE_PORT | "" |
REMOTE_ADDR | "3.147.80.2"
|
SERVER_SOFTWARE | "nginx/1.27.3"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
HTTPS | "on"
|
REQUEST_SCHEME | "https"
|
SERVER_PROTOCOL | "HTTP/2.0"
|
DOCUMENT_ROOT | "/home/xammy/web/sammy.id/public_html"
|
DOCUMENT_URI | "/index.php"
|
REQUEST_URI | "/"
|
SCRIPT_NAME | "/index.php"
|
CONTENT_LENGTH | "" |
CONTENT_TYPE | "" |
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1744750854.472
|
REQUEST_TIME | 1744750854
|