"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 {#478} |
messages | Grav\Framework\Session\Messages {#522} |
Key | Value |
USER | "apache"
|
HOME | "/usr/share/httpd"
|
SCRIPT_NAME | "/index.php"
|
REQUEST_URI | "/fr"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/fr"
|
REMOTE_PORT | "52842"
|
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.14.91"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "151.80.23.168"
|
SERVER_NAME | "quatuor-resonance.fr"
|
SERVER_SOFTWARE | "Apache/2.4.62 (Fedora Linux) OpenSSL/3.2.2"
|
SERVER_SIGNATURE | "" |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
HTTP_CONNECTION | "Keep-Alive"
|
HTTP_HOST | "quatuor-resonance.fr"
|
HTTP_ACCEPT_ENCODING | "br,gzip"
|
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"
|
SCRIPT_URL | "/fr"
|
UNIQUE_ID | "Z-ITxqKq22HEtNdFhOztoQAAABg"
|
REDIRECT_STATUS | "200"
|
REDIRECT_SSL_TLS_SNI | "quatuor-resonance.fr"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_SCRIPT_URI | "https://quatuor-resonance.fr/fr"
|
REDIRECT_SCRIPT_URL | "/fr"
|
REDIRECT_UNIQUE_ID | "Z-ITxqKq22HEtNdFhOztoQAAABg"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1742869446.4958
|
REQUEST_TIME | 1742869446
|