if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
if (!isset($position['cvrItem']->virksomhedMetadata))
$position['cvrItem']->virksomhedMetadata = $relationsCvrItems[$position['cvr_id']]->virksomhedMetadata;
$position['_position'] = 'board_member' === $position['position'] && 'Formand' === $position['value'] ? 'chairman' : $position['position'];
App\Utility\Spinner::buildForPerson() /srv/www/ownr.dk/beta/src/Utility/Spinner.php, line 282 App\Controller\UsersController::publicProfile() /srv/www/ownr.dk/beta/src/Controller/PersonPublicProfileTrait.php, line 274 Cake\Controller\Controller::invokeAction() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/Controller.php, line 548 Cake\Controller\ControllerFactory::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139 Cake\Controller\ControllerFactory::invoke() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114 Cake\Http\BaseApplication::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320 Webcoders\Http\Application::handle() /srv/www/ownr.dk/beta/vendor/webcoders/cakephp/src/Http/Application.php, line 15 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 86 Cake\Http\Middleware\BodyParserMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Routing\Middleware\RoutingMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Error\Middleware\ErrorHandlerMiddleware::process() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131 Cake\Http\Runner::handle() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 82 Cake\Http\Runner::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Runner.php, line 67 Cake\Http\Server::run() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 90 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 29
$message = "Unable to emit headers. Headers sent in file=$file line=$line";
trigger_error($message, E_USER_WARNING);
}
Cake\Http\ResponseEmitter::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71 Cake\Http\Server::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 33
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
header [internal], line ?? Cake\Http\ResponseEmitter::emitStatusLine() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168 Cake\Http\ResponseEmitter::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 74 Cake\Http\Server::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 33
foreach ($values as $value) {
header(sprintf(
'%s: %s',
header [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197 Cake\Http\ResponseEmitter::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 75 Cake\Http\Server::emit() /srv/www/ownr.dk/beta/vendor/cakephp/cakephp/src/Http/Server.php, line 128 [main] /srv/www/ownr.dk/beta/webroot/index.php, line 33
CORE/src/Error/Renderer/HtmlErrorRenderer.php
on line 36
📋
'ip' => $Request->clientIp(), |
|
'ua' => $Request->getHeaderLine('User-Agent'), |
|
'created' => (new FrozenTime())->toIso8601String(), |
|
]; |
|
$Session->write('user_actions', array_slice($userActions, -50)); |
|
} |
|
|
|
public function getUserAction(string $type, string $data = '', ?array $url = null): UserAction { |
|
$Request = $this->getRequest(); |
|
|
public function trackUserAction(string $type, string $data = '', ?array $url = null): void { |
|
$userId = $this->Auth->user('id'); |
|
if (!$userId) { |
|
$this->trackInSession($type, $data, $url); |
|
return; |
|
} |
|
|
|
$this->fetchTable('UserActions')->saveOrFail($this->getUserAction($type, $data, $url)->set(['user_id' => $userId])); |
$end = strpos($contents, "</{$tag}>"); |
|
if (false !== $begin && false !== $end && ($begin += 7) !== $end) { |
|
$title = html_entity_decode(substr($contents, $begin, $end-$begin)); |
|
$title = str_replace(' - Ownr.dk', '', $title); |
|
$this->trackUserAction(UserAction::TYPE_PAGE_VIEW, $title); |
|
break; |
|
} |
|
} |
|
} |
protected function _callListener(callable $listener, EventInterface $event) |
|
{ |
|
$data = (array)$event->getData(); |
|
|
|
return $listener($event, ...array_values($data)); |
|
} |
|
|
|
/** |
|
* @inheritDoc |
foreach ($listeners as $listener) { |
|
if ($event->isStopped()) { |
|
break; |
|
} |
|
$result = $this->_callListener($listener['callable'], $event); |
|
if ($result === false) { |
|
$event->stopPropagation(); |
|
} |
|
if ($result !== null) { |
} |
|
|
|
/** @var \Cake\Event\EventInterface $event */ |
|
$event = new $this->_eventClass($name, $subject, $data); |
|
$this->getEventManager()->dispatch($event); |
|
|
|
return $event; |
|
} |
|
} |
* @return \Psr\Http\Message\ResponseInterface|null |
|
*/ |
|
public function shutdownProcess(): ?ResponseInterface |
|
{ |
|
$event = $this->dispatchEvent('Controller.shutdown'); |
|
if ($event->getResult() instanceof ResponseInterface) { |
|
return $event->getResult(); |
|
} |
|
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
|
} |
|
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
abstract class Application extends \Cake\Http\BaseApplication { |
|
|
|
public function handle(ServerRequestInterface $request): ResponseInterface { |
|
try { |
|
return parent::handle($request); |
|
} catch (RedirectException $e) { |
|
return new RedirectResponse($e->getMessage(), $e->getCode(), $e->getHeaders()); |
|
} |
|
} |
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
return new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
if (!in_array($request->getMethod(), $this->methods, true)) { |
|
return $handler->handle($request); |
|
} |
|
[$type] = explode(';', $request->getHeaderLine('Content-Type')); |
|
$type = strtolower($type); |
|
if (!isset($this->parsers[$type])) { |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (RedirectException $exception) { |
|
return $this->handleRedirect($exception); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request); |
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
) { |
|
Router::setRequest($request); |
|
} |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$response = $server->run(); |
|
if (PHP_SAPI === 'cli') { |
|
echo $response->getBody(); |
|
} else { |
|
$server->emit($response); |
If you want to customize this error message, create templates/Error/error500.php