Whoops \ Exception \ ErrorException (E_WARNING)
Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null" Stacktrace: #8 Whoops\Exception\ErrorException in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:989 #7 Whoops\Run:handleError in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:989 #6 Grav\Common\Page\Pages:buildSort in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:216 #5 Grav\Common\Page\Pages:sort in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:886 #4 Grav\Common\Page\Pages:recurse in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:735 #3 Grav\Common\Page\Pages:resetPages in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:714 #2 Grav\Common\Page\Pages:buildPages in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php:133 #1 Grav\Common\Page\Pages:init in /mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Grav.php:279 #0 Grav\Common\Grav:process in /mnt/web112/a2/40/53077740/htdocs/daniel/index.php:38

Trying to access array offset on value of type null

Stack frames (9):
8 Whoops\Exception\ErrorException
…/­system/­src/­Grav/­Common/­Page/­Pages.php989
7 Whoops\Run handleError
…/­system/­src/­Grav/­Common/­Page/­Pages.php989
6 Grav\Common\Page\Pages buildSort
…/­system/­src/­Grav/­Common/­Page/­Pages.php216
5 Grav\Common\Page\Pages sort
…/­system/­src/­Grav/­Common/­Page/­Pages.php886
4 Grav\Common\Page\Pages recurse
…/­system/­src/­Grav/­Common/­Page/­Pages.php735
3 Grav\Common\Page\Pages resetPages
…/­system/­src/­Grav/­Common/­Page/­Pages.php714
2 Grav\Common\Page\Pages buildPages
…/­system/­src/­Grav/­Common/­Page/­Pages.php133
1 Grav\Common\Page\Pages init
…/­system/­src/­Grav/­Common/­Grav.php279
0 Grav\Common\Grav process
…/­index.php38
/mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php
                case 'modified':
                    $list[$key] = $child->modified();
                    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;
                    }
                    break;
                case 'manual':
                case 'default':
/mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php
                case 'modified':
                    $list[$key] = $child->modified();
                    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;
                    }
                    break;
                case 'manual':
                case 'default':
/mnt/web112/a2/40/53077740/htdocs/daniel/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;
    }
/mnt/web112/a2/40/53077740/htdocs/daniel/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 */
/mnt/web112/a2/40/53077740/htdocs/daniel/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
/mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Page/Pages.php
            }
 
            $page_cache_id = md5(USER_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();
        }
/mnt/web112/a2/40/53077740/htdocs/daniel/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)
/mnt/web112/a2/40/53077740/htdocs/daniel/system/src/Grav/Common/Grav.php
 
        $this['assets']->init();
        $this->fireEvent('onAssetsInitialized');
 
        $debugger->startTimer('twig', 'Twig');
        $this['twig']->init();
        $debugger->stopTimer('twig');
 
        $debugger->startTimer('pages', 'Pages');
        $this['pages']->init();
        $this->fireEvent('onPagesInitialized');
        $debugger->stopTimer('pages');
        $this->fireEvent('onPageInitialized');
 
        $debugger->addAssets();
 
        // Process whole page as required
        $debugger->startTimer('render', 'Render');
        $this->output = $this['output'];
        $this->fireEvent('onOutputGenerated');
/mnt/web112/a2/40/53077740/htdocs/daniel/index.php
// Get the Grav instance
$grav = Grav::instance(
    array(
        'loader' => $loader
    )
);
 
// Process the page
try {
    $grav->process();
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException');
    throw $e;
}
 
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgXmbYe20QnpMnf-LhY5RwAACS0"
SCRIPT_URL
"/daniel/de"
SCRIPT_URI
"http://www.familie-mertins.de/daniel/de"
DOCUMENT_ROOT
"/home/strato/http/power/rid/77/40/53077740/htdocs"
RZ_php
"81"
PHPRC
"/home/strato/http/power/rid/77/40/53077740/htdocs"
HTTP_HOST
"www.familie-mertins.de"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_CONNECTION
"close"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SOFTWARE
"Apache/2.4.58 (Unix)"
SERVER_NAME
"www.familie-mertins.de"
SERVER_PORT
"80"
REMOTE_ADDR
"3.89.163.120"
SERVER_ADMIN
"service@webmailer.de"
SCRIPT_FILENAME
"/home/strato/http/power/rid/77/40/53077740/htdocs/daniel/index.php"
REMOTE_PORT
"32161"
REDIRECT_URL
"/daniel/de"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/daniel/de"
SCRIPT_NAME
"/daniel/index.php"
PHP_SELF
"/daniel/index.php"
REQUEST_TIME_FLOAT
1711662701.1316
REQUEST_TIME
1711662701
argv
[]
argc
0
Key Value
REDIRECT_STATUS
"200"
UNIQUE_ID
"ZgXmbYe20QnpMnf-LhY5RwAACS0"
SCRIPT_URL
"/daniel/de"
SCRIPT_URI
"http://www.familie-mertins.de/daniel/de"
DOCUMENT_ROOT
"/home/strato/http/power/rid/77/40/53077740/htdocs"
RZ_php
"81"
PHPRC
"/home/strato/http/power/rid/77/40/53077740/htdocs"
HTTP_HOST
"www.familie-mertins.de"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_CONNECTION
"close"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SOFTWARE
"Apache/2.4.58 (Unix)"
SERVER_NAME
"www.familie-mertins.de"
SERVER_PORT
"80"
REMOTE_ADDR
"3.89.163.120"
SERVER_ADMIN
"service@webmailer.de"
SCRIPT_FILENAME
"/home/strato/http/power/rid/77/40/53077740/htdocs/daniel/index.php"
REMOTE_PORT
"32161"
REDIRECT_URL
"/daniel/de"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/daniel/de"
SCRIPT_NAME
"/daniel/index.php"
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler