Error
Call to a member function helper_register() on null Error thrown with message "Call to a member function helper_register() on null" Stacktrace: #8 Error in /var/www/clients/client2/web25/web/site/controllers/form-register.php:5 #7 require in /var/www/clients/client2/web25/web/kirby/src/Toolkit/Controller.php:53 #6 Kirby\Toolkit\Controller:load in /var/www/clients/client2/web25/web/kirby/src/Cms/App.php:391 #5 Kirby\Cms\App:controllerLookup in /var/www/clients/client2/web25/web/kirby/src/Cms/App.php:357 #4 Kirby\Cms\App:controller in /var/www/clients/client2/web25/web/kirby/src/Cms/Page.php:343 #3 Kirby\Cms\Page:controller in /var/www/clients/client2/web25/web/kirby/src/Cms/Page.php:1136 #2 Kirby\Cms\Page:render in /var/www/clients/client2/web25/web/kirby/src/Cms/App.php:575 #1 Kirby\Cms\App:io in /var/www/clients/client2/web25/web/kirby/src/Cms/App.php:838 #0 Kirby\Cms\App:render in /var/www/clients/client2/web25/web/index.php:5
Stack frames (9)
8
Error
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
site
/
controllers
/
form-register.php
5
7
require
/
src
/
Toolkit
/
Controller.php
53
6
Kirby
\
Toolkit
\
Controller
load
/
src
/
Cms
/
App.php
391
5
Kirby
\
Cms
\
App
controllerLookup
/
src
/
Cms
/
App.php
357
4
Kirby
\
Cms
\
App
controller
/
src
/
Cms
/
Page.php
343
3
Kirby
\
Cms
\
Page
controller
/
src
/
Cms
/
Page.php
1136
2
Kirby
\
Cms
\
Page
render
/
src
/
Cms
/
App.php
575
1
Kirby
\
Cms
\
App
io
/
src
/
Cms
/
App.php
838
0
Kirby
\
Cms
\
App
render
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
index.php
5
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
site
/
controllers
/
form-register.php
<?php
 
use Uniform\Form;
 
$objectOne = page("registration")->helper_register()->toStructure(); 
 
return function ($kirby) {
    $form = new Form([
        
        'vorname'                => [],
        'nachname'               => [],
        'chosenname'             => [],
        'gebdat'                 => [],
        'strasse'                => [],
        'ort'                    => [],
        'email'                  => [
            'rules'              => ['required', 'email'],
            'message'            => 'Please enter a valid email address',
        ],
        'phone'                  => [],        
        // 'helpers'                => [],
        // 'services_1'             => [],
        // 'service-motivation_1'   => [],
        // 'services_2'             => [],
        // 'service-motivation_2'   => [],
        // 'services_3'             => [],
        // 'service-motivation_3'   => [],
        // 'services_4'             => [],
        // 'service-motivation_4'   => [],
        // 'services_5'             => [],
        // 'service-motivation_5'   => [],
        // 'services_6'             => [],
        // 'service-motivation_6'   => [],
        // 'services_7'             => [],
        // 'service-motivation_7'   => [],
        // 'services_8'             => [],
        // 'service-motivation_8'   => [],
        // 'services_9'             => [],
        // 'service-motivation_9'   => [],
        // 'services_10'             => [],
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Toolkit
/
Controller.php
    }
 
    public function call($bind = null, $data = [])
    {
        $args = $this->arguments($data);
 
        if ($bind === null) {
            return call_user_func($this->function, ...$args);
        }
 
        return $this->function->call($bind, ...$args);
    }
 
    public static function load(string $file)
    {
        if (file_exists($file) === false) {
            return null;
        }
 
        $function = require $file;
 
        if (is_a($function, 'Closure') === false) {
            return null;
        }
 
        return new static($function);
    }
}
 
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Cms
/
App.php
            return (array)$controller->call($this, $arguments);
        }
 
        return [];
    }
 
    /**
     * Try to find a controller by name
     *
     * @param string $name
     * @return Closure|null
     */
    protected function controllerLookup(string $name, string $contentType = 'html'): ?Controller
    {
        if ($contentType !== null && $contentType !== 'html') {
            $name .= '.' . $contentType;
        }
 
        // controller on disk
        if ($controller = Controller::load($this->root('controllers') . '/' . $name . '.php')) {
            return $controller;
        }
 
        // registry controller
        if ($controller = $this->extension('controllers', $name)) {
            return is_a($controller, Controller::class) ? $controller : new Controller($controller);
        }
 
        return null;
    }
 
    /**
     * Returns the default language object
     *
     * @return Language|null
     */
    public function defaultLanguage(): ?Language
    {
        return $this->defaultLanguage = $this->defaultLanguage ?? $this->languages()->default();
    }
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Cms
/
App.php
     */
    public function contentIgnore(): array
    {
        return $this->options['content']['ignore'] ?? Dir::$ignore;
    }
 
    /**
     * Calls a page controller by name
     * and with the given arguments
     *
     * @internal
     * @param string $name
     * @param array $arguments
     * @return array
     */
    public function controller(string $name, array $arguments = [], string $contentType = 'html'): array
    {
        $name = basename(strtolower($name));
 
        if ($controller = $this->controllerLookup($name, $contentType)) {
            return (array)$controller->call($this, $arguments);
        }
 
        if ($contentType !== 'html') {
 
            // no luck for a specific representation controller?
            // let's try the html controller instead
            if ($controller = $this->controllerLookup($name)) {
                return (array)$controller->call($this, $arguments);
            }
        }
 
        // still no luck? Let's take the site controller
        if ($controller = $this->controllerLookup('site')) {
            return (array)$controller->call($this, $arguments);
        }
 
        return [];
    }
 
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Cms
/
Page.php
    /**
     * Call the page controller
     *
     * @internal
     * @param array $data
     * @param string $contentType
     * @return array
     */
    public function controller($data = [], $contentType = 'html'): array
    {
        // create the template data
        $data = array_merge($data, [
            'kirby' => $kirby = $this->kirby(),
            'site'  => $site  = $this->site(),
            'pages' => $site->children(),
            'page'  => $site->visit($this)
        ]);
 
        // call the template controller if there's one.
        return array_merge($kirby->controller($this->template()->name(), $data, $contentType), $data);
    }
 
    /**
     * Returns a number indicating how deep the page
     * is nested within the content folder
     *
     * @return integer
     */
    public function depth(): int
    {
        return $this->depth = $this->depth ?? (substr_count($this->id(), '/') + 1);
    }
 
    /**
     * Sorting number + Slug
     *
     * @return string
     */
    public function dirname(): string
    {
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Cms
/
Page.php
        $kirby = $this->kirby();
        $cache = $cacheId = $html = null;
 
        // try to get the page from cache
        if (empty($data) === true && $this->isCacheable() === true) {
            $cache    = $kirby->cache('pages');
            $cacheId  = $this->cacheId($contentType);
            $result   = $cache->get($cacheId);
            $html     = $result['html'] ?? null;
            $response = $result['response'] ?? [];
 
            // reconstruct the response configuration
            if (empty($html) === false && empty($response) === false) {
                $kirby->response()->fromArray($response);
            }
        }
 
        // fetch the page regularly
        if ($html === null) {
            $kirby->data = $this->controller($data, $contentType);
 
            if ($contentType === 'html') {
                $template = $this->template();
            } else {
                $template = $this->representation($contentType);
            }
 
            if ($template->exists() === false) {
                throw new NotFoundException([
                    'key' => 'template.default.notFound'
                ]);
            }
 
            // render the page
            $html = $template->render($kirby->data);
 
            // convert the response configuration to an array
            $response = $kirby->response()->toArray();
 
            // cache the result
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
kirby
/
src
/
Cms
/
App.php
        }
 
        // Empty input
        if (empty($input) === true) {
            return $this->io(new NotFoundException());
        }
 
        // Response Configuration
        if (is_a($input, 'Kirby\Cms\Responder') === true) {
            return $input->send();
        }
 
        // Responses
        if (is_a($input, 'Kirby\Http\Response') === true) {
            return $input;
        }
 
        // Pages
        if (is_a($input, 'Kirby\Cms\Page')) {
            $html = $input->render();
 
            if ($input->isErrorPage() === true) {
                if ($response->code() === null) {
                    $response->code(404);
                }
            }
 
            return $response->send($html);
        }
 
        // Files
        if (is_a($input, 'Kirby\Cms\File')) {
            return $response->redirect($input->mediaUrl(), 307)->send();
        }
 
        // Simple HTML response
        if (is_string($input) === true) {
            return $response->send($input);
        }
 
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
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
     *
     * @internal
     * @param string $path
     * @param string|null $language
     * @return mixed
     */
/
var
/
www
/
clients
/
client2
/
web25
/
web
/
index.php
<?php
 
require __DIR__ . '/kirby/bootstrap.php';
 
echo (new Kirby)->render();
 

Environment & details:

Key Value
q /archiv/archiv-2016/anmeldung/registration
empty
empty
empty
empty
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TEMP /var/www/clients/client2/web25/tmp
TMPDIR /var/www/clients/client2/web25/tmp
TMP /var/www/clients/client2/web25/tmp
HOSTNAME
USER web25
HOME /var/www/clients/client2/web25
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST in-vision.org
SCRIPT_FILENAME /var/www/in-vision.org/web/index.php
REDIRECT_STATUS 200
SERVER_NAME in-vision.org
SERVER_PORT 443
SERVER_ADDR 94.130.100.67
REMOTE_USER
REMOTE_PORT 35802
REMOTE_ADDR 44.195.23.152
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /var/www/in-vision.org/web
DOCUMENT_URI /index.php
REQUEST_URI /archiv/archiv-2016/anmeldung/registration
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING q=/archiv/archiv-2016/anmeldung/registration&
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711691387.9975
REQUEST_TIME 1711691387
empty
0. Whoops\Handler\PrettyPageHandler