"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 |
| active_language | "ca"
|
| messages | Grav\Framework\Session\Messages {#190} |
| redirect_after_login | "/agenda/2023-05-28-novena"
|
| user | Grav\Common\User\User {#929} |
| Key | Value |
| USER | "noe"
|
| HOME | "/home/noe"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_HOST | "noemipasquina.com"
|
| HTTPS | "on"
|
| SERVER_NAME | "noemipasquina.com"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "145.239.66.191"
|
| REMOTE_PORT | "37921"
|
| REMOTE_ADDR | "216.73.216.135"
|
| SERVER_PROTOCOL | "HTTP/2.0"
|
| DOCUMENT_ROOT | "/home/noe/public_html/grav"
|
| DOCUMENT_URI | "/index.php"
|
| REQUEST_URI | "/ca/agenda/2023-05-28-novena"
|
| SCRIPT_NAME | "/index.php"
|
| SCRIPT_FILENAME | "/home/noe/public_html/grav/index.php"
|
| CONTENT_LENGTH | "" |
| CONTENT_TYPE | "" |
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "" |
| SERVER_SOFTWARE | "nginx"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1764346505.8418
|
| REQUEST_TIME | 1764346505
|