Error
Call to a member function children() on null Error thrown with message "Call to a member function children() on null" Stacktrace: #4 Error in /var/www/newmedia/site/config/config.php:27 #3 Kirby\Http\Route:{closure} in [internal]:0 #2 Closure:call in /var/www/newmedia/kirby/src/Cms/App.php:234 #1 Kirby\Cms\App:call in /var/www/newmedia/kirby/src/Cms/App.php:779 #0 Kirby\Cms\App:render in /var/www/newmedia/index.php:5
Stack frames (5)
4
Error
/
var
/
www
/
newmedia
/
site
/
config
/
config.php
27
3
Kirby
\
Http
\
Route
{closure}
[internal]
0
2
Closure
call
/
src
/
Cms
/
App.php
234
1
Kirby
\
Cms
\
App
call
/
src
/
Cms
/
App.php
779
0
Kirby
\
Cms
\
App
render
/
var
/
www
/
newmedia
/
index.php
5
/
var
/
www
/
newmedia
/
site
/
config
/
config.php
      'action'  => function ($semester) {
        return page('projects');
      }
    ],
    [
      'pattern' => 'projects/(:any)/(:any)',
      'action'  => function ($semester, $project) {
        return page('students')->grandChildren()->findBy('project_slug', $project);
      }
    ],
    [
      'pattern' => 'students/(:any)',
      'action'  => function ($student) {
        return page('students')->children()->findBy('student_slug', $student);
      }
    ],
    [
      'pattern' => 'students/(:any)/(:any)',
      'action'  => function ($student, $project) {
        return page('students')->children()->findBy('student_slug', $student)->children()->findBy('project_slug', $project);
      }
    ],
    [
      'pattern' => 'reload/container',
      'action'  => function () {
        if($student = page('students')->children()->shuffle()->first());
    if($project = $student->children()->shuffle()->first());
    if($image = $project->images()->filterBy('template', '!=', 'thumb')->shuffle()->first()) {
          $html = '<div class="project init">';
          $html .= '<div class="headline">';
          $html .= '<h2><a href="' . site()->url() . '/students/' . $student->student_slug() . '/' . $project->project_slug() . '">' . $student->name() . '</a>&thinsp;&mdash;&thinsp;<span class="bold">' . strip_tags($project->project()->kirbytext()) . '</span></h2>';
          $html .= '</div>';
          $html .= '<div class="gallery">';
          $html .= '<img class="gallery" src="' . $image->url() . '" alt="' . $image->filename() . '">';
          $html .= '</div>';
          $html .= '</div>';
          return $html;
    }
      }
    ]
[internal]
/
var
/
www
/
newmedia
/
kirby
/
src
/
Cms
/
App.php
        }
 
        $urls = array_merge(require static::$root . '/config/urls.php', (array)$urls);
        $this->urls = Ingredients::bake($urls);
        return $this;
    }
 
    /**
     * Calls any Kirby route
     *
     * @return mixed
     */
    public function call(string $path = null, string $method = null)
    {
        $path   = $path   ?? $this->path();
        $method = $method ?? $this->request()->method();
        $route  = $this->router()->find($path, $method);
 
        $this->trigger('route:before', $route, $path, $method);
        $result = $route->action()->call($route, ...$route->arguments());
        $this->trigger('route:after', $route, $path, $method, $result);
 
        return $result;
    }
 
    /**
     * Returns a specific user-defined collection
     * by name. All relevant dependencies are
     * automatically injected
     *
     * @param string $name
     * @return void
     */
    public function collection(string $name)
    {
        return $this->collections()->get($name, [
            'kirby' => $this,
            'site'  => $this->site(),
            'pages' => $this->site()->children(),
            'users' => $this->users()
/
var
/
www
/
newmedia
/
kirby
/
src
/
Cms
/
App.php
 
        $requestUri  = '/' . $this->request()->url()->path();
        $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
     *
     * @return Response
     */
    public function render(string $path = null, string $method = null)
    {
        return $this->io($this->call($path, $method));
    }
 
    /**
     * Returns the Request singleton
     *
     * @return Request
     */
    public function request(): Request
    {
        return $this->request = $this->request ?? new Request;
    }
 
    /**
     * Path resolver for the router
     *
     * @param string $path
     * @param string|null $language
     * @return mixed
     */
    public function resolve(string $path = null, string $language = null)
/
var
/
www
/
newmedia
/
index.php
<?php
 
require 'kirby/bootstrap.php';
 
echo (new Kirby)->render();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI newmedia.udk-berlin.de
REDIRECT_STATUS 200
HTTP_AUTHORIZATION
HTTPS on
SSL_TLS_SNI newmedia.udk-berlin.de
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST newmedia.udk-berlin.de
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.25 (Debian)
SERVER_NAME newmedia.udk-berlin.de
SERVER_ADDR 194.95.202.106
SERVER_PORT 443
REMOTE_ADDR 3.230.76.153
DOCUMENT_ROOT /var/www/newmedia
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/newmedia
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /var/www/newmedia/index.php
REMOTE_PORT 38072
REDIRECT_URL /students/daun-bak/unstable-mask
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /students/daun-bak/unstable-mask
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711652768.7645
REQUEST_TIME 1711652768
empty
0. Whoops\Handler\PrettyPageHandler