"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 {#427} |
messages | Grav\Framework\Session\Messages {#484} |
Key | Value |
USER | "punksmurph.com_23u6p6b9xmv"
|
HOME | "/var/www/vhosts/punksmurph.com"
|
SCRIPT_NAME | "/index.php"
|
REQUEST_URI | "/"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REMOTE_PORT | "37816"
|
SCRIPT_FILENAME | "/var/www/vhosts/punksmurph.com/httpdocs/index.php"
|
SERVER_ADMIN | "[no address given]"
|
CONTEXT_DOCUMENT_ROOT | "/var/www/vhosts/punksmurph.com/httpdocs"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "https"
|
DOCUMENT_ROOT | "/var/www/vhosts/punksmurph.com/httpdocs"
|
REMOTE_ADDR | "3.80.4.147"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "164.92.101.222"
|
SERVER_NAME | "punksmurph.com"
|
SERVER_SOFTWARE | "Apache"
|
SERVER_SIGNATURE | "<address>Apache Server at punksmurph.com Port 443</address>\n"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
HTTP_ACCEPT_ENCODING | "br,gzip"
|
HTTP_IF_MODIFIED_SINCE | "Thu, 28 Sep 2023 13:52:35 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/)"
|
HTTP_CONNECTION | "close"
|
HTTP_X_ACCEL_INTERNAL | "/internal-nginx-static-location"
|
HTTP_X_REAL_IP | "3.80.4.147"
|
HTTP_HOST | "punksmurph.com"
|
proxy-nokeepalive | "1"
|
HTTPS | "on"
|
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY | "0"
|
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY | "0"
|
SCRIPT_URI | "https://punksmurph.com/"
|
SCRIPT_URL | "/"
|
UNIQUE_ID | "ZWiQ7Fv6B@a7OvyUXLPWcQAAAFY"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1701351660.5955
|
REQUEST_TIME | 1701351660
|