"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 | "/contact"
|
| user | Grav\Common\User\User {#478} |
| messages | Grav\Framework\Session\Messages {#522} |
| Key | Value |
| USER | "apache"
|
| HOME | "/usr/share/httpd"
|
| SCRIPT_NAME | "/index.php"
|
| REQUEST_URI | "/fr/contact"
|
| QUERY_STRING | "" |
| REQUEST_METHOD | "GET"
|
| SERVER_PROTOCOL | "HTTP/1.1"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| REDIRECT_URL | "/fr/contact"
|
| REMOTE_PORT | "48732"
|
| SCRIPT_FILENAME | "/var/www/users/quatuor/public_html/index.php"
|
| SERVER_ADMIN | "root@localhost"
|
| CONTEXT_DOCUMENT_ROOT | "/var/www/users/quatuor/public_html"
|
| CONTEXT_PREFIX | "" |
| REQUEST_SCHEME | "https"
|
| DOCUMENT_ROOT | "/var/www/users/quatuor/public_html"
|
| REMOTE_ADDR | "18.97.9.174"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "151.80.23.168"
|
| SERVER_NAME | "quatuor-resonance.fr"
|
| SERVER_SOFTWARE | "Apache/2.4.63 (Fedora Linux) OpenSSL/3.5.0"
|
| SERVER_SIGNATURE | "" |
| PATH | "/usr/local/bin:/usr/bin"
|
| HTTP_CONNECTION | "Keep-Alive"
|
| HTTP_HOST | "quatuor-resonance.fr"
|
| HTTP_ACCEPT_ENCODING | "br,gzip"
|
| HTTP_IF_MODIFIED_SINCE | "Tue, 15 Jul 2025 16:38:41 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/)"
|
| proxy-nokeepalive | "1"
|
| SSL_TLS_SNI | "quatuor-resonance.fr"
|
| HTTPS | "on"
|
| SCRIPT_URI | "https://quatuor-resonance.fr/fr/contact"
|
| SCRIPT_URL | "/fr/contact"
|
| UNIQUE_ID | "aQ_s7K5VvbNI6CWSQranuAAAAEM"
|
| REDIRECT_STATUS | "200"
|
| REDIRECT_SSL_TLS_SNI | "quatuor-resonance.fr"
|
| REDIRECT_HTTPS | "on"
|
| REDIRECT_SCRIPT_URI | "https://quatuor-resonance.fr/fr/contact"
|
| REDIRECT_SCRIPT_URL | "/fr/contact"
|
| REDIRECT_UNIQUE_ID | "aQ_s7K5VvbNI6CWSQranuAAAAEM"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1762651372.8652
|
| REQUEST_TIME | 1762651372
|