Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined index: HTTP_REFERER Whoops\Exception\ErrorException thrown with message "Undefined index: HTTP_REFERER" Stacktrace: #6 Whoops\Exception\ErrorException in /kunden/399706_17349/bauernhof-thamm.de/site/plugins/cookie-handling/index.php:30 #5 Whoops\Run:handleError in /kunden/399706_17349/bauernhof-thamm.de/site/plugins/cookie-handling/index.php:30 #4 Kirby\Http\Route:{closure} in [internal]:0 #3 Closure:call in /kunden/399706_17349/bauernhof-thamm.de/kirby/src/Http/Router.php:107 #2 Kirby\Http\Router:call in /kunden/399706_17349/bauernhof-thamm.de/kirby/src/Cms/App.php:288 #1 Kirby\Cms\App:call in /kunden/399706_17349/bauernhof-thamm.de/kirby/src/Cms/App.php:880 #0 Kirby\Cms\App:render in /kunden/399706_17349/bauernhof-thamm.de/index.php:4
Stack frames (7)
6
Whoops
\
Exception
\
ErrorException
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
site
/
plugins
/
cookie-handling
/
index.php
30
5
Whoops
\
Run
handleError
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
site
/
plugins
/
cookie-handling
/
index.php
30
4
Kirby
\
Http
\
Route
{closure}
[internal]
0
3
Closure
call
/
src
/
Http
/
Router.php
107
2
Kirby
\
Http
\
Router
call
/
src
/
Cms
/
App.php
288
1
Kirby
\
Cms
\
App
call
/
src
/
Cms
/
App.php
880
0
Kirby
\
Cms
\
App
render
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
index.php
4
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
site
/
plugins
/
cookie-handling
/
index.php
        ],
        [
            'pattern' => 'cookies/true',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '2', ['lifetime' => (time() + (21*24*60*60)), 'path' => '/']);
                go($_SERVER['HTTP_REFERER'], 200);
            }
        ],
        [
            'pattern' => 'ajaxcookie/false',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '1', ['lifetime' => (time() + (1*24*60*60)), 'path' => '/']);
                return json_encode(['redirect' => false]);
            }
        ],
        [
            'pattern' => 'cookies/false',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '1', ['lifetime' => (time() + (1*24*60*60)), 'path' => '/']);
                go($_SERVER['HTTP_REFERER'], 200);
            }
        ]
    ]
]);
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
site
/
plugins
/
cookie-handling
/
index.php
        ],
        [
            'pattern' => 'cookies/true',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '2', ['lifetime' => (time() + (21*24*60*60)), 'path' => '/']);
                go($_SERVER['HTTP_REFERER'], 200);
            }
        ],
        [
            'pattern' => 'ajaxcookie/false',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '1', ['lifetime' => (time() + (1*24*60*60)), 'path' => '/']);
                return json_encode(['redirect' => false]);
            }
        ],
        [
            'pattern' => 'cookies/false',
            'action' => function () {
                Cookie::set('thirdPartyCookies', '1', ['lifetime' => (time() + (1*24*60*60)), 'path' => '/']);
                go($_SERVER['HTTP_REFERER'], 200);
            }
        ]
    ]
]);
[internal]
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
kirby
/
src
/
Http
/
Router.php
     */
    public function call(string $path = null, string $method = 'GET', Closure $callback = null)
    {
        $path   = $path ?? '';
        $ignore = [];
        $result = null;
        $loop   = true;
 
        while ($loop === true) {
            $route = $this->find($path, $method, $ignore);
 
            if (is_a(static::$beforeEach, 'Closure') === true) {
                (static::$beforeEach)($route, $path, $method);
            }
 
            try {
                if ($callback) {
                    $result = $callback($route);
                } else {
                    $result = $route->action()->call($route, ...$route->arguments());
                }
 
                $loop   = false;
            } catch (Exceptions\NextRouteException $e) {
                $ignore[] = $route;
            }
 
            if (is_a(static::$afterEach, 'Closure') === true) {
                $result = (static::$afterEach)($route, $path, $method, $result);
            }
        }
 
        return $result;
    }
 
    /**
     * Finds a Route object by path and method
     * The Route's arguments method is used to
     * find matches and return all the found
     * arguments in the path.
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
kirby
/
src
/
Cms
/
App.php
    /**
     * Calls any Kirby route
     *
     * @param string $path
     * @param string $method
     * @return mixed
     */
    public function call(string $path = null, string $method = null)
    {
        $router = $this->router();
 
        $router::$beforeEach = function ($route, $path, $method) {
            $this->trigger('route:before', $route, $path, $method);
        };
 
        $router::$afterEach = function ($route, $path, $method, $result) {
            return $this->apply('route:after', $route, $path, $method, $result);
        };
 
        return $router->call($path ?? $this->path(), $method ?? $this->request()->method());
    }
 
    /**
     * Returns a specific user-defined collection
     * by name. All relevant dependencies are
     * automatically injected
     *
     * @param string $name
     * @return \Kirby\Cms\Collection|null
     */
    public function collection(string $name)
    {
        return $this->collections()->get($name, [
            'kirby' => $this,
            'site'  => $this->site(),
            'pages' => $this->site()->children(),
            'users' => $this->users()
        ]);
    }
 
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
kirby
/
src
/
Cms
/
App.php
        $scriptName  = $_SERVER['SCRIPT_NAME'];
        $scriptFile  = basename($scriptName);
        $scriptDir   = dirname($scriptName);
        $scriptPath  = $scriptFile === 'index.php' ? $scriptDir : $scriptName;
        $requestPath = preg_replace('!^' . preg_quote($scriptPath) . '!', '', $requestUri);
 
        return $this->setPath($requestPath)->path;
    }
 
    /**
     * Returns the Response object for the
     * current request
     *
     * @param string|null $path
     * @param string|null $method
     * @return \Kirby\Http\Response
     */
    public function render(string $path = null, string $method = null)
    {
        return $this->io($this->call($path, $method));
    }
 
    /**
     * Returns the Request singleton
     *
     * @return \Kirby\Http\Request
     */
    public function request()
    {
        return $this->request = $this->request ?? new Request();
    }
 
    /**
     * Path resolver for the router
     *
     * @internal
     * @param string $path
     * @param string|null $language
     * @return mixed
     */
/
kunden
/
399706_17349
/
bauernhof-thamm.de
/
index.php
<?php
require __DIR__ . '/kirby/bootstrap.php';
 
echo (new Kirby)->render();
 

Environment & details:

empty
empty
empty
Key Value
thirdPartyCookies ba7eb7ce78ae5900a25298d43d1decc4fb082632+1
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ISPMADDR WkZLXkJqSEtfT1hEQkVMB15CS0dHBE5P
TEMP /temp/399706/u399706/bauernhof-thamm.de
TMPDIR /temp/399706/u399706/bauernhof-thamm.de
USER 865238
HOME /kunden/399706_17349/
SCRIPT_NAME /index.php
REQUEST_URI /cookies/false
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /cookies/false
REMOTE_PORT 56690
SCRIPT_FILENAME /kunden/399706_17349/bauernhof-thamm.de/index.php
SERVER_ADMIN webmaster@www.bauernhof-thamm.de
CONTEXT_DOCUMENT_ROOT /kunden/399706_17349/bauernhof-thamm.de
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /kunden/399706_17349/bauernhof-thamm.de
REMOTE_ADDR 35.173.233.176
SERVER_PORT 443
SERVER_ADDR 172.27.0.21
SERVER_NAME www.bauernhof-thamm.de
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_RANGE bytes=0-5242879
HTTP_X_FORWARDED_FROM 35.173.233.176
HTTP_X_FORWARDED_PROTO https
HTTP_HOST www.bauernhof-thamm.de
proxy-nokeepalive 1
HTTP_AUTHORIZATION
PHPEdition 7-3
DFSERVER_ALIAS bauernhof-thamm.de
DFLIMITPROC 0
DFLIMITCPU 30
DFLIMITMEM 128000
DFCANCGI 1
PHPVersion 7-3-FCGI
DFCATCHALLSTATUS FALSE
DFDNUMBER 1865765
DFUID 99999
UNIQUE_ID ZgXHMrn8ZU5RU7-KmQGe9QAAAFc
HTTPS on
REDIRECT_STATUS 200
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_PHPEdition 7-3
REDIRECT_DFSERVER_ALIAS bauernhof-thamm.de
REDIRECT_DFLIMITPROC 0
REDIRECT_DFLIMITCPU 30
REDIRECT_DFLIMITMEM 128000
REDIRECT_DFCANCGI 1
REDIRECT_PHPVersion 7-3-FCGI
REDIRECT_DFCATCHALLSTATUS FALSE
REDIRECT_DFDNUMBER 1865765
REDIRECT_DFUID 99999
REDIRECT_UNIQUE_ID ZgXHMrn8ZU5RU7-KmQGe9QAAAFc
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711654706.6615
REQUEST_TIME 1711654706
empty
0. Whoops\Handler\PrettyPageHandler