"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 |
| messages | Grav\Framework\Session\Messages {#210} |
| redirect_after_login | "/registration"
|
| user | Grav\Common\User\User {#561} |
| Key | Value |
| USER | "wildernesscampout"
|
| HOME | "/home/wildernesscampout"
|
| HTTP_X_FORWARDED_PROTO | "https"
|
| HTTP_CF_VISITOR | "{"scheme":"https"}"
|
| HTTP_CF_IPCOUNTRY | "US"
|
| HTTP_CF_CONNECTING_IP | "216.73.216.35"
|
| HTTP_CDN_LOOP | "cloudflare; loops=1"
|
| HTTP_CF_RAY | "9bd8677aab60ee2f-YYZ"
|
| HTTP_ACCEPT_ENCODING | "gzip, br"
|
| HTTP_REFERER | "http://wildernesscampout.org/registration"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
|
| HTTP_CONNECTION | "close"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.35, 172.70.80.44"
|
| HTTP_X_REAL_IP | "172.70.80.44"
|
| HTTP_X_FORWARDED_HOST | "wildernesscampout.org"
|
| PHP_VALUE | """ \n error_log=/home/wildernesscampout/logs/php/error.log;\n memory_limit=512M;\n max_execution_time=60;\n max_input_time=60;\n max_input_vars=10000;\n post_max_size=64M;\n upload_max_filesize=64M;\n date.timezone=UTC;\n display_errors=off; """ |
| HTTPS | "on"
|
| MGT | "1"
|
| GEOIP_LONGITUDE | "" |
| GEOIP_LATITUDE | "" |
| GEOIP_CITY_CONTINENT_CODE | "" |
| GEOIP_POSTAL_CODE | "" |
| GEOIP_CITY | "" |
| GEOIP_REGION | "" |
| GEOIP_CITY_COUNTRY_NAME | "" |
| GEOIP_CITY_COUNTRY_CODE3 | "" |
| GEOIP_CITY_COUNTRY_CODE | "" |
| GEOIP_COUNTRY_NAME | "United States"
|
| GEOIP_COUNTRY_CODE3 | "USA"
|
| GEOIP_COUNTRY_CODE | "US"
|
| REDIRECT_STATUS | "200"
|
| HTTP_HOST | "wildernesscampout.org"
|
| SERVER_NAME | "wildernesscampout.org"
|
| SERVER_PORT | "443"
|
| SERVER_ADDR | "127.0.0.1"
|
| REMOTE_PORT | "" |
| REMOTE_ADDR | "172.70.80.44"
|
| SERVER_SOFTWARE | "nginx/1.28.0"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| DOCUMENT_ROOT | "/home/wildernesscampout/htdocs/wildernesscampout.org"
|
| DOCUMENT_URI | "/index.php"
|
| REQUEST_URI | "/registration"
|
| SCRIPT_NAME | "/index.php"
|
| SCRIPT_FILENAME | "/home/wildernesscampout/htdocs/wildernesscampout.org/index.php"
|
| CONTENT_LENGTH | "" |
| CONTENT_TYPE | "" |
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "" |
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1768344119.5318
|
| REQUEST_TIME | 1768344119
|