"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 {#441} |
messages | Grav\Framework\Session\Messages {#86} |
Key | Value |
HOME | "/var/www/"
|
USER | "www-data"
|
SCRIPT_NAME | "/index.php"
|
REQUEST_URI | "/"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REMOTE_PORT | "49176"
|
SCRIPT_FILENAME | "/var/www/solrayo/index.php"
|
SERVER_ADMIN | "webmaster@localhost"
|
CONTEXT_DOCUMENT_ROOT | "/var/www/solrayo"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "https"
|
DOCUMENT_ROOT | "/var/www/solrayo"
|
REMOTE_ADDR | "172.69.7.52"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "64.227.140.28"
|
SERVER_NAME | "solrayo.com"
|
SERVER_SOFTWARE | "Apache/2.4.62 (Debian)"
|
SERVER_SIGNATURE | "<address>Apache/2.4.62 (Debian) Server at solrayo.com Port 443</address>\n"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
HTTP_CF_VISITOR | "{"scheme":"https"}"
|
HTTP_CF_IPCOUNTRY | "US"
|
HTTP_CF_CONNECTING_IP | "3.148.241.210"
|
HTTP_CDN_LOOP | "cloudflare; loops=1"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_FORWARDED_FOR | "3.148.241.210"
|
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 | "94150d133bcd60b8-ORD"
|
HTTP_HOST | "solrayo.com"
|
SSL_TLS_SNI | "solrayo.com"
|
HTTPS | "on"
|
SCRIPT_URI | "https://solrayo.com/"
|
SCRIPT_URL | "/"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1747505211.967
|
REQUEST_TIME | 1747505211
|