Whoops \ Exception \ ErrorException (E_WARNING)
Trying to access array offset on value of type null Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null" Stacktrace: #14 Whoops\Exception\ErrorException in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:1044 #13 Whoops\Run:handleError in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:1044 #12 Grav\Common\Page\Pages:buildSort in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:217 #11 Grav\Common\Page\Pages:sort in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:938 #10 Grav\Common\Page\Pages:recurse in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:903 #9 Grav\Common\Page\Pages:recurse in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:785 #8 Grav\Common\Page\Pages:resetPages in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:764 #7 Grav\Common\Page\Pages:buildPages in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php:134 #6 Grav\Common\Page\Pages:init in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Processors/PagesProcessor.php:17 #5 Grav\Common\Processors\PagesProcessor:process in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php:121 #4 Grav\Common\Grav:Grav\Common\{closure} in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php:396 #3 Grav\Common\Grav:Grav\Common\{closure} in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php:372 #2 call_user_func_array in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php:372 #1 Grav\Common\Grav:__call in /kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php:120 #0 Grav\Common\Grav:process in /kunden/tecdomains.de/domains/top3.de/www/index.php:45
Stack frames (15):
14 Whoops\Exception\ErrorException
…/­system/­src/­Grav/­Common/­Page/­Pages.php1044
13 Whoops\Run handleError
…/­system/­src/­Grav/­Common/­Page/­Pages.php1044
12 Grav\Common\Page\Pages buildSort
…/­system/­src/­Grav/­Common/­Page/­Pages.php217
11 Grav\Common\Page\Pages sort
…/­system/­src/­Grav/­Common/­Page/­Pages.php938
10 Grav\Common\Page\Pages recurse
…/­system/­src/­Grav/­Common/­Page/­Pages.php903
9 Grav\Common\Page\Pages recurse
…/­system/­src/­Grav/­Common/­Page/­Pages.php785
8 Grav\Common\Page\Pages resetPages
…/­system/­src/­Grav/­Common/­Page/­Pages.php764
7 Grav\Common\Page\Pages buildPages
…/­system/­src/­Grav/­Common/­Page/­Pages.php134
6 Grav\Common\Page\Pages init
…/­system/­src/­Grav/­Common/­Processors/­PagesProcessor.php17
5 Grav\Common\Processors\PagesProcessor process
…/­system/­src/­Grav/­Common/­Grav.php121
4 Grav\Common\Grav Grav\Common\{closure}
…/­system/­src/­Grav/­Common/­Grav.php396
3 Grav\Common\Grav Grav\Common\{closure}
…/­system/­src/­Grav/­Common/­Grav.php372
2 call_user_func_array
…/­system/­src/­Grav/­Common/­Grav.php372
1 Grav\Common\Grav __call
…/­system/­src/­Grav/­Common/­Grav.php120
0 Grav\Common\Grav process
…/­index.php45
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
                    $list[$key] = $child->modified();
                    $sort_flags = SORT_REGULAR;
                    break;
                case 'slug':
                    $list[$key] = $child->slug();
                    break;
                case 'basename':
                    $list[$key] = basename($key);
                    break;
                case (is_string($header_query[0])):
                    $child_header = new Header((array)$child->header());
                    $header_value = $child_header->get($header_query[0]);
                    if ($header_value) {
                        $list[$key] = $header_value;
                    } else {
                        $list[$key] = $header_default ?: $key;
                    }
                    $sort_flags = SORT_REGULAR;
                    break;
                case 'manual':
Arguments
  1. "Trying to access array offset on value of type null"
    
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
                    $list[$key] = $child->modified();
                    $sort_flags = SORT_REGULAR;
                    break;
                case 'slug':
                    $list[$key] = $child->slug();
                    break;
                case 'basename':
                    $list[$key] = basename($key);
                    break;
                case (is_string($header_query[0])):
                    $child_header = new Header((array)$child->header());
                    $header_value = $child_header->get($header_query[0]);
                    if ($header_value) {
                        $list[$key] = $header_value;
                    } else {
                        $list[$key] = $header_default ?: $key;
                    }
                    $sort_flags = SORT_REGULAR;
                    break;
                case 'manual':
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
 
        $path = $page->path();
        $children = isset($this->children[$path]) ? $this->children[$path] : [];
 
        if (!$children) {
            return $children;
        }
 
        if (!isset($this->sort[$path][$order_by])) {
            $this->buildSort($path, $children, $order_by, $page->orderManual());
        }
 
        $sort = $this->sort[$path][$order_by];
 
        if ($order_dir != 'asc') {
            $sort = array_reverse($sort);
        }
 
        return $sort;
    }
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
                }
            }
        }
 
        // Override the modified and ID so that it takes the latest change into account
        $page->modified($last_modified);
        $page->id($last_modified . md5($page->filePath()));
 
        // Sort based on Defaults or Page Overridden sort order
        $this->children[$page->path()] = $this->sort($page);
 
        return $page;
    }
 
    /**
     * @internal
     */
    protected function buildRoutes()
    {
        /** @var $taxonomy Taxonomy */
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
                if (!in_array($file->getBasename(), $this->ignore_files) && ($modified = $file->getMTime()) > $last_modified) {
                    $last_modified = $modified;
                }
            } elseif ($file->isDir() && !in_array($file->getFilename(), $this->ignore_folders)) {
                if (!$page->path()) {
                    $page->path($file->getPath());
                }
 
                $path = $directory . DS . $name;
                $child = $this->recurse($path, $page);
 
                if (Utils::startsWith($name, '_')) {
                    $child->routable(false);
                }
 
                $this->children[$page->path()][$child->path()] = ['slug' => $child->slug()];
 
                if ($config->get('system.pages.events.page')) {
                    $this->grav->fireEvent('onFolderProcessed', new Event(['page' => $page]));
                }
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
 
    /**
     * Accessible method to manually reset the pages cache
     *
     * @param $pages_dir
     * @param $page_cache_id
     */
    public function resetPages($pages_dir, $page_cache_id)
    {
        $this->recurse($pages_dir);
        $this->buildRoutes();
 
        // cache if needed
        if ($this->grav['config']->get('system.cache.enabled')) {
            /** @var Cache $cache */
            $cache = $this->grav['cache'];
            /** @var Taxonomy $taxonomy */
            $taxonomy = $this->grav['taxonomy'];
 
            // save pages, routes, taxonomy, and sort to cache
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
            }
 
            $page_cache_id = md5($pages_dir . $last_modified . $language->getActive() . $config->checksum());
 
            list($this->instances, $this->routes, $this->children, $taxonomy_map, $this->sort) = $cache->fetch($page_cache_id);
            if (!$this->instances) {
                $this->grav['debugger']->addMessage('Page cache missed, rebuilding pages..');
 
                // recurse pages and cache result
                $this->resetPages($pages_dir, $page_cache_id);
 
            } else {
                // If pages was found in cache, set the taxonomy
                $this->grav['debugger']->addMessage('Page cache hit.');
                $taxonomy->taxonomy($taxonomy_map);
            }
        } else {
            $this->recurse($pages_dir);
            $this->buildRoutes();
        }
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Page/Pages.php
        $config = $this->grav['config'];
        $this->ignore_files = $config->get('system.pages.ignore_files');
        $this->ignore_folders = $config->get('system.pages.ignore_folders');
        $this->ignore_hidden = $config->get('system.pages.ignore_hidden');
 
        $this->instances = [];
        $this->children = [];
        $this->routes = [];
 
        $this->buildPages();
    }
 
    /**
     * Get or set last modification time.
     *
     * @param int $modified
     *
     * @return int|null
     */
    public function lastModified($modified = null)
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Processors/PagesProcessor.php
 
namespace Grav\Common\Processors;
 
class PagesProcessor extends ProcessorBase implements ProcessorInterface {
 
    public $id = 'pages';
    public $title = 'Pages';
 
    public function process() {
      	$this->container['pages']->init();
      	$this->container->fireEvent('onPagesInitialized');
      	$this->container->fireEvent('onPageInitialized');
    }
 
}
 
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php
    public function process()
    {
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
 
        // process all processors (e.g. config, initialize, assets, ..., render)
        foreach ($this->processors as $processor) {
            $processor = $this[$processor];
            $this->measureTime($processor->id, $processor->title, function () use ($processor) {
                $processor->process();
            });
        }
 
        // Set the header type
        $this->header();
 
        echo $this->output;
        $debugger->render();
 
        $this->fireEvent('onOutputRendered');
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php
 
        $container['debugger'] = new Debugger();
        $debugger = $container['debugger'];
 
        // closure that measures time by wrapping a function into startTimer and stopTimer
        // The debugger can be passed to the closure. Should be more performant
        // then to get it from the container all time.
        $container->measureTime = function ($timerId, $timerTitle, $callback) use ($debugger) {
            $debugger->startTimer($timerId, $timerTitle);
            $callback();
            $debugger->stopTimer($timerId);
        };
 
        $container->measureTime('_services', 'Services', function () use ($container) {
            $container->registerServices($container);
        });
 
        return $container;
    }
 
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php
 
    /**
     * Magic Catch All Function
     * Used to call closures like measureTime on the instance.
     * Source: http://stackoverflow.com/questions/419804/closures-as-class-members
     */
    public function __call($method, $args)
    {
        $closure = $this->$method;
        call_user_func_array($closure, $args);
    }
 
    /**
     * Initialize and return a Grav instance
     *
     * @param  array $values
     *
     * @return static
     */
    protected static function load(array $values)
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php
 
    /**
     * Magic Catch All Function
     * Used to call closures like measureTime on the instance.
     * Source: http://stackoverflow.com/questions/419804/closures-as-class-members
     */
    public function __call($method, $args)
    {
        $closure = $this->$method;
        call_user_func_array($closure, $args);
    }
 
    /**
     * Initialize and return a Grav instance
     *
     * @param  array $values
     *
     * @return static
     */
    protected static function load(array $values)
/kunden/tecdomains.de/domains/top3.de/www/system/src/Grav/Common/Grav.php
     */
    public function process()
    {
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
 
        // process all processors (e.g. config, initialize, assets, ..., render)
        foreach ($this->processors as $processor) {
            $processor = $this[$processor];
            $this->measureTime($processor->id, $processor->title, function () use ($processor) {
                $processor->process();
            });
        }
 
        // Set the header type
        $this->header();
 
        echo $this->output;
        $debugger->render();
 
/kunden/tecdomains.de/domains/top3.de/www/index.php
// Get the Grav instance
$grav = Grav::instance(
    array(
        'loader' => $loader
    )
);
 
// Process the page
try {
    $grav->process();
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(['exception' => $e]));
    throw $e;
}
 

Environment & details:

empty
empty
empty
empty
Key Value
user
User {}
Key Value
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ISPMADDR
"TkVHS05HQ0RqXk9JR0tDRgROTw=="
TEMP
"/temp/41221/u41221/top3.de"
TMPDIR
"/temp/41221/u41221/top3.de"
USER
"21101"
HOME
"/kunden/tecdomains.de/"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/en/impressum"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/en/impressum"
REMOTE_PORT
"60728"
SCRIPT_FILENAME
"/kunden/tecdomains.de/domains/top3.de/www/index.php"
SERVER_ADMIN
"webmaster@top3.de"
CONTEXT_DOCUMENT_ROOT
"/kunden/tecdomains.de/domains/top3.de/www"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/kunden/tecdomains.de/domains/top3.de/www"
REMOTE_ADDR
"3.239.206.191"
SERVER_PORT
"80"
SERVER_ADDR
"172.27.0.11"
SERVER_NAME
"top3.de"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_RANGE
"bytes=0-5242879"
HTTP_X_FORWARDED_FROM
"3.239.206.191"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_HOST
"top3.de"
proxy-nokeepalive
"1"
PHPEdition
"8-2"
DFSERVER_ALIAS
"top3.de"
DFLIMITPROC
"0"
DFLIMITCPU
"480"
DFLIMITMEM
"512000"
DFCANCGI
"1"
PHPVersion
"8-2-FCGI"
DFCATCHALLSTATUS
"FALSE"
DFDNUMBER
"105984"
DFUID
"99999"
UNIQUE_ID
"Zgav5WvFCDf9432DVwgKWAAAAFI"
REDIRECT_STATUS
"200"
REDIRECT_PHPEdition
"8-2"
REDIRECT_DFSERVER_ALIAS
"top3.de"
REDIRECT_DFLIMITPROC
"0"
REDIRECT_DFLIMITCPU
"480"
REDIRECT_DFLIMITMEM
"512000"
REDIRECT_DFCANCGI
"1"
REDIRECT_PHPVersion
"8-2-FCGI"
REDIRECT_DFCATCHALLSTATUS
"FALSE"
REDIRECT_DFDNUMBER
"105984"
REDIRECT_DFUID
"99999"
REDIRECT_UNIQUE_ID
"Zgav5WvFCDf9432DVwgKWAAAAFI"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711714277.5626
REQUEST_TIME
1711714277
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler