Warning

call_user_func_array() expects parameter 1 to be a valid callback, class 'onionCMS\Core\Controllers\CookiesController' does not have a method 'sendaccept'

/mnt/devel/Atrium/atriumstudio/vendor/Onion/Application/Application.php

Url/Visitor

http://www.atriumarchitekti.loc/_cookies?agreement=&action=accept (GET)

Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0

Source

151
152 if ($this->actionName === null) {
153 $this->actionName = $this->currentRoute->action;
154 }
155 preg_match('/([A-Za-z0-9]+)Controller/', $this->controllerName, $match);
156 if (isset($match[1]) === true) {
157 $view->setTemplate(APP_DIR.'/Templates/'.$match[1].'.html');
158 }
159
160 $this->controller = new $this->controllerName($this->container);
161
162 $parameters = $this->currentRoute->getResource();
163
164 $this->runHooks('system.hooks.afterCreateController');
165
166 call_user_func_array(array($this->controller, 'before'), $parameters);
167
168 $this->runHooks('system.hooks.beforeControllerRun');
169
170 call_user_func_array(array($this->controller, $this->actionName), $parameters);
171
172 $this->runHooks('system.hooks.afterControllerRun');
173
174 call_user_func_array(array($this->controller, 'after'), $parameters);
175
176 if (is_object($this->controller->view) === true) {
177 $view['flash'] = $this->flash['current'];
178
179 $this->runHooks('system.hooks.beforeRenderView');
180

Backtrace

$_SERVER

array (
  'REDIRECT_STATUS' => '200',
  'HTTP_HOST' => 'www.atriumarchitekti.loc',
  'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0',
  'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8',
  'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3',
  'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
  'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/sk/uvod?agreement=&action=decline',
  'HTTP_CONNECTION' => 'keep-alive',
  'HTTP_COOKIE' => 'language=sk; qazfdrtygdfxsw=0sraet51hl7ui3mff5jsos2cgmdncoc5j1uv0ieo5q0jg1170g1iijk1ulsvomqu0b856ge4rif9p7nreueg6jr21pd2enkfhev9pl3',
  'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
  'HTTP_PRIORITY' => 'u=0, i',
  'HTTP_PRAGMA' => 'no-cache',
  'HTTP_CACHE_CONTROL' => 'no-cache',
  'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  'SERVER_SIGNATURE' => '<address>Apache/2.4.25 (Debian) Server at www.atriumarchitekti.loc Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.4.25 (Debian)',
  'SERVER_NAME' => 'www.atriumarchitekti.loc',
  'SERVER_ADDR' => '127.0.0.1',
  'SERVER_PORT' => '80',
  'REMOTE_ADDR' => '127.0.0.1',
  'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'REQUEST_SCHEME' => 'http',
  'CONTEXT_PREFIX' => '',
  'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php',
  'REMOTE_PORT' => '33032',
  'REDIRECT_URL' => '/_cookies',
  'REDIRECT_QUERY_STRING' => 'agreement=&action=accept',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'REQUEST_METHOD' => 'GET',
  'QUERY_STRING' => 'agreement=&action=accept',
  'REQUEST_URI' => '/_cookies?agreement=&action=accept',
  'SCRIPT_NAME' => '/index.php',
  'PHP_SELF' => '/index.php',
  'REQUEST_TIME_FLOAT' => 1728590829.9230001,
  'REQUEST_TIME' => 1728590829,
)

$_GET

array (
  'agreement' => '',
  'action' => 'accept',
)

$_GET

array (
  'agreement' => '',
  'action' => 'accept',
)